:root {
  --bg: #080810;
  --bg2: #0d0d1a;
  --bg3: #111128;
  --purple: #7c5cfc;
  --purple-light: #a78bfa;
  --purple-dim: #3d2d8a;
  --yellow: #f5c842;
  --yellow-dim: #c49a1a;
  --white: #f0eeff;
  --muted: #8880aa;
  --border: rgba(124,92,252,0.15);
  --border-bright: rgba(124,92,252,0.35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ── IMPROVED FOCUS INDICATORS ── */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,8,16,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--purple-light); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.18) 0%, rgba(124,92,252,0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-yellow {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245,200,66,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,92,252,0.12);
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 12px;
  color: var(--purple-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 820px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.1s ease both;
}
h1 .accent { color: var(--purple-light); }
h1 .accent-y { color: var(--yellow); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 1.5rem auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(124,92,252,0.3);
}
.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(124,92,252,0.45);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
.hero-note {
  margin-top: 1rem;
  font-size: 12px;
  color: rgba(136,128,170,0.6);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s 0.4s ease both;
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 4rem auto 0;
  max-width: 680px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(13,13,26,0.8);
  overflow: hidden;
  animation: fadeUp 0.6s 0.5s ease both;
}
.stat-item {
  flex: 1;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.stat-num span { color: var(--yellow); }
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  display: block;
}

/* ── SECTION SHARED ── */
section { position: relative; z-index: 1; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--purple);
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  max-width: 600px;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.8;
}

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  margin-top: 3.5rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.how-card {
  background: var(--bg2);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
  position: relative;
}
.how-card:hover { background: var(--bg3); }
.how-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(124,92,252,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.how-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.how-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.how-tag {
  display: inline-block;
  background: rgba(245,200,66,0.1);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ── FDI SECTION ── */
.fdi-section { background: var(--bg2); }
.fdi-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.fdi-visual {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.fdi-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(124,92,252,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.fdi-score-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fdi-score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fdi-score-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.fdi-score-label { font-size: 11px; color: var(--purple-light); text-align: center; margin-top: 4px; letter-spacing: 0.05em; }
.fdi-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 1.5rem; }
.fdi-bar-row { display: flex; align-items: center; gap: 10px; }
.fdi-bar-label { font-size: 11px; color: var(--muted); width: 90px; flex-shrink: 0; }
.fdi-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.fdi-bar-fill { height: 100%; border-radius: 99px; }
.fdi-bar-val { font-size: 11px; color: var(--muted); width: 28px; text-align: right; }
.fdi-session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fdi-session-row:last-child { border-bottom: none; }
.session-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.session-name { color: var(--muted); flex: 1; padding-left: 10px; }
.session-score { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
.score-high { color: var(--yellow); }
.score-mid { color: var(--purple-light); }

/* ── ACHIEVEMENTS ── */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 3rem;
}
.ach-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.ach-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.ach-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.ach-name { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.ach-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }
.ach-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  margin-top: 8px;
}
.pill-day { background: rgba(124,92,252,0.15); color: var(--purple-light); }
.pill-month { background: rgba(245,200,66,0.12); color: var(--yellow); }
.pill-special { background: rgba(93,202,165,0.12); color: #5dcaa5; }

/* ── SCIENCE ── */
.science-section { background: var(--bg); }
.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.science-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.2s;
}
.science-card:hover { background: var(--bg2); }
.science-icon {
  width: 40px; height: 40px;
  background: rgba(124,92,252,0.12);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 18px;
}
.science-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.science-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── PRICING ── */
.pricing-section { background: var(--bg2); }

/* ── FAQ ── */
.faq-section { background: var(--bg); }
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 800px;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.faq-item:hover { border-color: var(--border-bright); background: var(--bg3); }
.faq-item[open] { border-color: var(--purple); }
.faq-item summary {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--purple-light);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
.faq-answer {
  padding-top: 1rem;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-answer p { margin: 0; }
.faq-answer em { color: var(--purple-light); font-style: normal; font-weight: 500; }

/* ── PRICING STYLES ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1100px;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(124,92,252,0.08) 0%, var(--bg) 60%);
}
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.pricing-tier {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-tagline { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.75rem; }
.pricing-features li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '';
  width: 14px; height: 14px;
  background: rgba(124,92,252,0.2);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='7' fill='rgba(124,92,252,0.2)'/%3E%3Cpolyline points='4,7 6,9 10,5' fill='none' stroke='%237c5cfc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}
.pricing-features li.featured-item { color: var(--white); }
.pricing-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--muted);
}
.pricing-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.pricing-btn.featured-btn {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 25px rgba(124,92,252,0.25);
}
.pricing-btn.featured-btn:hover { background: var(--purple-light); }

/* ── WAITLIST ── */
.waitlist-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.waitlist-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.waitlist-inner .section-label { justify-content: center; }
.waitlist-inner .section-title { margin: 0 auto 1rem; }
.waitlist-inner .section-sub { margin: 0 auto 2.5rem; }
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.waitlist-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-input:focus { border-color: var(--purple); }
.waitlist-btn {
  background: var(--yellow);
  color: #0a0a0a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.waitlist-btn:hover { background: #f7d460; transform: translateY(-1px); }
.waitlist-note { font-size: 12px; color: rgba(136,128,170,0.5); margin-top: 1rem; }
.waitlist-success {
  display: none;
  background: rgba(93,202,165,0.1);
  border: 1px solid rgba(93,202,165,0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 14px;
  color: #5dcaa5;
  margin-top: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  text-align: left;
}
.footer-col h4.footer-h {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-tag { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 28ch; margin-top: 0.75rem; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 2.5rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(136,128,170,0.4); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.visible { 
  opacity: 1; 
  transform: translateY(0); 
  will-change: auto;
}

/* ── PERFORMANCE OPTIMIZATIONS ── */
.hero-glow, .hero-glow-yellow, .fdi-visual::before, .waitlist-section::before {
  will-change: auto;
  contain: layout style paint;
}
nav {
  contain: layout style;
}

/* ── ACCESSIBILITY UTILITIES ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem; position: relative; }
  
  /* Mobile menu toggle */
  .nav-links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8,8,16,0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 0;
  }
  .nav-links.active { display: flex; }
  .nav-links li { 
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem;
    font-size: 16px;
  }
  .nav-links li:last-child { border-bottom: none; }
  
  /* Menu button styles added via JS to avoid layout shift */
  
  .fdi-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem 1.5rem; 
    padding: 0;
  }
  .footer-brand { grid-column: 1 / -1; }
  .section-inner, .fdi-inner, .waitlist-inner { padding: 4rem 1.25rem; }
}


/* ── ARTICLE PAGES (FDI, Press, etc.) ── */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 2rem 0;
  position: relative;
  z-index: 1;
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--muted); opacity: 0.5; margin-left: 0.5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }

.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  position: relative;
  z-index: 1;
}
.article-header { margin-bottom: 4rem; }
.article-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.5rem;
  color: var(--white);
  text-wrap: balance;
}
.article-lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(240,238,255,0.85);
  text-wrap: pretty;
}
.article-lede a, .article-section a, .references a {
  color: var(--purple-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.article-lede a:hover, .article-section a:hover, .references a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.tldr {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(124,92,252,0.08), rgba(245,200,66,0.04));
  border: 1px solid var(--border-bright);
  border-radius: 16px;
}
.tldr h2 {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin: 0 0 1rem;
}
.tldr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.tldr ul li { font-size: 0.95rem; line-height: 1.6; padding-left: 1.25rem; position: relative; color: rgba(240,238,255,0.85); }
.tldr ul li::before { content: '→'; position: absolute; left: 0; color: var(--purple-light); }

.article-section { margin: 3.5rem 0; }
.article-section h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--white);
  text-wrap: balance;
}
.article-section h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--white);
}
.article-section p {
  margin-bottom: 1.1rem;
  color: rgba(240,238,255,0.8);
  line-height: 1.75;
  text-wrap: pretty;
}
.article-section ol, .article-section ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
  color: rgba(240,238,255,0.8);
}
.article-section ol li, .article-section ul li { margin-bottom: 0.6rem; line-height: 1.7; }
.article-section .cite { font-style: italic; color: rgba(240,238,255,0.7); }

/* Formula box */
.formula-box {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.formula-eq {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.fmla-lhs { color: var(--yellow); }
.fmla-eq, .fmla-op, .fmla-paren { color: var(--muted); font-weight: 400; }
.fmla-var { color: var(--purple-light); }
.fmla-grp { display: inline-flex; gap: 0.4rem; align-items: center; }
.formula-legend { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 0.6rem; }
.formula-legend li { padding-left: 0; font-size: 0.95rem; color: rgba(240,238,255,0.8); }
.formula-legend li strong { color: var(--purple-light); font-family: 'Syne', sans-serif; font-weight: 600; margin-right: 0.5rem; }
.formula-foot { font-size: 0.85rem; color: var(--muted); margin-top: 1rem !important; }

/* Examples table */
.ex-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.ex-table th, .ex-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.ex-table th {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ex-table td { color: rgba(240,238,255,0.85); }
.score-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}
.score-pill.score-high { background: rgba(245,200,66,0.15); color: var(--yellow); }
.score-pill.score-mid  { background: rgba(124,92,252,0.18); color: var(--purple-light); }
.score-pill.score-low  { background: rgba(136,128,170,0.15); color: var(--muted); }
.ex-note { font-size: 0.9rem; color: var(--muted); font-style: italic; }

/* Benchmarks */
.benchmarks { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.benchmark {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.b-range {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-align: center;
}
.b-range.b-high  { background: rgba(245,200,66,0.18); color: var(--yellow); }
.b-range.b-good  { background: rgba(167,139,250,0.18); color: var(--purple-light); }
.b-range.b-mid   { background: rgba(124,92,252,0.18); color: var(--purple-light); }
.b-range.b-low   { background: rgba(136,128,170,0.18); color: var(--muted); }
.b-range.b-poor  { background: rgba(136,128,170,0.1); color: var(--muted); }
.b-body { font-size: 0.95rem; color: rgba(240,238,255,0.8); line-height: 1.55; }
.b-body strong { color: var(--white); margin-right: 0.25rem; }

/* References */
.references ol { margin-left: 1.5rem; }
.references li {
  font-size: 0.9rem !important;
  color: rgba(240,238,255,0.7) !important;
  line-height: 1.65;
  margin-bottom: 0.85rem !important;
  scroll-margin-top: 6rem;
}
.references li:target { color: var(--white) !important; }

/* Article CTA */
.article-cta {
  margin-top: 4rem;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(245,200,66,0.06));
  border: 1px solid var(--border-bright);
  border-radius: 20px;
}
.article-cta h2 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.75rem; margin: 0 0 0.75rem; color: var(--white); }
.article-cta p { color: rgba(240,238,255,0.8); margin-bottom: 1.5rem; }

/* FAQ items inside article */
.article-section .faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.article-section .faq-item summary {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.article-section .faq-item summary::-webkit-details-marker { display: none; }
.article-section .faq-item summary::after {
  content: '+';
  color: var(--purple-light);
  font-weight: 400;
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.article-section .faq-item[open] summary::after { transform: rotate(45deg); }
.article-section .faq-item .faq-answer { padding-top: 0.85rem; }
.article-section .faq-item .faq-answer p { font-size: 0.95rem; color: rgba(240,238,255,0.75); margin: 0; }

@media (max-width: 640px) {
  .breadcrumb { padding: 6rem 1.25rem 0; }
  .article-page { padding: 1.5rem 1.25rem 4rem; }
  .ex-table { font-size: 0.85rem; }
  .ex-table th, .ex-table td { padding: 0.6rem 0.5rem; }
  .benchmark { grid-template-columns: 1fr; gap: 0.5rem; }
  .b-range { justify-self: start; }
}
