/* ═══════════════════════════════════════════════════════════════════
   DELTA INTELLIGENCE — design system
   "Institutional analysis terminal": dark-committed, coordinate-grid
   motif, verdict pills as the core brand visual, Inter + mono.
   Liquid Glass material layer per LIQUID_GLASS_SPEC.md (2026-07-13).
   ═══════════════════════════════════════════════════════════════════ */

/* Self-hosted Inter (variable 400–700). Greek subset carries the Δ brand
   glyph so it renders identically on every platform. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --bg:        #050506;
  --bg-raise:  #0B0B0E;
  --bg-card:   #101014;
  --hairline:  rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Neutrals carry a slight cool bias toward the accent world.
     Both pass WCAG AA (4.5:1+) on every surface they sit on — including the
     worst case: glass bright-stop with an aurora blob drifted behind it
     (text-3 computes ~4.8:1 there, ~6.9:1 on plain --bg). */
  --text:      #F5F5F7;   /* headlines */
  --text-2:    #A8ADB8;   /* body       — ~9:1 on --bg */
  --text-3:    #949AA6;   /* captions */

  --accent-a:  #5E5CE6;   /* indigo */
  --accent-b:  #64D2FF;   /* ice blue */
  --go:        #30D158;
  --warn:      #FFD60A;
  --veto:      #FF453A;

  /* Verdict tints — one vocabulary for pills, tags and feed accents */
  --go-line:   rgba(48, 209, 88, 0.5);
  --go-tint:   rgba(48, 209, 88, 0.10);
  --warn-line: rgba(255, 214, 10, 0.45);
  --warn-tint: rgba(255, 214, 10, 0.08);
  --veto-line: rgba(255, 69, 58, 0.5);
  --veto-tint: rgba(255, 69, 58, 0.10);
  --scan-line-c: rgba(100, 210, 255, 0.45);
  --scan-tint: rgba(100, 210, 255, 0.10);

  --grad: linear-gradient(100deg, var(--accent-a), var(--accent-b));

  /* ── Liquid Glass tokens — the one material vocabulary (LIQUID_GLASS_SPEC.md) ── */
  --glass-grad: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035) 40%, rgba(255,255,255,0.06));
  --glass-scrim: linear-gradient(rgba(5,5,6,0.35), rgba(5,5,6,0.35));
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-bright: rgba(255, 255, 255, 0.22);
  --glass-lip: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --glass-depth: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glass-blur: blur(22px) saturate(1.7);
  --glass-blur-deep: blur(34px) saturate(1.7);
  --glass-blur-chip: blur(14px) saturate(1.7);

  --radius: 22px;
  --radius-sm: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(100, 210, 255, 0.25); color: var(--text); }

h1, h2, h3, h4 { color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
em { font-style: normal; color: var(--text); }
.muted { color: var(--text-3); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Liquid layer — fixed aurora BEHIND all content, on every page ─── */
.liquid-bg {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.liquid-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.liquid-bg .blob-a {
  width: 80vmin; height: 80vmin; top: -18vmin; left: -12vmin;
  background: radial-gradient(circle at 50% 50%, rgba(94, 92, 230, 0.20), transparent 70%);
  animation: blobA 60s ease-in-out infinite alternate;
}
.liquid-bg .blob-b {
  width: 70vmin; height: 70vmin; top: 24vmin; right: -16vmin;
  background: radial-gradient(circle at 50% 50%, rgba(100, 210, 255, 0.14), transparent 70%);
  animation: blobB 75s ease-in-out infinite alternate;
}
.liquid-bg .blob-c {
  width: 90vmin; height: 90vmin; bottom: -30vmin; left: 16vmin;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.10), transparent 70%);
  animation: blobC 90s ease-in-out infinite alternate;
}
@keyframes blobA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(16vmin, 10vmin, 0) scale(1.18); }
}
@keyframes blobB {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-14vmin, -9vmin, 0) scale(0.92); }
}
@keyframes blobC {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(10vmin, -12vmin, 0) scale(1.15); }
}

/* ─── Coordinate grid — the terminal's chart-paper ground. Fixed, faint,
   masked so it breathes near the top and dissolves at the edges.
   Sits ABOVE the aurora (later in DOM, same z-index) so the lines read. ─── */
.grid-bg {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.030) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.030) 0 1px, transparent 1px 72px);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 25%, black 25%, transparent 90%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 25%, black 25%, transparent 90%);
}

/* ─── Keyboard focus — always visible, zero-specificity so components can refine ─── */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 3px;
}

/* ─── Liquid Glass material (shared recipe classes) ─── */
.glass {
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-lip), var(--glass-depth);
}
.glass-raise { transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s; }
.glass-raise:hover, .glass-raise:focus-within {
  border-color: var(--glass-border-bright);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), var(--glass-depth);
}
.glass-deep {
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur-deep);
  -webkit-backdrop-filter: var(--glass-blur-deep);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-lip), inset 0 0 80px -40px rgba(94, 92, 230, 0.35), var(--glass-depth);
}
.glass-chip {
  background: var(--glass-grad);
  backdrop-filter: var(--glass-blur-chip);
  -webkit-backdrop-filter: var(--glass-blur-chip);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-lip);
}

/* ─── Verdict pills — the brand's core visual. One vocabulary everywhere:
   marketing sections, demo, dashboard. ─── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-2);
}
.pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-go    { color: var(--go);   border-color: var(--go-line);   background: var(--go-tint); }
.pill-watch { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); }
.pill-veto  { color: var(--veto); border-color: var(--veto-line); background: var(--veto-tint); }
.pill-scan  { color: var(--accent-b); border-color: rgba(100, 210, 255, 0.4); background: var(--scan-tint); }

/* ─── Reveal-on-scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger variant: the container stays put; its children cascade in.
   Pair as class="… reveal stagger" — the observer still just adds .in.
   The entrance is a keyframe ANIMATION, not a transition: children like
   .card/.tier own a `transition` shorthand for hover, which would clobber a
   transition-based entrance per-property and inherit its stagger delay
   forever. An animation with `backwards` fill plays once, leaves no fill,
   and its delay never touches the hover transitions. */
.reveal.stagger { opacity: 1; transform: none; }
.stagger > * { opacity: 0; }
.stagger.in > * { opacity: 1; animation: staggerIn 0.8s var(--ease) backwards; }
.stagger.in > :nth-child(2) { animation-delay: 0.08s; }
.stagger.in > :nth-child(3) { animation-delay: 0.16s; }
.stagger.in > :nth-child(4) { animation-delay: 0.24s; }
.stagger.in > :nth-child(5) { animation-delay: 0.32s; }
.stagger.in > :nth-child(6) { animation-delay: 0.40s; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > *, .stagger.in > * { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
  .liquid-bg .blob { animation: none; }
  .pulse-dot, .tl-item.active .tl-dot { animation: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border-radius: 999px; padding: 12px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  will-change: transform;
}
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 0 rgba(94, 92, 230, 0);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 40px -8px rgba(100, 210, 255, 0.45);
}
/* hover sheen — specular sweep, transform-only */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateX(360%) skewX(-18deg);
  transition: transform 0.9s var(--ease);
}
.btn-ghost {
  background: var(--glass-grad);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur-chip);
  -webkit-backdrop-filter: var(--glass-blur-chip);
  box-shadow: var(--glass-lip);
}
.btn-ghost:hover {
  border-color: var(--glass-border-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}
.btn-large { padding: 16px 32px; font-size: 17px; }
.btn-small { padding: 8px 18px; font-size: 13px; }

/* ─── Nav — glass bar, full recipe ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--glass-grad), linear-gradient(rgba(5, 5, 6, 0.55), rgba(5, 5, 6, 0.55));
  border-bottom: 1px solid transparent;
  box-shadow: var(--glass-lip);
  transition: border-color 0.4s, background 0.4s;
}
.nav.scrolled {
  border-bottom-color: var(--glass-border);
  background: var(--glass-grad), linear-gradient(rgba(5, 5, 6, 0.8), rgba(5, 5, 6, 0.8));
}
/* scan-line: a slow data-sweep along the nav's bottom edge — the terminal's
   "alive" tell. 1px, one pass every 14s, gone under reduced motion. */
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 38%, var(--scan-line-c) 50%, transparent 62%);
  background-size: 260% 100%;
  animation: navScan 14s linear infinite;
  pointer-events: none;
  opacity: 0.65;
}
@keyframes navScan {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}
@media (prefers-reduced-motion: reduce) { .nav::before { display: none; } }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-glyph {
  font-size: 22px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name { color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

/* Trailing action group: "Launch Dashboard" (glass ghost chip) + primary CTA.
   Kept tighter than the 32px nav-inner gap so the two buttons read as a pair. */
.nav-actions { display: flex; align-items: center; gap: 10px; }
/* Nested glass: the nav is already a blurred surface — a re-blurred ghost chip
   inside it adds nothing visible and eats the ≤6-backdrops budget (spec rule,
   mirrors `.tier .btn-ghost`). Gradient + border + lip keep the glass look. */
.nav-actions .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ── Mobile menu ── hamburger toggle + glass dropdown panel (≤760px).
   Panel uses visibility (not display) so it can animate AND leave the
   tab order when closed. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 12px; cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-grad);
  box-shadow: var(--glass-lip);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}
.nav.menu-open .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav-toggle-bar:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-inner { justify-content: space-between; gap: 12px; }
  .nav-actions { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; gap: 0; margin: 0;
    padding: 6px 20px 14px;
    background: var(--glass-grad), linear-gradient(rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.96));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 28px 48px -24px rgba(0, 0, 0, 0.8);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav.menu-open .nav-links {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav-links a {
    display: flex; align-items: center; min-height: 46px;
    padding: 4px 6px; font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links a:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* must match the open-state selector's specificity, or the 0.35s
     open transition (0,3,0) outguns this override */
  .nav-links, .nav.menu-open .nav-links { transition: none; }
  .nav-toggle-bar { transition: none; }
}
/* Very narrow: drop the brand wordmark (keep the Δ glyph) so the CTA and
   menu button stay on one line without clipping. */
@media (max-width: 520px) { .brand-name { display: none; } }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(94, 92, 230, 0.16), transparent 65%),
    radial-gradient(ellipse 45% 40% at 60% 30%, rgba(100, 210, 255, 0.10), transparent 60%);
  filter: blur(20px);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translateX(-54%) translateY(0); }
  to   { transform: translateX(-46%) translateY(24px); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

/* Terminal section label — mono, uppercase, framed by axis ticks */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-b); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; flex: none; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-b));
  opacity: 0.6;
}
.eyebrow::after { background: linear-gradient(90deg, var(--accent-b), transparent); }
.hero-title {
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.03; letter-spacing: -0.035em; font-weight: 700;
  margin-bottom: 24px;
}
.hero-sub {
  max-width: 640px; font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2);
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-content { position: relative; z-index: 2; }

/* ─── Hero stage (product mock) — glass-deep frame ─── */
.hero-stage {
  position: relative; z-index: 2;
  width: min(1040px, 94vw);
  margin-top: 72px;
  perspective: 1200px;
}
.stage-frame {
  position: relative;
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur-deep);
  -webkit-backdrop-filter: var(--glass-blur-deep);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    var(--glass-lip),
    inset 0 0 80px -40px rgba(94, 92, 230, 0.35),
    var(--glass-depth),
    0 0 80px -40px rgba(94, 92, 230, 0.35);
  transform: rotateX(4deg);
  transform-origin: center bottom;
  transition: transform 1.2s var(--ease);
}
.hero-stage.in .stage-frame { transform: rotateX(0deg); }

/* specular sweep across the hero frame — transform-only loop */
.stage-frame::after {
  content: ""; position: absolute; top: -8%; bottom: -8%; left: 0; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18) 50%, transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: frameSheen 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes frameSheen {
  0%   { transform: translateX(-140%) skewX(-18deg); }
  38%  { transform: translateX(380%) skewX(-18deg); }
  100% { transform: translateX(380%) skewX(-18deg); }
}

.stage-titlebar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; /* ≤375px: status pill wraps below instead of clipping at the frame edge */
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; opacity: 0.9; }
.dot.red { background: #FF5F57; } .dot.yellow { background: #FEBC2E; } .dot.green { background: #28C840; }
.stage-symbol {
  margin-left: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-3);
}
.stage-status {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent-b);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-b);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100, 210, 255, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(100, 210, 255, 0); }
}

.stage-body { position: relative; }
#chartCanvas { display: block; width: 100%; height: 440px; }
@media (max-width: 700px) { #chartCanvas { height: 320px; } }

/* feed rows: NO per-row backdrop-filter (canvas overlay — perf rule) */
.stage-feed {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
  pointer-events: none;
}
.feed-item {
  background: rgba(8, 8, 12, 0.88);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--accent-b);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text-2);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  max-width: 320px;
}
.feed-item.show { opacity: 1; transform: none; }
.feed-item .fi-tag { color: var(--accent-b); font-weight: 700; margin-right: 8px; }
.feed-item.go   { border-left-color: var(--go); }   .feed-item.go .fi-tag { color: var(--go); }
.feed-item.veto { border-left-color: var(--veto); } .feed-item.veto .fi-tag { color: var(--veto); }
.feed-item.warn { border-left-color: var(--warn); } .feed-item.warn .fi-tag { color: var(--warn); }

.stage-verdict {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
  background: rgba(255,255,255,0.02);
  font-family: var(--mono);
}
.verdict-label { font-size: 11px; letter-spacing: 0.14em; color: var(--text-3); }
.verdict-value { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-2); transition: color 0.5s; }
.verdict-value.go { color: var(--go); }
.verdict-value.wait { color: var(--warn); }

/* ─── Strip (translucent so the liquid layer reads through) ─── */
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: rgba(11, 11, 14, 0.5); }
.strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 44px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  text-align: center;
}
.strip-num {
  display: block; font-size: 44px; font-weight: 700; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strip-cap { font-size: 14px; color: var(--text-3); }

/* ─── Sections ─── */
.section { max-width: 1200px; margin: 0 auto; padding: 120px 24px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.section-sub { font-size: 18px; color: var(--text-2); }

/* ─── Cards — .glass panels ─── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--glass-lip), var(--glass-depth);
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), var(--glass-depth), 0 0 40px -24px rgba(100, 210, 255, 0.3);
}
.card-icon {
  font-size: 26px; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text-2); margin-bottom: 18px; }
.card-list { list-style: none; }
.card-list li {
  font-size: 14px; color: var(--text-3); padding: 7px 0 7px 22px; position: relative;
  border-top: 1px solid var(--hairline);
}
.card-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-b); }

.feature-row { display: grid; gap: 20px; }
.feature-card {
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-lip), var(--glass-depth);
  overflow: hidden;
}
.tv-slot { min-height: 380px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 45%, rgba(94,92,230,0.09), transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.025) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.025) 40px);
}
.tv-slot-inner { text-align: center; }
.tv-slot-glyph {
  display: block; font-size: 56px; font-weight: 700; margin-bottom: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .tv-slot-glyph { animation: none; } }
.tv-slot-inner p { color: var(--text); font-weight: 600; }

/* ─── Discipline split ─── */
.section-dark {
  max-width: none;
  background: rgba(11, 11, 14, 0.5);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.split {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-text h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 18px; }

.stat-row { display: flex; gap: 40px; margin: 34px 0 18px; flex-wrap: wrap; }
.stat { display: block; }
.stat-num, .stat-unit {
  font-size: 42px; font-weight: 700; letter-spacing: -0.03em; display: inline;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-cap { display: block; font-size: 13px; color: var(--text-3); margin-top: 4px; }
.fineprint { font-size: 12px; color: var(--text-3); max-width: 520px; line-height: 1.5; }

.terminal {
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  font-family: var(--mono); font-size: 13.5px;
  box-shadow: var(--glass-lip), var(--glass-depth);
}
.t-line {
  border-bottom: 1px solid var(--hairline);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.t-line:last-child { border-bottom: none; }
.terminal.in .t-line { opacity: 1; transform: none; }
/* nth-of-type, not nth-child: the terminal-hint <p> is the first child */
.terminal.in .t-line:nth-of-type(1) { transition-delay: 0.1s; }
.terminal.in .t-line:nth-of-type(2) { transition-delay: 0.35s; }
.terminal.in .t-line:nth-of-type(3) { transition-delay: 0.6s; }
.terminal.in .t-line:nth-of-type(4) { transition-delay: 0.85s; }
.terminal.in .t-line:nth-of-type(5) { transition-delay: 1.15s; }
.terminal.in .t-line:nth-of-type(6) { transition-delay: 1.45s; }
/* must live AFTER the .t-line base rule — equal specificity, later wins */
@media (prefers-reduced-motion: reduce) {
  .t-line { opacity: 1; transform: none; transition: none; }
}
.t-time { color: var(--text-3); font-size: 12px; }
.t-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 6px;
}
.t-tag.wait { background: rgba(255, 214, 10, 0.12); color: var(--warn); }
.t-tag.warn { background: rgba(255, 159, 10, 0.14); color: #FF9F0A; }
.t-tag.veto { background: rgba(255, 69, 58, 0.13); color: var(--veto); }
.t-tag.go   { background: rgba(48, 209, 88, 0.13); color: var(--go); }

/* ─── Timeline — .glass panels ─── */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tl-item {
  position: relative; padding: 28px 24px;
  /* NO backdrop-filter: 3–4 timeline panels + adjacent glass sections would blow the
     ≤6-surfaces-per-viewport budget (spec hard rule). Gradient+scrim+lip keep the look;
     nothing sharp ever sits behind these panels, so blur adds nothing visible. */
  background: var(--glass-grad), var(--glass-scrim);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-lip), var(--glass-depth);
}
.tl-dot {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-3); margin-bottom: 16px;
}
.tl-item.done .tl-dot { background: var(--go); box-shadow: 0 0 14px rgba(48, 209, 88, 0.5); }
.tl-item.active { border-color: rgba(100, 210, 255, 0.35); }
.tl-item.active .tl-dot {
  background: var(--accent-b);
  animation: pulse 1.8s ease-in-out infinite;
}
.tl-item h4 { font-size: 16px; margin-bottom: 8px; }
.tl-item p { font-size: 14px; color: var(--text-3); }

/* ─── Access ─── */
.section-access { position: relative; text-align: center; overflow: hidden; max-width: none; }
.access-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 50% 100%, rgba(94, 92, 230, 0.14), transparent 70%);
}
.access-inner { position: relative; max-width: 860px; margin: 0 auto; }
.access-inner h2 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 18px; }

.waitlist-form {
  display: flex; gap: 12px; justify-content: center; margin: 40px auto 12px;
  max-width: 520px; flex-wrap: wrap;
}
/* inputs: glass well — inner shadow, ice focus glow */
.waitlist-form input {
  flex: 1; min-width: 240px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 14px 24px;
  color: var(--text); font-size: 16px; font-family: var(--font);
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.waitlist-form input:focus {
  border-color: var(--accent-b);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(100, 210, 255, 0.12);
  background: rgba(255,255,255,0.07);
}
.waitlist-form input::placeholder { color: var(--text-3); }
.form-note { font-size: 13px; color: var(--text-3); min-height: 20px; transition: color 0.3s; }
.form-note.ok { color: var(--go); }
.form-note.err { color: var(--veto); }

.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 20px; margin-top: 64px; text-align: left;
  max-width: 1060px; margin-left: auto; margin-right: auto;
}
.tier {
  position: relative;
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--glass-lip), var(--glass-depth);
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.tier:hover { transform: translateY(-2px); border-color: var(--glass-border-bright); }
.tier.featured {
  border-color: rgba(100, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(94, 92, 230, 0.10), transparent 55%), var(--glass-grad), var(--glass-scrim);
  box-shadow: var(--glass-lip), var(--glass-depth), 0 0 60px -30px rgba(94, 92, 230, 0.5);
}
.tier.featured:hover { border-color: rgba(100, 210, 255, 0.35); }
.tier-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 999px;
}
.tier h4 { font-size: 15px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.tier-price { font-size: 34px; font-weight: 700; color: var(--text); margin: 8px 0 18px; letter-spacing: -0.02em; }
.tier ul { list-style: none; margin-bottom: 26px; }
.tier li { font-size: 14px; color: var(--text-2); padding: 8px 0 8px 24px; position: relative; border-top: 1px solid var(--hairline); }
.tier li::before { content: "✓"; position: absolute; left: 2px; color: var(--go); font-weight: 700; }
.tier-btn { width: 100%; }
/* Nested glass: a chip inside an already-blurred glass panel must not re-blur —
   its backdrop IS the panel surface (no visible effect) and each extra surface
   eats the ≤6-per-viewport backdrop budget (spec hard rule). */
.tier .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ─── FAQ — glass on the CONTAINER (rows never get backdrop-filter) ─── */
.faq {
  max-width: 720px; margin: 0 auto;
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 8px 28px;
  box-shadow: var(--glass-lip), var(--glass-depth);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 36px 20px 4px;
  color: var(--text); font-weight: 600; font-size: 17px;
  position: relative;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 22px; font-weight: 400;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent-b); }
.faq details p {
  padding: 0 4px 22px; font-size: 15px; color: var(--text-2); max-width: 640px;
}

/* ─── Footer — glass band ─── */
.footer {
  border-top: 1px solid var(--glass-border);
  background: var(--glass-grad), var(--glass-scrim);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-lip);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-brand .brand-glyph { font-size: 30px; }
.footer-brand strong { color: var(--text); font-size: 16px; }
.disclaimer { font-size: 12px; color: var(--text-3); max-width: 820px; line-height: 1.6; margin-bottom: 18px; }
.footer-copy { font-size: 12px; }

/* ─── Reduced motion: blobs static, sheens off, all still legible ─── */
@media (prefers-reduced-motion: reduce) {
  .stage-frame::after { display: none; animation: none; }
  .btn-primary::after { display: none; }
}

/* ═══════════ Phase 1 additions — hero lede, roadmap status, validation ═══════════ */

/* Hero lede: the execution-boundary one-liner, brighter than body */
.hero-lede {
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
  max-width: 640px;
  margin: 0 0 14px;
}
@media (max-width: 760px) { .hero-lede { font-size: 17px; } }

/* Inline link inside fineprint */
.fine-link {
  color: var(--accent-b);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(100, 210, 255, 0.3);
}
.fine-link:hover { border-bottom-color: var(--accent-b); }

/* Roadmap status pills */
.tl-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid var(--hairline-strong);
  color: var(--text-2);
}
.status-built   { color: var(--go);   border-color: rgba(48, 209, 88, 0.4);  background: rgba(48, 209, 88, 0.08); }
.status-testing { color: var(--warn); border-color: rgba(255, 214, 10, 0.4);  background: rgba(255, 214, 10, 0.08); }
.status-now     { color: var(--accent-b); border-color: rgba(100, 210, 255, 0.45); background: rgba(100, 210, 255, 0.10); }
.status-planned { color: var(--text-3); }

/* ─── Validation / transparency section ─── */
.valid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 8px auto 28px;
}
.valid-meta {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 22px;
}
.vm-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.vm-row:last-child { border-bottom: none; }
.vm-k { color: var(--text-3); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.vm-v { color: var(--text); text-align: right; font-weight: 500; }
.valid-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.valid-notes details {
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.valid-notes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  list-style: none;
}
.valid-notes summary::-webkit-details-marker { display: none; }
.valid-notes summary::before { content: "＋ "; color: var(--accent-b); }
.valid-notes details[open] summary::before { content: "－ "; }
.valid-notes details p { margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ═══════════ Phase 2 — hero product demo (Structure→Macro→Risk→Verdict) ═══════════ */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.demo-frame { display: flex; flex-direction: column; gap: 0; }

/* titlebar extras */
.demo-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--warn); border: 1px solid rgba(255,214,10,0.4); background: rgba(255,214,10,0.07);
  padding: 3px 8px; border-radius: 5px; margin-left: 10px; white-space: nowrap;
}
.stage-verdict-pill {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--hairline-strong); transition: all 0.4s var(--ease);
}
.stage-verdict-pill[data-cls="scan"] { color: var(--text-2); }
.stage-verdict-pill[data-cls="go"]   { color: var(--go); border-color: rgba(48,209,88,0.5); background: rgba(48,209,88,0.12); box-shadow: 0 0 18px rgba(48,209,88,0.25); }
.stage-verdict-pill[data-cls="veto"] { color: var(--veto); border-color: rgba(255,69,58,0.5); background: rgba(255,69,58,0.12); }

/* main row: agent rail + chart */
.demo-main { display: flex; gap: 14px; padding: 14px 16px 4px; align-items: stretch; }
.agent-rail { display: flex; flex-direction: column; gap: 8px; width: 132px; flex-shrink: 0; }
.agent {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--bg-raise);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s;
  opacity: 0.55;
}
.agent-state {
  font-family: var(--mono); font-size: 12px; width: 18px; height: 18px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%; color: var(--text-3);
  border: 1px solid var(--hairline-strong);
}
.agent-name { font-size: 13px; font-weight: 600; color: var(--text-2); }
.agent[data-state="active"] { opacity: 1; border-color: rgba(100,210,255,0.5); background: rgba(100,210,255,0.08); }
.agent[data-state="active"] .agent-state { color: var(--accent-b); border-color: var(--accent-b); animation: agentPulse 1.1s ease-in-out infinite; }
.agent[data-state="active"] .agent-name { color: var(--text); }
.agent[data-state="pass"] { opacity: 1; border-color: rgba(48,209,88,0.45); }
.agent[data-state="pass"] .agent-state { color: var(--go); border-color: rgba(48,209,88,0.6); background: rgba(48,209,88,0.12); }
.agent[data-state="pass"] .agent-name { color: var(--text); }
.agent[data-state="warn"] { opacity: 1; border-color: rgba(255,214,10,0.45); }
.agent[data-state="warn"] .agent-state { color: var(--warn); border-color: rgba(255,214,10,0.6); }
@keyframes agentPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(100,210,255,0.4); } 50% { box-shadow: 0 0 0 4px rgba(100,210,255,0); } }

.demo-chart-wrap { flex: 1; min-width: 0; height: 288px; position: relative; }
#demoCanvas { width: 100%; height: 100%; display: block; }

/* explanation panel */
.demo-explain { padding: 6px 18px 12px; min-height: 74px; }
.demo-phase-title {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-b); margin-bottom: 6px;
}
.demo-why { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 640px; }

/* controls */
.demo-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 14px; border-top: 1px solid var(--hairline);
}
.demo-btns { display: flex; gap: 6px; }
.demo-ctl {
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: var(--bg-raise); color: var(--text-2);
  font-size: 16px; display: grid; place-items: center; transition: all 0.2s;
}
.demo-ctl:hover { color: var(--text); border-color: var(--glass-border-bright); background: var(--bg-card); }
.demo-play::before { content: "\23F8"; }        /* pause glyph while playing */
.demo-play[data-playing="0"]::before { content: "\25B6"; font-size: 13px; }  /* play triangle */
.demo-dots { display: flex; gap: 16px; flex-wrap: wrap; }
.demo-dot {
  position: relative;
  width: 9px; height: 9px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--hairline-strong); background: transparent; transition: all 0.25s;
}
/* invisible ≥25px hit area so the 9px visual dot still meets touch-target minimums */
.demo-dot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.demo-ctl:focus-visible, .demo-dot:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 3px; }
.demo-dot[data-on="done"] { background: rgba(100,210,255,0.35); border-color: transparent; }
.demo-dot[data-on="1"] { background: var(--accent-b); border-color: var(--accent-b); transform: scale(1.25); box-shadow: 0 0 8px rgba(100,210,255,0.5); }

/* mobile: stack agent rail above the chart, shrink chart */
@media (max-width: 680px) {
  .demo-main { flex-direction: column; gap: 10px; padding: 12px 12px 4px; }
  .agent-rail { flex-direction: row; width: auto; }
  .agent { flex: 1; padding: 7px 8px; justify-content: center; }
  .agent-name { font-size: 11.5px; }
  .demo-chart-wrap { height: 220px; }
  .demo-badge { font-size: 9px; padding: 2px 6px; }
  .demo-why { font-size: 13px; }
}

/* reduced motion: no agent pulse, no verdict glow pulse */
@media (prefers-reduced-motion: reduce) {
  .agent[data-state="active"] .agent-state { animation: none; }
}

/* ═══════════ P2 — verdict pipeline (the decision flow, animated) ═══════════ */
.pipeline {
  max-width: 1060px;
  margin: 0 auto 56px;
  padding: 26px 22px 22px;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.pipe-rail { display: flex; align-items: stretch; gap: 0; }
.pipe-node {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-align: center;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s;
  /* idle dim must stay AA-readable: 0.75 keeps the node names ≥4.5:1 */
  opacity: 0.75;
}
.pipe-node .pipe-glyph { font-size: 17px; line-height: 1; color: var(--text-3); transition: color 0.4s; }
.pipe-node .pipe-name {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--text-2);
}
.pipe-node .pipe-cap {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3);
  min-height: 14px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pipe-node.lit { opacity: 1; border-color: rgba(100, 210, 255, 0.45); background: rgba(100, 210, 255, 0.05); }
.pipe-node.lit .pipe-glyph { color: var(--accent-b); }
.pipe-node.pass { opacity: 1; border-color: var(--go-line); }
.pipe-node.pass .pipe-glyph { color: var(--go); }
.pipe-node.warn { opacity: 1; border-color: var(--warn-line); }
.pipe-node.warn .pipe-glyph { color: var(--warn); }
.pipe-node.veto { opacity: 1; border-color: var(--veto-line); background: var(--veto-tint); }
.pipe-node.veto .pipe-glyph { color: var(--veto); }

/* connectors: a hairline the "packet" sweeps along */
.pipe-link {
  flex: none; width: 30px; position: relative; align-self: center; height: 2px;
  background: var(--hairline-strong); border-radius: 2px; overflow: hidden;
}
.pipe-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-b), transparent);
  transform: translateX(-110%);
}
.pipe-link.pulse::after { animation: pipePulse 0.55s var(--ease) forwards; }
@keyframes pipePulse { to { transform: translateX(110%); } }

/* verdict slot: resolves into a pill */
.pipe-verdict {
  flex: 1.1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 8px 14px;
}
.pipe-verdict .pill { font-size: 12px; padding: 6px 16px; opacity: 0.7; transition: opacity 0.4s, transform 0.4s var(--ease); }
.pipe-verdict.resolved .pill { opacity: 1; transform: scale(1.06); }
.pipe-verdict .pipe-cap { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); min-height: 14px; }
.pipeline-foot {
  margin: 18px auto 0; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3);
}

@media (max-width: 720px) {
  .pipe-rail { flex-direction: column; }
  .pipe-link { width: 2px; height: 22px; align-self: center; }
  .pipe-link::after {
    background: linear-gradient(180deg, transparent, var(--accent-b), transparent);
    transform: translateY(-110%);
  }
  @keyframes pipePulse { to { transform: translateY(110%); } }
  .pipe-node { flex-direction: row; justify-content: center; gap: 10px; padding: 12px 10px; }
  .pipe-node .pipe-cap { max-width: 46vw; }
}

@media (prefers-reduced-motion: reduce) {
  .pipe-link.pulse::after { animation: none; }
  .pipe-verdict .pill { transition: none; }
  .pipe-verdict.resolved .pill { transform: none; }
}

/* ═══════════ P2 — interactive decision log (discipline terminal) ═══════════ */
.terminal-hint {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--text-3); margin-bottom: 10px;
}
.t-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 2px; border: none; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 13.5px; color: var(--text-2);
  text-align: left; border-radius: 8px;
  transition: background 0.25s, color 0.25s;
}
.t-row:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.t-msg { flex: 1; min-width: 0; }
.t-caret {
  flex: none; color: var(--text-3); font-size: 15px; line-height: 1;
  transition: transform 0.35s var(--ease), color 0.25s;
}
.t-row[aria-expanded="true"] .t-caret { transform: rotate(45deg); color: var(--accent-b); }
.t-why {
  padding: 2px 2px 13px 54px;
  font-family: var(--font); font-size: 13.5px; line-height: 1.6; color: var(--text-2);
}
.t-why .t-agent {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-b); margin-bottom: 4px;
}
@media (max-width: 480px) { .t-why { padding-left: 2px; } }
@media (prefers-reduced-motion: reduce) { .t-caret { transition: none; } }
