/* ============================================================
   RETENNA — LANDING
   Two themes: light (default) and dark "observatory".
   Brand: signal gold · Sora (display) · Geist (body) · JetBrains Mono
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens · LIGHT (default) ---------- */
:root {
  /* Surfaces */
  --void: #eef2f8;
  --void-2: #e7edf6;
  --panel: #ffffff;
  --panel-2: #fbfdff;
  --panel-3: #eef3f9;
  --panel-strong: #ffffff;
  /* Ink */
  --ink: #0a1322;
  --ink-2: #3a485f;
  --ink-3: #5d6a80;
  --ink-4: #8995a8;
  /* Theme accent (text/borders): deep brass on light */
  --signal: #9c6b12;
  --signal-strong: #7c520b;
  --signal-soft: rgba(156, 107, 18, 0.10);
  --signal-glow: rgba(156, 107, 18, 0.20);
  /* Constant gold (filled elements, same in both themes) */
  --gold-1: #f4d091;
  --gold-2: #e8b765;
  --gold-3: #dca84e;
  --on-gold: #1c1606;
  --gold-glow: rgba(191, 136, 41, 0.35);
  /* Meaning colors */
  --crit: #c9314e;
  --high: #c2620e;
  --med: #a16207;
  --info: #1d6fb8;
  --positive: #0f8a5f;
  --positive-soft: rgba(15, 138, 95, 0.10);
  --alert-soft: rgba(194, 98, 14, 0.12);
  /* Lines */
  --line: rgba(20, 38, 74, 0.12);
  --line-2: rgba(20, 38, 74, 0.2);
  --line-faint: rgba(20, 38, 74, 0.06);
  /* Component tokens */
  --nav-bg: rgba(247, 250, 253, 0.92);
  --nav-bg-solid: rgba(251, 253, 255, 0.98);
  --tooltip-bg: rgba(255, 255, 255, 0.98);
  --accent-border: rgba(156, 107, 18, 0.35);
  --accent-border-strong: rgba(156, 107, 18, 0.5);
  --titlebar-bg: rgba(20, 38, 74, 0.035);
  --ghost-bg: rgba(20, 38, 74, 0.03);
  --backdrop: rgba(15, 26, 45, 0.42);
  --shadow-card: 0 16px 30px -16px rgba(24, 39, 75, 0.2);
  --shadow-panel: 0 1px 0 rgba(255,255,255,0.7) inset, 0 22px 44px -22px rgba(24, 39, 75, 0.26), 0 0 40px -22px var(--gold-glow);
  --shadow-tooltip: 0 18px 40px -16px rgba(24, 39, 75, 0.3), 0 0 22px -10px var(--gold-glow);
  --em-glow: 0 0 30px rgba(156, 107, 18, 0.15);
  --grid-line: rgba(20, 38, 74, 0.055);
  --hero-glow-a: rgba(230, 178, 89, 0.2);
  --hero-glow-b: rgba(29, 111, 184, 0.06);
  --hero-base: #e3eaf4;
  --grain-opacity: 0.022;
  --graph-link: rgba(156, 107, 18, 0.35);
  --ring-col: rgba(156, 107, 18, 0.3);
  --learn-glow: rgba(156, 107, 18, 0.07);
  --radar-halo: rgba(156, 107, 18, 0.05);
  --stamp-border: rgba(194, 98, 14, 0.35);
  --select-bg: rgba(230, 178, 89, 0.4);
  --select-ink: #0a1322;
  /* Type & layout */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --w-max: 1160px;
  --nav-h: 72px;
  /* Horizontal page gutter — grows to clear notches/rounded corners (viewport-fit=cover) */
  --pad-x: max(28px, env(safe-area-inset-left), env(safe-area-inset-right));
}

/* ---------- Tokens · DARK ---------- */
[data-theme="dark"] {
  --void: #060709;
  --void-2: #0a0a0c;
  --panel: #121217;
  --panel-2: #17171d;
  --panel-3: #1e1e26;
  --panel-strong: #1b1b22;
  --ink: #f4f4f5;
  --ink-2: #c9c9cd;
  --ink-3: #909095;
  --ink-4: #5c5c63;
  --signal: #e8b765;
  --signal-strong: #f4d091;
  --signal-soft: rgba(232, 183, 101, 0.13);
  --signal-glow: rgba(232, 183, 101, 0.42);
  --gold-glow: rgba(232, 183, 101, 0.42);
  --crit: #ff7d92;
  --high: #ff9d5c;
  --med: #f5b94e;
  --info: #6fb6f2;
  --positive: #45e0ad;
  --positive-soft: rgba(69, 224, 173, 0.12);
  --alert-soft: rgba(255, 157, 92, 0.13);
  --line: rgba(244, 244, 245, 0.09);
  --line-2: rgba(244, 244, 245, 0.17);
  --line-faint: rgba(244, 244, 245, 0.05);
  --nav-bg: rgba(7, 8, 11, 0.93);
  --nav-bg-solid: rgba(6, 7, 9, 0.98);
  --tooltip-bg: rgba(23, 23, 29, 0.97);
  --accent-border: rgba(232, 183, 101, 0.32);
  --accent-border-strong: rgba(232, 183, 101, 0.5);
  --titlebar-bg: rgba(244, 244, 245, 0.02);
  --ghost-bg: rgba(244, 244, 245, 0.02);
  --backdrop: rgba(3, 4, 6, 0.62);
  --shadow-card: 0 16px 30px -16px rgba(0, 0, 0, 0.55);
  --shadow-panel: 0 1px 0 rgba(255,255,255,0.04) inset, 0 22px 44px -22px rgba(0, 0, 0, 0.7), 0 0 40px -22px var(--gold-glow);
  --shadow-tooltip: 0 18px 40px -16px rgba(0, 0, 0, 0.75), 0 0 22px -10px var(--gold-glow);
  --em-glow: 0 0 44px rgba(232, 183, 101, 0.35);
  --grid-line: rgba(244, 244, 245, 0.028);
  --hero-glow-a: rgba(232, 183, 101, 0.09);
  --hero-glow-b: rgba(111, 182, 242, 0.045);
  --hero-base: #08090c;
  --grain-opacity: 0.035;
  --graph-link: rgba(232, 183, 101, 0.25);
  --ring-col: rgba(232, 183, 101, 0.4);
  --learn-glow: rgba(232, 183, 101, 0.07);
  --radar-halo: rgba(232, 183, 101, 0.06);
  --stamp-border: rgba(255, 157, 92, 0.3);
  --select-bg: rgba(232, 183, 101, 0.3);
  --select-ink: #ffffff;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Smooth scrolling is handled in JS with a capped duration —
   long native smooth scrolls can stall weak GPUs. */
html {
  scroll-behavior: auto;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
body.modal-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--select-bg); color: var(--select-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); }
.gold { color: var(--signal); }
.dim { color: var(--ink-3); }
[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
/* Theme-dependent brand icon */
.brand-icon-dark { display: none; }
.brand-icon-light { display: block; }
[data-theme="dark"] .brand-icon-dark { display: block; }
[data-theme="dark"] .brand-icon-light { display: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 10001;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-1));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--on-gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 28px -8px var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 14px 40px -8px var(--gold-glow);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--ghost-bg);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--ink); background: var(--signal-soft); }
.btn-sm { padding: 11px 20px; font-size: 14px; border-radius: 8px; }
.btn-arrow { font-family: var(--font-mono); font-size: 14px; }

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.eyebrow.center { justify-content: center; }
.eyebrow-tag {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--signal-soft);
  color: var(--signal);
  letter-spacing: 0.14em;
}
.eyebrow-tag.alert-tag {
  border-color: var(--stamp-border);
  background: var(--alert-soft);
  color: var(--high);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px var(--gold-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 150px var(--pad-x); }
.section-inner { max-width: var(--w-max); margin: 0 auto; position: relative; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.45rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.section-title.center { text-align: center; }
.section-lede {
  margin-top: 26px;
  max-width: 660px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10000;
  transition: transform 0.45s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex; align-items: center; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { border-radius: 9px; }
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: 0.005em;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--signal);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta-wrap { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink-2);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.theme-toggle:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle.mobile {
  width: auto; height: auto;
  padding: 12px 0;
  border: 0;
  justify-content: flex-start;
  font-size: 16px;
  color: var(--ink-2);
}
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-burger span {
  display: block; width: 20px; height: 1.6px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 12px var(--pad-x) 26px;
  background: var(--nav-bg-solid);
  border-bottom: 1px solid var(--line);
  /* Short landscape phones: let the menu itself scroll */
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
}
.nav-mobile a { padding: 12px 0; font-size: 16px; color: var(--ink-2); }
.nav-mobile a.btn { justify-content: center; color: var(--on-gold); margin-top: 10px; }
.nav-mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 72% 30%, var(--hero-glow-a), transparent 65%),
    radial-gradient(900px 700px at 15% 85%, var(--hero-glow-b), transparent 60%),
    linear-gradient(180deg, var(--hero-base) 0%, var(--void) 55%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  font-weight: 650;
  line-height: 1.015;
  letter-spacing: -0.028em;
  margin: 8px 0 30px;
}
.hero-line { display: block; }
.hero-title em {
  font-style: normal;
  color: var(--signal);
  text-shadow: var(--em-glow);
}
.hero-sub {
  max-width: 560px;
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  color: var(--ink-2);
}
.hero-sub-quiet {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--ink-3);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-status {
  margin-top: 44px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.hero-status .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-dot {
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--positive);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-radar {
  position: relative;
  aspect-ratio: 1;
  max-height: 76vh;
  margin: 0 auto;
  width: min(100%, 640px);
}
#radar-canvas { width: 100%; height: 100%; }
.hero-radar::before {
  content: "";
  position: absolute; inset: -8%;
  background: radial-gradient(50% 50% at 50% 50%, var(--radar-halo), transparent 70%);
  pointer-events: none;
}
.radar-hint {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-4);
  white-space: nowrap;
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--void));
  pointer-events: none;
}

/* Radar tooltip */
.radar-tooltip {
  position: fixed;
  z-index: 9999;
  width: min(300px, calc(100vw - 24px));
  padding: 16px 18px;
  background: var(--tooltip-bg);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  box-shadow: var(--shadow-tooltip);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.radar-tooltip.visible { opacity: 1; }
.rt-kind {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--signal);
}
.rt-kind.alert { color: var(--high); }
.rt-detail { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rt-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* ============================================================
   SOURCES STRIP
   ============================================================ */
.sources-strip {
  padding: 40px 0 64px;
  border-bottom: 1px solid var(--line-faint);
}
.strip-label {
  text-align: center;
  font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-bottom: 28px;
  padding: 0 var(--pad-x);
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 14%;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--void), transparent); }
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 46s linear infinite;
  padding: 0 28px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 500;
  color: var(--ink-4);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee-track span:hover { color: var(--signal); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.strip-foot {
  margin-top: 30px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-3);
  padding: 0 var(--pad-x);
}
.strip-foot-em { color: var(--ink); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: linear-gradient(180deg, var(--void), var(--void-2) 40%, var(--void)); }
.fragments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 72px;
}
.fragment {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-card);
}
.fragment[data-float="1"] { transform: rotate(-1.3deg); animation: floaty 9s ease-in-out infinite; }
.fragment[data-float="2"] { transform: rotate(0.9deg) translateY(18px); animation: floaty 11s ease-in-out infinite reverse; }
.fragment[data-float="3"] { transform: rotate(-0.6deg); animation: floaty 10s ease-in-out 1.2s infinite; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.fragment-src {
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.fragment blockquote {
  font-size: 15.5px; line-height: 1.55;
  color: var(--ink-2);
}
.fragment-stamp {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--stamp-border);
  font-size: 10px; font-weight: 600; letter-spacing: 0.13em;
  color: var(--high);
}
.problem-truth {
  margin-top: 84px;
  max-width: 720px;
}
.truth-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.truth-sub { margin-top: 20px; color: var(--ink-3); font-size: 1.05rem; max-width: 660px; }
.truth-sub strong { color: var(--ink); font-weight: 600; }
.pipe-body em, .tour-copy em {
  font-style: normal;
  color: var(--signal-strong);
}

/* ============================================================
   TURN — MEET RETENNA
   ============================================================ */
.turn-mark { width: 108px; margin: 0 auto 34px; }
.turn-arc { overflow: visible; }
.arc-ring { stroke: var(--line-2); }
.arc-dash { stroke: var(--signal); stroke-opacity: 0.35; }
.arc-ray { stroke: var(--signal); stroke-opacity: 0.4; }
.arc-sweep {
  stroke: var(--signal);
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s;
}
.turn-mark.in .arc-sweep { stroke-dashoffset: 0; }
.arc-blip {
  fill: var(--signal);
  opacity: 0;
  transition: opacity 0.5s ease 1.7s;
}
.turn-mark.in .arc-blip { opacity: 1; }
.verbs {
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.verb {
  background: var(--panel);
  padding: 38px 34px 40px;
  transition: background 0.35s ease;
  position: relative;
}
.verb::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.verb:hover { background: var(--panel-2); }
.verb:hover::before { opacity: 1; }
.verb-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  line-height: 1.25;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 14px;
}
.verb-num {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--signal);
}
.verb p { font-size: 14.5px; color: var(--ink-3); line-height: 1.65; }
.verb-points {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  display: flex; flex-direction: column; gap: 10px;
}
.verb-points li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.verb-points li::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-soft);
  border: 1px solid var(--signal);
}

/* ============================================================
   HOW — PIPELINE
   ============================================================ */
.how { background: var(--void-2); border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
.pipeline {
  position: relative;
  margin-top: 84px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 8px;
}
.pipeline-rail {
  position: relative;
  width: 2px;
  margin-left: 29px;
  background: var(--line);
  border-radius: 2px;
}
.pipeline-rail span {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-radius: 2px;
  transition: height 0.2s linear;
}
.pipeline-steps {
  grid-column: 2;
  display: flex; flex-direction: column;
  gap: 88px;
  margin-left: -68px;
  padding-left: 68px;
}
.pipe-step { position: relative; max-width: 720px; }
.pipe-node {
  position: absolute;
  left: -68px; top: 2px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--void);
  font-size: 13px; font-weight: 600;
  color: var(--ink-4);
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.pipe-step.lit .pipe-node {
  color: var(--on-gold);
  background: var(--gold-2);
  border-color: var(--gold-2);
  box-shadow: 0 0 26px -4px var(--gold-glow);
}
.pipe-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink-3);
  transition: color 0.4s ease;
}
.pipe-step.lit .pipe-body h3 { color: var(--ink); }
.pipe-body p { color: var(--ink-3); max-width: 620px; }
.pipe-step.lit .pipe-body > p:first-of-type { color: var(--ink-2); }
.pipe-detail {
  margin-top: 16px;
  font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--ink-4);
  transition: color 0.4s ease;
}
.pipe-step.lit .pipe-detail { color: var(--signal); }

/* ============================================================
   TOUR
   ============================================================ */
.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
  margin-top: 130px;
}
.tour-row.flip .tour-copy { order: 2; }
.tour-row.flip .tour-panel { order: 1; }
.tour-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--signal);
  margin-bottom: 16px;
}
.tour-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.tour-copy > p { color: var(--ink-2); font-size: 1.03rem; }
.tour-points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.tour-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.tour-points li::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal-soft);
  border: 1px solid var(--signal);
}
.more-link {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  padding-bottom: 3px;
  border-bottom: 1px dashed var(--accent-border);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.more-link:hover { border-bottom-style: solid; color: var(--signal-strong); }

/* ---------- Mock chrome ---------- */
.mock {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 18px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}
.tour-panel:hover .mock { transform: translateY(-4px); }
.mock-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--titlebar-bg);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.mock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive);
}

/* Radar mock */
.mock-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 18px 6px;
}
.mock-tile {
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.mock-tile.hot { border-color: var(--accent-border); background: var(--signal-soft); }
.mock-tile-num {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 600;
  color: var(--ink);
}
.mock-tile.hot .mock-tile-num { color: var(--signal-strong); }
.mock-tile-label { font-size: 10.5px; color: var(--ink-4); letter-spacing: 0.03em; }
.mock-risk {
  margin: 10px 18px 0;
  padding: 13px 14px 11px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock-risk.hot { border-color: var(--stamp-border); }
.mock-risk.dimrow { opacity: 0.62; }
.mock-risk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sev {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 7px; border-radius: 5px;
}
.sev.crit { color: var(--crit); background: var(--alert-soft); }
.sev.high { color: var(--high); background: var(--alert-soft); }
.sev.med  { color: var(--med);  background: var(--signal-soft); }
.mock-risk-title { font-size: 14px; font-weight: 550; color: var(--ink); flex: 1; min-width: 0; }
.drift { font-family: var(--font-mono); font-size: 10.5px; }
.drift.up { color: var(--high); }
.drift.steady { color: var(--ink-4); }
.mock-risk-why { margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.spark { margin-top: 10px; width: 100%; height: 22px; opacity: 0.9; }
.spark-crit { stroke: var(--crit); }
.spark-gold { stroke: var(--signal); }
.mock-cta-row { display: flex; gap: 10px; padding: 16px 18px 0; }
.mock-btn {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 8px 13px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.mock-btn:hover { border-color: var(--signal); color: var(--signal); }
.mock-btn.gold {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--on-gold);
}
.mock-btn.gold:hover { background: var(--gold-1); color: var(--on-gold); }

/* Brief mock */
.mock-brief { padding-bottom: 8px; }
.brief-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 14px 18px 4px;
}
.brief-chip {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  transition: all 0.25s ease;
}
.brief-chip:hover { border-color: var(--signal); color: var(--signal); }
.brief-chip.active {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--on-gold);
}
#brief-lines { min-height: 248px; }
.brief-line {
  margin: 10px 18px 0;
  padding: 13px 15px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  display: block;
}
.brief-line.quiet { opacity: 0.78; margin-bottom: 10px; }
.brief-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--signal);
  background: var(--signal-soft);
  border-radius: 5px;
  padding: 3px 7px;
  margin-right: 10px;
  transform: translateY(-1px);
}
.brief-tag.warn { color: var(--high); background: var(--alert-soft); }
.brief-tag.ok { color: var(--positive); background: var(--positive-soft); }
.stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.mock-brief.play .stagger { opacity: 1; transform: none; }
.mock-brief.play .stagger:nth-child(1) { transition-delay: 0s; }
.mock-brief.play .stagger:nth-child(2) { transition-delay: 0.12s; }
.mock-brief.play .stagger:nth-child(3) { transition-delay: 0.34s; }
.mock-brief.play .stagger:nth-child(4) { transition-delay: 0.56s; }
.mock-brief.play .stagger:nth-child(5) { transition-delay: 0.78s; }

/* Ask mock */
.mock-ask { min-height: 300px; }
.ask-q {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 18px 14px;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-faint);
}
.ask-prompt { color: var(--signal); font-weight: 700; }
.caret {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--signal);
  animation: caret-blink 1s steps(1) infinite;
  transform: translateY(2px);
}
@keyframes caret-blink { 50% { opacity: 0; } }
.ask-a { padding: 16px 18px 6px; font-size: 14px; line-height: 1.75; color: var(--ink-2); min-height: 170px; }
.ask-a .cite {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--signal);
  background: var(--signal-soft);
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  padding: 2px 7px;
  margin: 0 3px;
  transform: translateY(-1px);
  white-space: nowrap;
  animation: cite-in 0.5s var(--ease-out);
}
@keyframes cite-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(-1px); }
}
.ask-a .ask-chunk { animation: chunk-in 0.4s ease; }
@keyframes chunk-in { from { opacity: 0; } to { opacity: 1; } }

/* Graph mock */
.graph-svg { width: 100%; padding: 18px 12px 6px; }
.graph-links line { stroke: var(--graph-link); stroke-width: 1; }
.graph-node circle {
  fill: var(--panel-3);
  stroke: var(--signal);
  stroke-width: 1.2;
}
.graph-node.core circle { fill: var(--gold-2); }
.graph-node text {
  fill: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-anchor: middle;
}
.graph-node.core text { fill: var(--ink); font-weight: 600; }
.graph-foot {
  margin: 8px 18px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-faint);
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink-4);
}

/* Moves mock */
.move-card { margin: 14px 18px 0; padding: 16px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 12px; }
.move-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.move-kind { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3); }
.move-state { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--med); }
.move-preview { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.move-why { margin-top: 12px; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-4); }
.move-actions { display: flex; gap: 8px; margin-top: 14px; }
.move-receipt {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--positive);
  border-radius: 8px;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--positive);
  background: var(--positive-soft);
}

/* Agents mock */
.agent-run {
  margin: 14px 18px 0;
  padding: 16px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.agent-run.dimrow { opacity: 0.6; padding: 13px 16px; }
.agent-state { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--positive); }
.agent-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 16px;
  margin: 12px 0;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.agent-meta span:nth-child(odd) { color: var(--ink-4); font-weight: 700; }
.agent-meta span:nth-child(even) { color: var(--ink-2); }
.agent-result {
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 12px;
  border-top: 1px solid var(--line-faint);
  margin-bottom: 12px;
}
.mock-agents .move-receipt { margin-top: 0; }

/* Outside world mock */
.world-item {
  margin: 10px 18px 0;
  padding: 13px 15px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.world-kind { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: var(--info); }
.world-item p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.world-link { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; color: var(--signal); margin-top: 5px; }
.world-time { font-size: 9.5px; color: var(--ink-4); }
.world-foot {
  margin: 14px 18px 0;
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink-4);
}

/* ============================================================
   LEARNING BANNER
   ============================================================ */
.learn {
  padding: 110px var(--pad-x);
  background:
    radial-gradient(720px 300px at 50% 50%, var(--learn-glow), transparent 70%),
    var(--void-2);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}
.learn-inner { text-align: center; max-width: 920px; }
.learn-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.learn-sub {
  margin-top: 26px;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-4);
}

/* ============================================================
   TRUST
   ============================================================ */
.arm-demo {
  margin-top: 72px;
  padding: 30px 34px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.arm-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.arm-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink-3); }
.arm-switch {
  position: relative;
  width: 58px; height: 30px;
  border-radius: 20px;
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.arm-knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}
.arm-switch[aria-pressed="true"] {
  background: var(--signal-soft);
  border-color: var(--gold-2);
  box-shadow: 0 0 22px -6px var(--gold-glow);
}
.arm-switch[aria-pressed="true"] .arm-knob {
  transform: translateX(28px);
  background: var(--gold-2);
}
.arm-state { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); }
.arm-state.on { color: var(--signal); }
.arm-ladder {
  margin-top: 30px;
  display: flex; align-items: stretch; gap: 14px;
  flex-wrap: wrap;
}
.ladder-step {
  flex: 1 1 180px;
  padding: 18px 20px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0.5;
  transition: opacity 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.ladder-step.active {
  opacity: 1;
  border-color: var(--accent-border);
  background: var(--signal-soft);
}
.ladder-step .mono {
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 6px;
}
.ladder-step p { font-size: 13px; color: var(--ink-2); }
.ladder-arrow { align-self: center; color: var(--ink-4); font-size: 18px; }

.trust-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-card {
  padding: 30px 28px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.trust-card::before {
  content: "";
  position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.trust-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.trust-card:hover::before { opacity: 1; }
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 17.5px; font-weight: 600;
  margin-bottom: 12px;
}
.trust-card p { font-size: 14px; color: var(--ink-3); line-height: 1.65; }
.trust-foot {
  margin: 56px auto 0;
  max-width: 680px;
  text-align: center;
  font-size: 1.06rem;
  color: var(--ink-2);
}

/* ============================================================
   USE CASES
   ============================================================ */
.usecases { background: var(--void-2); border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
.uc-tabs {
  margin-top: 60px;
  display: flex; gap: 10px;
  flex-wrap: wrap;
}
.uc-tab {
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.uc-tab:hover { color: var(--ink); border-color: var(--ink-3); }
.uc-tab.active {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--on-gold);
  font-weight: 600;
  box-shadow: 0 6px 24px -8px var(--gold-glow);
}
.uc-stage {
  margin-top: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 46px 48px 44px;
  min-height: 320px;
}
.uc-panel { animation: uc-in 0.55s var(--ease-out); }
.uc-panel[hidden] { display: none; }
@keyframes uc-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.uc-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 30px;
  text-wrap: balance;
}
.uc-blips { display: flex; flex-direction: column; gap: 14px; }
.uc-blip {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
  padding: 14px 18px;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.uc-dot {
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: translateY(-1px);
}
.uc-payoff {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 550;
  color: var(--signal);
}
.uc-more {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 550;
  color: var(--ink-2);
  transition: all 0.25s ease;
}
.uc-more:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }
.uc-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s var(--ease-out), opacity 0.5s ease, margin 0.4s ease;
}
.uc-detail.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 28px;
}
.uc-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.uc-detail-grid > div {
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.uc-detail-tag {
  display: block;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 10px;
}
.uc-detail-grid p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.uc-result {
  margin-top: 18px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* ============================================================
   PRICING
   ============================================================ */
.price-toggle {
  margin: 52px auto 0;
  display: flex; justify-content: center; gap: 6px;
  width: max-content;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.pt-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 550;
  color: var(--ink-3);
  transition: all 0.25s ease;
  display: flex; align-items: center; gap: 8px;
}
.pt-btn.active { background: var(--gold-2); color: var(--on-gold); font-weight: 600; }
.pt-save {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--positive-soft);
  color: var(--positive);
}
.pt-btn.active .pt-save { background: rgba(28,22,6,0.18); color: var(--on-gold); }

.plans {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 38px 34px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-2); }
.plan.featured {
  background: linear-gradient(180deg, var(--signal-soft), var(--panel) 45%);
  border-color: var(--accent-border-strong);
  box-shadow: 0 22px 48px -26px var(--gold-glow);
}
.plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--gold-2);
  color: var(--on-gold);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
}
.plan-for { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); min-height: 64px; }
.plan-price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.plan-amount {
  font-family: var(--font-display);
  font-size: 46px; font-weight: 650; letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}
.plan-amount.custom { font-size: 38px; }
.plan-amount.switching { opacity: 0; }
.plan-per { color: var(--ink-4); font-size: 15px; }
.plan-billnote {
  margin-top: 6px;
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink-4);
  min-height: 14px;
}
.plan-list {
  margin: 26px 0 34px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink-2);
}
.plan-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
}
.plan-cta { justify-content: center; width: 100%; }

/* ============================================================
   FOUNDING OFFER (early-waitlist promotion — remove as one block
   when the promo ends: .hero-promo*, .offer*, .plan-promo*, .cta-perk*)
   ============================================================ */

/* Hero mention */
.hero-promo {
  margin-top: 20px;
  max-width: 560px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-promo-tag {
  flex: none;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--gold-2);
  color: var(--on-gold);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  white-space: nowrap;
}
.hero-promo strong { color: var(--signal); font-weight: 650; }
.hero-promo a {
  color: var(--signal);
  border-bottom: 1px solid var(--accent-border);
  white-space: nowrap;
  transition: border-color 0.2s ease;
}
.hero-promo a:hover { border-color: var(--signal); }

/* Pricing banner */
.offer {
  margin: 56px auto 0;
  max-width: 1000px;
  padding: 36px 36px 32px;
  background: linear-gradient(180deg, var(--signal-soft), var(--panel) 60%);
  border: 1px solid var(--accent-border-strong);
  border-radius: 22px;
  box-shadow: 0 26px 52px -30px var(--gold-glow);
  text-align: center;
}
.offer-tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
}
.offer-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}
.offer-sub { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.offer-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}
.offer-perk {
  padding: 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.offer-kicker {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ink-4);
}
.offer-big {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 650; letter-spacing: -0.01em;
  color: var(--signal);
}
.offer-detail {
  margin-top: 7px;
  font-size: 12.5px; line-height: 1.55;
  color: var(--ink-3);
}
.offer-detail s { color: var(--ink-4); }
.offer-detail strong { color: var(--ink); font-weight: 650; }
.offer-monthly {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 14px;
  color: var(--ink-2);
}
.offer-monthly strong { color: var(--signal); font-weight: 650; }
.offer-cta-row {
  margin-top: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.offer-fine {
  font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--ink-4);
}

/* Plan-card perk line (text follows the monthly/annual toggle) */
.plan-promo {
  margin-top: 14px;
  min-height: 24px;
  display: flex; align-items: center; gap: 8px;
}
.plan-promo-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--gold-2);
  color: var(--on-gold);
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.11em;
  white-space: nowrap;
}
.plan-promo-text {
  font-size: 12.5px; font-weight: 550;
  color: var(--signal);
  transition: opacity 0.2s ease;
}

/* Waitlist-form perk chips */
.cta-perks {
  margin: 28px auto 0;
  max-width: 620px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
}
.cta-perk {
  padding: 8px 15px;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  background: var(--signal-soft);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.cta-perk strong { color: var(--signal); font-weight: 650; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--void); }
.faq-list {
  margin: 60px auto 0;
  max-width: 780px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: var(--accent-border); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  text-align: left;
  padding: 21px 24px;
  font-family: var(--font-display);
  font-size: 16.5px; font-weight: 600;
  color: var(--ink);
  transition: color 0.25s ease;
}
.faq-q:hover { color: var(--signal); }
.faq-icon {
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--signal);
  transition: transform 0.35s var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 460px; }
.faq-a p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 700px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  padding: 190px var(--pad-x) 170px;
  overflow: hidden;
  text-align: center;
}
.cta-rings { position: absolute; inset: 0; pointer-events: none; }
.cta-rings span {
  position: absolute; left: 50%; top: 50%;
  width: 340px; height: 340px;
  border: 1px solid var(--ring-col);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ring-out 6s var(--ease-out) infinite;
  opacity: 0;
}
.cta-rings span:nth-child(2) { animation-delay: 2s; }
.cta-rings span:nth-child(3) { animation-delay: 4s; }
@keyframes ring-out {
  0% { opacity: 0; scale: 0.35; }
  12% { opacity: 0.55; }
  100% { opacity: 0; scale: 2.6; }
}
.cta-inner { position: relative; max-width: 780px; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.026em;
}
.cta-sub {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--ink-2);
}
.cta-form {
  margin: 46px auto 0;
  display: flex; gap: 12px;
  max-width: 520px;
}
.cta-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; /* ≥16px so iOS Safari doesn't auto-zoom the page on focus */
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cta-form input::placeholder { color: var(--ink-4); }
.cta-form input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.cta-form input.invalid { border-color: var(--crit); }
.cta-success {
  margin-top: 22px;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--positive);
}
.cta-error {
  margin-top: 18px;
  font-size: 14px;
  color: var(--crit);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.cta-alt { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.cta-link {
  color: var(--signal);
  border-bottom: 1px solid var(--accent-border);
  transition: border-color 0.2s ease;
}
.cta-link:hover { border-color: var(--signal); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px var(--pad-x) max(44px, env(safe-area-inset-bottom));
  background: var(--void-2);
}
.footer-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px 60px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { border-radius: 10px; }
.footer-word { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.footer-tag { font-size: 9.5px; letter-spacing: 0.2em; color: var(--signal); margin-top: 3px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--ink-3); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid var(--line-faint);
  font-size: 12.5px;
  color: var(--ink-4);
  max-width: 760px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 10002;
  background: var(--backdrop);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-backdrop.visible { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow-tooltip);
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  max-height: 82dvh; /* stable when mobile URL bars collapse */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 38px 40px 36px;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out);
}
.modal-backdrop.visible .modal { transform: none; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px;
  font-size: 26px; line-height: 1;
  color: var(--ink-3);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.modal-close:hover { color: var(--ink); background: var(--signal-soft); }
.modal-content h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  padding-right: 36px;
}
.modal-content h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 24px 0 8px;
}
.modal-content p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.modal-content ul { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 9px; }
.modal-content li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.modal-content li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-soft);
  border: 1px solid var(--signal);
}
.modal-content strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  /* minmax(0, 1fr), NOT 1fr: bare 1fr means minmax(auto, 1fr), and the
     nowrap ticker + canvas would set the column's min width above the
     viewport, overflowing the whole hero on phones. */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-radar { width: min(100%, 520px); order: 2; }
  .hero-copy { order: 1; min-width: 0; }
  .verbs { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan.featured { order: -1; }
  .plan-for { min-height: 0; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-row { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 110px; }
  .tour-row.flip .tour-copy { order: 1; }
  .tour-row.flip .tour-panel { order: 2; }
  .tour-copy, .tour-panel { min-width: 0; }
  .fragments { grid-template-columns: 1fr; max-width: 520px; }
  .fragment[data-float="2"] { transform: rotate(0.9deg); }
  .uc-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 62px;
    --pad-x: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  }
  .nav-links { display: none; }
  .nav { background: var(--nav-bg); }
  .nav-inner { gap: 12px; }
  /* Keep the primary CTA in the bar; the theme switch lives in the menu */
  .nav-cta-wrap { margin-left: auto; }
  .nav-cta-wrap .theme-toggle { display: none; }
  .nav-cta-wrap .btn-sm { padding: 10px 14px; font-size: 13px; }
  .nav-burger { display: flex; margin-right: -12px; }
  .section { padding-top: 100px; padding-bottom: 100px; }
  .hero-status { flex-wrap: wrap; }
  .pipeline { grid-template-columns: 44px 1fr; }
  .pipeline-rail { margin-left: 21px; }
  .pipe-node { left: -52px; width: 44px; height: 44px; font-size: 11.5px; }
  .pipeline-steps { gap: 64px; margin-left: -52px; padding-left: 52px; }
  .uc-stage { padding: 30px 24px; }
  /* Stacked single-column content is much taller than desktop — raise the expand caps */
  .uc-detail.open { max-height: 1700px; }
  .faq-item.open .faq-a { max-height: 950px; }
  /* Comfortable tap targets on the interactive demo chrome */
  .brief-chip { padding: 9px 14px; }
  .mock-btn { padding: 10px 14px; }
  .cta { padding-top: 130px; padding-bottom: 120px; }
  .cta-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; align-items: flex-start; }
  .modal { padding: 30px 24px 28px; }
  .faq-q { font-size: 15.5px; padding: 18px 20px; }
  .faq-a p { padding: 0 20px 20px; }
}

@media (max-width: 520px) {
  :root { --pad-x: max(18px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  body { font-size: 16px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .learn { padding-top: 84px; padding-bottom: 84px; }
  .hero { padding-bottom: 64px; }
  .hero-title { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .radar-hint { font-size: 9px; letter-spacing: 0.12em; bottom: -10px; }
  .trust-grid { grid-template-columns: 1fr; }
  .offer { padding: 28px 20px 26px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-cta-row .btn { width: 100%; justify-content: center; }
  .mock-tiles { grid-template-columns: repeat(2, 1fr); }
  /* Risk rows: severity + trend on top, title on its own line */
  .mock-risk-head { row-gap: 4px; }
  .mock-risk-title { flex: 1 1 100%; order: 3; }
  /* Outside-world rows: label + time on top, story full-width below */
  .world-item { grid-template-columns: 1fr auto; }
  .world-kind { order: 1; }
  .world-time { order: 2; justify-self: end; }
  .world-item > div { order: 3; grid-column: 1 / -1; }
  .graph-node text { font-size: 11px; }
  .arm-ladder { flex-direction: column; }
  .ladder-step { flex-basis: auto; } /* 180px basis would become height in a column */
  .ladder-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 24px; }
  .tour-row { margin-top: 92px; gap: 30px; }
  .uc-tabs { gap: 8px; }
  .uc-tab { padding: 9px 15px; font-size: 13px; }
  .price-toggle { max-width: 100%; }
  .pt-btn { padding: 10px 14px; font-size: 13.5px; }
  .uc-stage { padding: 26px 18px; }
  .cta { padding-top: 110px; padding-bottom: 104px; }
  .cta-perk { white-space: normal; text-align: center; }
  .modal-backdrop { padding: 14px; }
  .modal { padding: 26px 20px 24px; border-radius: 16px; }
}

/* Very narrow phones: the bar CTA no longer fits beside brand + burger */
@media (max-width: 385px) {
  .nav-cta-wrap { display: none; }
}

/* Touch devices: no sticky hover-lift states; quick press feedback instead */
@media (hover: none) {
  .btn-primary:hover, .plan:hover, .trust-card:hover { transform: none; }
  .tour-panel:hover .mock { transform: none; }
  .btn:active { transform: scale(0.97); transition-duration: 0.12s; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stagger { opacity: 1; transform: none; }
  .fragment { animation: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cta-rings span { animation: none; opacity: 0.18; }
  .uc-detail, .faq-a { transition: none; }
}
