/* ══════════════════════════════════════════════════════════
   LearnerX — Arctic Compass Design System
   ══════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-label: 'Cormorant SC', serif;

  /* Brand Constants */
  --arctic-blue: #00B4D8;
  --midnight-navy-deep: #0A1628;
  --midnight-navy: #142240;
  --cool-gray-bg: #F0F2F5;

  /* Dark section backgrounds (theme-aware, softer than brand constants) */
  --section-dark: #162036;

  /* Semantic Tokens — Light (default) */
  --bg-primary: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-elevated: #F0F2F5;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --accent: #00B4D8;
  --accent-hover: #0096B7;
  --border: #E5E7EB;
  --border-subtle: #F3F4F6;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-elevated: rgba(0, 0, 0, 0.1);

  /* Nav (needs explicit rgba for transparency) */
  --nav-bg: rgba(249, 250, 251, 0.92);
  --nav-bg-scrolled: rgba(249, 250, 251, 0.98);
  --nav-shadow: rgba(20, 34, 64, 0.06);

  /* Logo */
  --logo-x-stroke: #00B4D8;
  --logo-ring: #142240;
  --logo-dots: #00B4D8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --section-dark: #0D1525;
    --bg-primary: #0F172A;
    --bg-card: #1E293B;
    --bg-elevated: #1E293B;
    --text-primary: #F9FAFB;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent: #00B4D8;
    --accent-hover: #22D3EE;
    --border: #334155;
    --border-subtle: #1E293B;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-elevated: rgba(0, 0, 0, 0.5);

    --nav-bg: rgba(15, 23, 42, 0.92);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.98);
    --nav-shadow: rgba(0, 0, 0, 0.2);

    --logo-x-stroke: #00B4D8;
    --logo-ring: #F9FAFB;
    --logo-dots: #00B4D8;
  }
}

[data-theme="dark"] {
  --section-dark: #0D1525;
  --bg-primary: #0F172A;
  --bg-card: #1E293B;
  --bg-elevated: #1E293B;
  --text-primary: #F9FAFB;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #00B4D8;
  --accent-hover: #22D3EE;
  --border: #334155;
  --border-subtle: #1E293B;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-elevated: rgba(0, 0, 0, 0.5);

  --nav-bg: rgba(15, 23, 42, 0.92);
  --nav-bg-scrolled: rgba(15, 23, 42, 0.98);
  --nav-shadow: rgba(0, 0, 0, 0.2);

  --logo-x-stroke: #00B4D8;
  --logo-ring: #F9FAFB;
  --logo-dots: #00B4D8;
}

[data-theme="light"] {
  --section-dark: #162036;
  --bg-primary: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-elevated: #F0F2F5;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --accent: #00B4D8;
  --accent-hover: #0096B7;
  --border: #E5E7EB;
  --border-subtle: #F3F4F6;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-elevated: rgba(0, 0, 0, 0.1);

  --nav-bg: rgba(249, 250, 251, 0.92);
  --nav-bg-scrolled: rgba(249, 250, 251, 0.98);
  --nav-shadow: rgba(20, 34, 64, 0.06);

  --logo-x-stroke: #00B4D8;
  --logo-ring: #142240;
  --logo-dots: #00B4D8;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

/* ── Utility ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
nav::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%);
  opacity: 0.5;
}
nav.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 1px 12px var(--nav-shadow);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  transition: height 0.3s;
}
nav.scrolled .container { height: 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { display: block; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  border-radius: 6px; padding: 12px 28px;
  text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none;
  position: relative; overflow: hidden;
}
.btn-primary,
.nav-links a.btn-primary { background: var(--accent); color: var(--midnight-navy-deep); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
}
.btn-outline {
  background: transparent; color: #F9FAFB;
  border: 2px solid rgba(249, 250, 251, 0.4);
}
.btn-outline:hover {
  background: rgba(249, 250, 251, 0.1);
  border-color: #F9FAFB;
}
.btn-outline-dark {
  background: transparent; color: var(--text-primary);
  border: 2px solid var(--text-primary);
}
.btn-outline-dark:hover { background: var(--text-primary); color: var(--bg-primary); }
.btn-gold {
  background: var(--accent); color: var(--midnight-navy-deep);
  position: relative;
}
.btn-gold::before {
  content: '';
  position: absolute; inset: -2px;
  background: var(--accent);
  border-radius: 6px;
  opacity: 0; filter: blur(16px);
  transition: opacity 0.4s;
  z-index: -1;
}
.btn-gold:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}
.btn-gold:hover::before { opacity: 0.4; }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* Button shimmer on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: none;
}
.btn:hover::after {
  animation: btnShimmer 0.6s ease forwards;
}

@keyframes btnShimmer {
  to { left: 150%; }
}

/* ══════════════════════════════════════════════════════════
   Hero — Always Dark
   ══════════════════════════════════════════════════════════ */
.hero {
  padding: 160px 0 120px;
  background: var(--section-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid pattern */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0, 180, 216, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Polar aurora glow */
.hero::after {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 120%; height: 80%;
  background: radial-gradient(ellipse at 25% 60%, rgba(0, 180, 216, 0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 30%, rgba(34, 211, 238, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--arctic-blue);
  background: rgba(0, 180, 216, 0.1);
  padding: 8px 20px; border-radius: 2px;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 180, 216, 0.2);
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  color: #F9FAFB;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.25s;
}
.hero h1 em {
  font-style: normal;
  color: var(--arctic-blue);
  display: block;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(249, 250, 251, 0.7);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 44px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.55s;
}

/* Hero illustration area */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  color: rgba(249, 250, 251, 0.12);
}

/* ══════════════════════════════════════════════════════════
   Tagline Band
   ══════════════════════════════════════════════════════════ */
.tagline-band {
  padding: 72px 0;
  text-align: center;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

/* Scrolling marquee behind tagline */
.tagline-marquee {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: rgba(10, 22, 40, 0.06);
  letter-spacing: 0.05em;
  animation: marqueeScroll 30s linear infinite;
  pointer-events: none;
}
@keyframes marqueeScroll {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(-50%); }
}

.tagline-band .tagline-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 600;
  color: var(--midnight-navy-deep);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}
.tagline-band .tagline-text span { color: #F9FAFB; }

/* ══════════════════════════════════════════════════════════
   Section Shared Styles
   ══════════════════════════════════════════════════════════ */
.section-label {
  font-family: var(--font-label);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.section-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* Section ornament */
.section-ornament {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   Pillars
   ══════════════════════════════════════════════════════════ */
.pillars { padding: 120px 0; background: var(--bg-card); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-grid .pillar-card:nth-child(1),
.pillar-grid .pillar-card:nth-child(2) {
  grid-column: span 1;
}

.pillar-card {
  background: var(--bg-primary);
  border-radius: 6px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Accent top-border sweep on hover */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.pillar-card:hover::before { width: 100%; }

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-elevated);
}

/* Featured first card — thicker accent border */
.pillar-card.featured {
  background: var(--bg-primary);
  border-color: var(--accent);
  border-width: 2px;
}
.pillar-card.featured h3 { color: var(--accent); }
.pillar-card.featured p { color: var(--text-secondary); }
.pillar-card.featured .pillar-numeral { color: rgba(0, 180, 216, 0.15); }

/* Large editorial numeral */
.pillar-numeral {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  color: rgba(0, 180, 216, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pillar-card p {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   How It Works — Visual Timeline
   ══════════════════════════════════════════════════════════ */
.how-it-works { padding: 120px 0; background: var(--bg-primary); }

.timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-top: 56px;
  padding-top: 40px;
}

/* Connecting accent line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent);
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

/* Dot on timeline */
.timeline-step::before {
  content: '';
  position: absolute;
  top: -44px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-numeral {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(0, 180, 216, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 22px; margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.timeline-step p {
  font-size: 16px; color: var(--text-secondary);
  max-width: 300px; margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   Insight / Quote — Always Dark
   ══════════════════════════════════════════════════════════ */
.insight-section {
  padding: 120px 0;
  background: var(--section-dark);
  position: relative;
  overflow: hidden;
}

/* Giant decorative quotation marks */
.insight-section::before {
  content: '\201C';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 360px;
  font-weight: 700;
  color: rgba(249, 250, 251, 0.05);
  line-height: 1;
  pointer-events: none;
}

/* Subtle bottom glow line */
.insight-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.25), transparent);
}

.insight-card {
  max-width: 780px; margin: 0 auto; text-align: center;
  position: relative; z-index: 2;
}
.insight-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  color: #F9FAFB;
  line-height: 1.6;
  font-style: italic;
}
.insight-card cite {
  display: block; margin-top: 28px;
  font-family: var(--font-label);
  font-size: 14px; font-style: normal;
  color: var(--arctic-blue); font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   Audience — Editorial Rows
   ══════════════════════════════════════════════════════════ */
.audience { padding: 120px 0; background: var(--bg-card); }

.audience-rows { margin-top: 56px; }

.audience-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--accent);
}
.audience-row:last-child {
  border-bottom: 1px solid var(--accent);
}

.audience-row h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em;
}
.audience-row p {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   CTA Section — Always Dark
   ══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 140px 0;
  background: var(--section-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid */
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0, 180, 216, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Laurel ornament */
.cta-laurel {
  display: block;
  margin: 0 auto 32px;
  color: var(--arctic-blue);
  opacity: 0.4;
}

.cta-section h2 {
  color: #F9FAFB;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  position: relative;
}
.cta-section p {
  font-family: var(--font-body);
  color: rgba(249, 250, 251, 0.7);
  font-size: 18px;
  max-width: 540px; margin: 0 auto 44px;
  line-height: 1.75;
}
.cta-section .btn-gold {
  font-size: 17px; padding: 18px 40px;
  position: relative;
}

/* ── Waitlist Form ── */
.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.waitlist-input-group {
  display: flex;
  gap: 12px;
}
.waitlist-input-group input[type="email"] {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 16px 20px;
  border: 2px solid rgba(0, 180, 216, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #F9FAFB;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.waitlist-input-group input[type="email"]::placeholder {
  color: rgba(249, 250, 251, 0.35);
}
.waitlist-input-group input[type="email"]:focus {
  border-color: var(--arctic-blue);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}
.waitlist-input-group .btn-gold {
  white-space: nowrap;
  flex-shrink: 0;
}
.waitlist-msg {
  font-family: var(--font-ui);
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
  transition: opacity 0.3s;
}
.waitlist-msg.success { color: #8FD4A0; }
.waitlist-msg.error { color: #F5A0A0; }

/* Spinner inside button */
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(10, 22, 40, 0.3);
  border-top-color: var(--midnight-navy-deep);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}
.btn.loading .btn-text { opacity: 0.7; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .waitlist-input-group {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════ */
footer {
  padding: 64px 0;
  background: var(--bg-elevated);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-logo img { display: block; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px; color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}
.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-ui);
  font-size: 13px; color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   Theme Toggle
   ══════════════════════════════════════════════════════════ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}
.theme-toggle:hover {
  border-color: var(--accent);
}
.theme-toggle:active {
  transform: scale(0.9);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Both hidden by default; JS shows the correct one */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   Animation System
   ══════════════════════════════════════════════════════════ */

/* Page load fade-up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — applied by Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   Mobile Nav
   ══════════════════════════════════════════════════════════ */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--text-primary); }

/* ══════════════════════════════════════════════════════════
   Light-Mode Visual Harmony — Flowing Light with Accent Bookends
   Only light mode is overridden; dark mode restores original treatment.
   ══════════════════════════════════════════════════════════ */

/* ── Hero: Gradient in Light ── */
.hero {
  background: linear-gradient(180deg, #0F1D32 0%, #1A2D4A 100%);
}
@media (prefers-color-scheme: dark) {
  .hero { background: var(--section-dark); }
}
[data-theme="dark"] .hero { background: var(--section-dark); }
[data-theme="light"] .hero { background: linear-gradient(180deg, #0F1D32 0%, #1A2D4A 100%); }

/* ── Insight: Light Treatment ── */
.insight-section {
  background: var(--bg-elevated);
}
.insight-section::before {
  color: rgba(0, 180, 216, 0.06);
}
.insight-section::after {
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.insight-card blockquote {
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  .insight-section { background: var(--section-dark); }
  .insight-section::before { color: rgba(249, 250, 251, 0.05); }
  .insight-section::after { background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.25), transparent); }
  .insight-card blockquote { color: #F9FAFB; }
}
[data-theme="dark"] .insight-section { background: var(--section-dark); }
[data-theme="dark"] .insight-section::before { color: rgba(249, 250, 251, 0.05); }
[data-theme="dark"] .insight-section::after { background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.25), transparent); }
[data-theme="dark"] .insight-card blockquote { color: #F9FAFB; }

[data-theme="light"] .insight-section { background: var(--bg-elevated); }
[data-theme="light"] .insight-section::before { color: rgba(0, 180, 216, 0.06); }
[data-theme="light"] .insight-section::after { background: linear-gradient(90deg, transparent, var(--border), transparent); }
[data-theme="light"] .insight-card blockquote { color: var(--text-primary); }

/* ── CTA: Accent Gradient in Light ── */
.cta-section {
  background: linear-gradient(135deg, #0096B7 0%, #00B4D8 50%, #22D3EE 100%);
}
.cta-section::before {
  background-image: radial-gradient(circle, rgba(10, 22, 40, 0.04) 1px, transparent 1px);
}
.cta-section h2 {
  color: var(--midnight-navy-deep);
}
.cta-section p {
  color: rgba(10, 22, 40, 0.7);
}
.cta-laurel {
  color: var(--midnight-navy);
  opacity: 0.3;
}
.cta-section .waitlist-input-group input[type="email"] {
  background: rgba(255, 255, 255, 0.85);
  color: var(--midnight-navy-deep);
  border-color: rgba(10, 22, 40, 0.2);
}
.cta-section .waitlist-input-group input[type="email"]::placeholder {
  color: rgba(10, 22, 40, 0.4);
}
.cta-section .waitlist-input-group input[type="email"]:focus {
  border-color: var(--midnight-navy);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}
.cta-section .btn-gold {
  background: var(--midnight-navy-deep);
  color: #F9FAFB;
}
.cta-section .btn-gold:hover {
  background: var(--midnight-navy);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.25);
}
.cta-section .btn-gold::before {
  background: var(--midnight-navy-deep);
}
.cta-section .btn-spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #F9FAFB;
}
.cta-section .waitlist-msg.success {
  color: #166534;
}
.cta-section .waitlist-msg.error {
  color: #991B1B;
}

@media (prefers-color-scheme: dark) {
  .cta-section { background: var(--section-dark); }
  .cta-section::before { background-image: radial-gradient(circle, rgba(0, 180, 216, 0.06) 1px, transparent 1px); }
  .cta-section h2 { color: #F9FAFB; }
  .cta-section p { color: rgba(249, 250, 251, 0.7); }
  .cta-laurel { color: var(--arctic-blue); opacity: 0.4; }
  .cta-section .waitlist-input-group input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    color: #F9FAFB;
    border-color: rgba(0, 180, 216, 0.3);
  }
  .cta-section .waitlist-input-group input[type="email"]::placeholder { color: rgba(249, 250, 251, 0.35); }
  .cta-section .waitlist-input-group input[type="email"]:focus {
    border-color: var(--arctic-blue);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
  }
  .cta-section .btn-gold { background: var(--accent); color: var(--midnight-navy-deep); }
  .cta-section .btn-gold:hover { background: var(--accent-hover); box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3); }
  .cta-section .btn-gold::before { background: var(--accent); }
  .cta-section .btn-spinner { border-color: rgba(10, 22, 40, 0.3); border-top-color: var(--midnight-navy-deep); }
  .cta-section .waitlist-msg.success { color: #8FD4A0; }
  .cta-section .waitlist-msg.error { color: #F5A0A0; }
}

[data-theme="dark"] .cta-section { background: var(--section-dark); }
[data-theme="dark"] .cta-section::before { background-image: radial-gradient(circle, rgba(0, 180, 216, 0.06) 1px, transparent 1px); }
[data-theme="dark"] .cta-section h2 { color: #F9FAFB; }
[data-theme="dark"] .cta-section p { color: rgba(249, 250, 251, 0.7); }
[data-theme="dark"] .cta-laurel { color: var(--arctic-blue); opacity: 0.4; }
[data-theme="dark"] .cta-section .waitlist-input-group input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  color: #F9FAFB;
  border-color: rgba(0, 180, 216, 0.3);
}
[data-theme="dark"] .cta-section .waitlist-input-group input[type="email"]::placeholder { color: rgba(249, 250, 251, 0.35); }
[data-theme="dark"] .cta-section .waitlist-input-group input[type="email"]:focus {
  border-color: var(--arctic-blue);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}
[data-theme="dark"] .cta-section .btn-gold { background: var(--accent); color: var(--midnight-navy-deep); }
[data-theme="dark"] .cta-section .btn-gold:hover { background: var(--accent-hover); box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3); }
[data-theme="dark"] .cta-section .btn-gold::before { background: var(--accent); }
[data-theme="dark"] .cta-section .btn-spinner { border-color: rgba(10, 22, 40, 0.3); border-top-color: var(--midnight-navy-deep); }
[data-theme="dark"] .cta-section .waitlist-msg.success { color: #8FD4A0; }
[data-theme="dark"] .cta-section .waitlist-msg.error { color: #F5A0A0; }

[data-theme="light"] .cta-section { background: linear-gradient(135deg, #0096B7 0%, #00B4D8 50%, #22D3EE 100%); }
[data-theme="light"] .cta-section::before { background-image: radial-gradient(circle, rgba(10, 22, 40, 0.04) 1px, transparent 1px); }
[data-theme="light"] .cta-section h2 { color: var(--midnight-navy-deep); }
[data-theme="light"] .cta-section p { color: rgba(10, 22, 40, 0.7); }
[data-theme="light"] .cta-laurel { color: var(--midnight-navy); opacity: 0.3; }
[data-theme="light"] .cta-section .waitlist-input-group input[type="email"] {
  background: rgba(255, 255, 255, 0.85);
  color: var(--midnight-navy-deep);
  border-color: rgba(10, 22, 40, 0.2);
}
[data-theme="light"] .cta-section .waitlist-input-group input[type="email"]::placeholder { color: rgba(10, 22, 40, 0.4); }
[data-theme="light"] .cta-section .waitlist-input-group input[type="email"]:focus {
  border-color: var(--midnight-navy);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}
[data-theme="light"] .cta-section .btn-gold { background: var(--midnight-navy-deep); color: #F9FAFB; }
[data-theme="light"] .cta-section .btn-gold:hover { background: var(--midnight-navy); box-shadow: 0 4px 20px rgba(10, 22, 40, 0.25); }
[data-theme="light"] .cta-section .btn-gold::before { background: var(--midnight-navy-deep); }
[data-theme="light"] .cta-section .btn-spinner { border-color: rgba(255, 255, 255, 0.3); border-top-color: #F9FAFB; }
[data-theme="light"] .cta-section .waitlist-msg.success { color: #166534; }
[data-theme="light"] .cta-section .waitlist-msg.error { color: #991B1B; }

/* ══════════════════════════════════════════════════════════
   Responsive — Tablet & Below
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-primary); padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }

  /* Hero stacks to single column */
  .hero { padding: 130px 0 80px; }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(36px, 8vw, 52px); }

  /* Pillars — single column */
  .pillar-grid { grid-template-columns: 1fr; }

  /* Timeline — vertical */
  .timeline {
    flex-direction: column;
    padding-top: 0;
    padding-left: 32px;
    gap: 48px;
  }
  .timeline::before {
    top: 0; bottom: 0;
    left: 4px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--accent), var(--accent), transparent);
  }
  .timeline-step { text-align: left; padding: 0 0 0 24px; }
  .timeline-step::before {
    top: 8px; left: -32px;
    transform: none;
  }
  .timeline-step p { margin: 0; }

  /* Audience rows stack */
  .audience-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Sections reduced padding */
  .pillars, .how-it-works, .audience { padding: 80px 0; }
  .insight-section { padding: 80px 0; }
  .cta-section { padding: 100px 0; }
}

/* ══════════════════════════════════════════════════════════
   Responsive — Small Mobile
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .pillar-card { padding: 32px 24px; }
  .tagline-band { padding: 48px 0; }
  .cta-section { padding: 80px 0; }

  /* Hide decorative elements */
  .section-ornament { display: none; }
  .cta-laurel { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Reduced Motion
   ══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
  .tagline-marquee { animation: none; }
  html { scroll-behavior: auto; }
}
