/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 98%;
  --muted: 0 0% 93%;
  --muted-foreground: 0 0% 40%;
  --card: 0 0% 98%;
  --card-border: 0 0% 94%;
  --border: 0 0% 90%;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  color-scheme: light;
}

html.dark {
  --background: 0 0% 9%;
  --foreground: 0 0% 98%;
  --muted: 0 0% 17%;
  --muted-foreground: 0 0% 65%;
  --card: 0 0% 11%;
  --card-border: 0 0% 14%;
  --border: 0 0% 18%;
  color-scheme: dark;
}

html {
  font-family: var(--font);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body { line-height: 1.6; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: hsla(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.25rem;
}

.nav-brand svg { width: 24px; height: 24px; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: 0.875rem;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.15s ease;
  padding: 0.5rem 1.25rem; min-height: 2.25rem;
}

.btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 2px 8px hsla(var(--primary) / 0.3); }
.btn-primary:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

.btn-lg { padding: 0.625rem 2rem; min-height: 2.75rem; font-size: 1rem; }

.btn-ghost {
  background: transparent; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.btn-ghost:hover { background: hsl(var(--muted)); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid hsl(var(--border));
  cursor: pointer; color: hsl(var(--foreground)); transition: background 0.15s;
}
.theme-toggle:hover { background: hsl(var(--muted)); }
.theme-toggle svg { width: 18px; height: 18px; }

html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; }
html:not(.dark) .icon-moon { display: block; }

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 1.25rem;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 540px; margin: 0 auto 2.5rem;
}

/* ===== Waitlist Form ===== */
.waitlist-form {
  display: flex; gap: 0.5rem;
  max-width: 440px; margin: 0 auto;
}

.waitlist-form input {
  flex: 1; min-width: 0;
  padding: 0.625rem 1rem; font-size: 1rem;
  font-family: var(--font);
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.15s;
}

.waitlist-form input::placeholder { color: hsl(var(--muted-foreground)); }
.waitlist-form input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsla(var(--primary) / 0.15); }
.waitlist-form input:invalid:not(:placeholder-shown) { border-color: hsl(0 70% 55%); }

.waitlist-form .btn { white-space: nowrap; }

.form-success {
  display: none; color: hsl(var(--primary)); font-weight: 600;
  font-size: 0.95rem; margin-top: 0.75rem;
}

.waitlist-form.submitted + .form-success { display: block; }

/* ===== Sections ===== */
section { padding: 5rem 0; }

.section-label {
  text-transform: uppercase; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 1rem;
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem; max-width: 600px;
}

.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

/* ===== Value Props (3-col) ===== */
.value-grid {
  display: grid; gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s;
}

.value-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
html.dark .value-card:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.04); }

.value-card .icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: hsla(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.value-card .icon-wrap svg { width: 24px; height: 24px; color: hsl(var(--primary)); }

.value-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

/* ===== Features Grid (2-col, 6 cards) ===== */
.features-grid {
  display: grid; gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
html.dark .feature-card:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.04); }

.feature-card .icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: hsla(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.feature-card .icon-wrap svg { width: 22px; height: 22px; color: hsl(var(--primary)); }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: hsl(var(--muted-foreground)); font-size: 0.925rem; }

/* ===== Comparison ===== */
.comparison {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  overflow: hidden;
}

.comparison-header {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid hsl(var(--card-border));
}

.comparison-header > div {
  padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.comparison-header > div:first-child {
  background: hsla(var(--primary) / 0.06);
  color: hsl(var(--primary));
}

.comparison-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid hsl(var(--card-border));
}

.comparison-row:last-child { border-bottom: none; }

.comparison-row > div {
  padding: 0.875rem 1.5rem;
  font-size: 0.925rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.comparison-row > div:first-child { color: hsl(var(--foreground)); }
.comparison-row > div:last-child { color: hsl(var(--muted-foreground)); }

.check-icon { width: 18px; height: 18px; color: hsl(var(--primary)); flex-shrink: 0; }
.x-icon { width: 18px; height: 18px; color: hsl(var(--muted-foreground)); opacity: 0.5; flex-shrink: 0; }

/* ===== No Lock-In ===== */
.no-lockin {
  text-align: center; padding: 5rem 0;
  border-top: 1px solid hsl(var(--border));
}

.no-lockin .badge-row {
  display: flex; justify-content: center; gap: 0.75rem;
  flex-wrap: wrap; margin-top: 2rem;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: 9999px;
  padding: 0.5rem 1.1rem; font-size: 0.875rem; font-weight: 500;
}

.badge svg { width: 16px; height: 16px; color: hsl(var(--primary)); }

/* ===== Bottom CTA ===== */
.bottom-cta {
  text-align: center; padding: 5rem 0;
  background: hsla(var(--primary) / 0.03);
  border-top: 1px solid hsl(var(--border));
}

.bottom-cta .section-title { margin-bottom: 1rem; }
.bottom-cta .section-subtitle { margin: 0 auto 2.5rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.footer-brand {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 1rem; color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.footer-brand svg { width: 20px; height: 20px; }

/* ===== Responsive ===== */

/* Tablet+ */
@media (min-width: 768px) {
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .waitlist-form { max-width: 480px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero { padding: 7rem 0 5rem; }
  .hero h1 { font-size: 3.75rem; }
  section { padding: 6rem 0; }
}

/* Mobile stacking */
@media (max-width: 767px) {
  .comparison-header > div,
  .comparison-row > div { padding: 0.75rem 1rem; font-size: 0.85rem; }

  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
}
