:root {
  /* EMI brand */
  --bg: #1B2B34;
  --bg-2: #223842;
  --bg-3: #2b4452;
  --line: #2e4754;
  --line-2: #3b576a;
  --fg: #E9FBFF;
  --fg-2: #a8c4cf;
  --fg-3: #6b8794;
  --mint: #4BB7A3;
  --mint-2: #3fa090;
  --mint-bright: #7BE0C8;
  --mint-pale: #BDF5E4;
  --mint-dim: #1f3d3a;
  /* TradingView chart colors */
  --tv-up: #26A69A;
  --tv-down: #EF5350;
  /* semantic */
  --emerald: #4BB7A3;
  --emerald-2: #3fa090;
  --emerald-dim: #1f3d3a;
  --tiffany: #7BE0C8;
  --tiffany-2: #4BB7A3;
  --red: #EF5350;
  --amber: #ffb454;
  --page: var(--bg);
  --ink: var(--fg);
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'zero'; }

/* ========== Layout ========== */
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.container-wide { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 32px; }

.section { padding: 140px 0; border-top: 1px solid var(--line); }
.section-tight { padding: 90px 0; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.h-display {
  font-weight: 800;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}
.h-title {
  font-weight: 700;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}
.h-section {
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.lede {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 58ch;
  margin: 0;
}

/* ========== Nav ========== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,11,13,0.75);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-left { display: flex; align-items: center; gap: 44px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 18px;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--mint); color: #0b1d22;
  border-radius: 6px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.05em;
}
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--fg-2); font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 14px; font-size: 14px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--radius);
  transition: background 120ms, color 120ms, border-color 120ms, transform 120ms;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--mint); color: #0b1d22; font-weight: 600; }
.btn-primary:hover { background: var(--mint-2); }
.btn-emerald { background: var(--mint-bright); color: #0b1d22; font-weight: 600; }
.btn-emerald:hover { background: var(--mint); }
.btn-ghost { color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg-2); }
.btn-lg { padding: 16px 24px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn .arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(2px); }

/* ========== Ticker ========== */
.ticker-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  height: 38px;
  display: flex; align-items: center;
  position: relative;
}
.ticker-label {
  flex: 0 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
  box-shadow: 8px 0 12px -4px var(--bg);
}
.ticker-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-label .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.ticker-track {
  display: flex; gap: 44px;
  animation: scroll 90s linear infinite;
  white-space: nowrap;
  padding-left: 24px;
}
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-2);
}
.ticker-item .sym { color: var(--fg); font-weight: 500; }
.ticker-item .up { color: var(--emerald); }
.ticker-item .dn { color: var(--red); }
.ticker-item .tag {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 3px;
  color: var(--fg-3);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ========== Hero (plain) ========== */
.hero { position: relative; overflow: hidden; }
.hero-plain {
  padding: 80px 0 100px;
  background: var(--bg);
}

/* Cosmic hero — full-width astronaut/Earth backdrop, faded to bg at bottom */
.hero-cosmic {
  position: relative;
  padding: 80px 0 140px;
  background: var(--bg);
  isolation: isolate;
}
.hero-cosmic::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Art-directed hero: universal desktop base (1600x1300 crop) scales
     cleanly from 14" laptops up through widescreen monitors. Astronaut
     + Earth preserved, dead right-edge trimmed so Earth lives closer
     to center and survives behind/above the alert card at narrower widths.
     Mobile swaps to a portrait astronaut-only crop below. */
  background-image: url('/hero1-base.jpg');
  background-size: cover;
  /* Pull the lower-left astronaut up into the headline band and hug left
     so the helmet sits over "TRADING WITH" instead of the empty sky. */
  background-position: left 65%;
  background-repeat: no-repeat;
  opacity: 0.82;
  z-index: -2;
  /* Keep image fully visible through ~75% of the hero — only the very
     bottom fades to page bg. Earlier values were eating the astronaut. */
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0) 100%
  );
          mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0) 100%
  );
}
.hero-cosmic::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Softer left dim + pushed-down bg fade so astronaut + Earth stay
     readable on smaller viewports where subjects render smaller. */
  background:
    linear-gradient(90deg,
      rgba(10,10,15,0.25) 0%,
      rgba(10,10,15,0.35) 25%,
      rgba(10,10,15,0.12) 50%,
      rgba(10,10,15,0.0) 75%),
    linear-gradient(180deg,
      rgba(10,10,15,0.22) 0%,
      rgba(10,10,15,0.0) 20%,
      rgba(10,10,15,0.0) 80%,
      var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Phones: portrait-friendly crop, astronaut only (Earth removed).
   Hero-split is already single-column at this width. */
@media (max-width: 780px) {
  .hero-cosmic::before {
    background-image: url('/hero1-sm.jpg');
    background-position: center 30%;
    opacity: 0.55;
  }
}

.hero-inner { position: relative; z-index: 1; }
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-tagline {
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
}
.hero-tagline .edge-italic {
  color: var(--mint-bright);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.edge-italic {
  color: var(--mint-bright);
  font-style: italic;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
}
.hero-sub {
  max-width: 54ch;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 400;
  margin: 0;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-cta-row { margin-top: 36px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.hero-meta-item { background: var(--bg); padding: 24px 28px; }
.hero-meta-num {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.hero-meta-num .unit { font-size: 15px; color: var(--fg-3); font-weight: 500; margin-left: 4px; }
.hero-meta-label {
  margin-top: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}
.hero-tape {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.hero-tape-items { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-sub {
  margin-top: 36px;
  max-width: 54ch;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 400;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-cta-row { margin-top: 44px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.hero-meta-item {
  background: var(--bg);
  padding: 24px 28px;
}
.hero-meta-num {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.hero-meta-num .unit { font-size: 15px; color: var(--fg-3); font-weight: 500; margin-left: 4px; }
.hero-meta-label {
  margin-top: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}

/* ========== Brain (GNN visual) ========== */
.brain-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.brain-wrap svg { width: 100%; height: 100%; display: block; }

/* ========== Terminal mock ========== */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(80,200,120,0.06);
}
.terminal-chrome {
  display: flex; align-items: center;
  height: 38px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  gap: 14px;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2e35;
}
.terminal-title {
  font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.1em;
}
.terminal-tabs {
  display: flex; border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 11px;
}
.terminal-tab {
  padding: 11px 18px;
  color: var(--fg-3);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.terminal-tab.active { color: var(--fg); background: var(--bg-2); position: relative; }
.terminal-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--emerald);
}
.terminal-body { padding: 18px; }

/* ========== Alert card ========== */
.alert-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.alert-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tier-badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
}
.tier-a { background: var(--mint); color: #0b1d22; }
.tier-b { background: transparent; color: var(--emerald); border: 1px solid var(--emerald-dim); }
.tier-c { background: transparent; color: var(--fg-3); border: 1px solid var(--line-2); }

.alert-card .sym-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px;
}
.alert-card .sym {
  font-size: 24px; font-weight: 700;
  color: var(--fg); letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}
.alert-card .dir-long { color: var(--emerald); font-size: 10px; letter-spacing: 0.16em; font-weight: 700; }
.alert-card .dir-short { color: var(--red); font-size: 10px; letter-spacing: 0.16em; font-weight: 700; }
.alert-card .thesis {
  color: var(--fg-2);
  font-size: 12px; line-height: 1.55;
  margin: 10px 0 14px;
  font-family: 'Inter', sans-serif;
}
.alert-card .levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.alert-card .lvl-label {
  font-size: 9px; color: var(--fg-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 4px;
}
.alert-card .lvl-val { font-size: 14px; color: var(--fg); }
.alert-card .lvl-val.up { color: var(--emerald); }
.alert-card .lvl-val.dn { color: var(--red); }

/* ========== Hero dispatch card (EMI-native) ========== */
.dispatch-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dispatch-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(75,183,163,0.04);
  position: relative;
}
.dispatch-chrome {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--fg-3);
}
.dispatch-chrome-left { display: flex; align-items: center; gap: 8px; color: var(--fg-2); }
.dispatch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: dispatchPulse 2s ease-in-out infinite;
}
@keyframes dispatchPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dispatch-head {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.dispatch-tierline {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.tier-chip {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.tier-chip.tier-a { background: var(--mint-dim); color: var(--mint-bright); border: 1px solid rgba(123, 224, 200, 0.3); }
.tier-chip.tier-b { background: transparent; color: var(--fg-2); border: 1px solid var(--line-2); }
.dispatch-conf { font-size: 10px; color: var(--mint-bright); letter-spacing: 0.14em; }
.dispatch-age { font-size: 10px; color: var(--fg-3); letter-spacing: 0.14em; margin-left: auto; }
.dispatch-symline {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 8px;
}
.dispatch-sym {
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.dispatch-sym-sub {
  font-size: 15px; color: var(--fg-3); font-weight: 500;
  letter-spacing: 0;
}
.dispatch-dir {
  font-size: 10px; color: var(--emerald);
  letter-spacing: 0.18em;
}
.dispatch-evidence-count {
  font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.14em;
}

.dispatch-body {
  padding: 18px 20px 6px;
  border-bottom: 1px solid var(--line);
}
.dispatch-para {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-bottom: 12px;
  text-wrap: pretty;
}
.dispatch-label {
  color: var(--fg);
  font-weight: 700;
}

.dispatch-spine {
  padding: 14px 20px 18px;
  border-bottom: 1px solid var(--line);
}
.dispatch-spine-head {
  font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.dispatch-spine-row {
  display: grid;
  grid-template-columns: 46px 110px 1fr 46px;
  gap: 10px;
  padding: 7px 0;
  font-size: 12px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.dispatch-spine-row:first-of-type { border-top: none; }
.dispatch-spine-t { color: var(--fg-3); font-size: 10px; }
.dispatch-spine-src { color: var(--fg); font-weight: 600; font-size: 12px; }
.dispatch-spine-desc { color: var(--fg-2); font-size: 12px; }
.dispatch-spine-w {
  font-size: 9px; letter-spacing: 0.14em;
  text-align: center;
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.w-t1 { background: var(--mint-dim); color: var(--mint-bright); }
.w-flow { background: rgba(255,180,84,0.14); color: var(--amber); }
.w-smart { background: rgba(189,245,228,0.08); color: var(--tiffany); }
.w-ta { background: transparent; color: var(--fg-3); border: 1px solid var(--line-2); }

.dispatch-contract {
  padding: 14px 20px 18px;
}
.dispatch-contract-head {
  font-size: 10px; color: var(--fg-3);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.dispatch-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.dispatch-rung {
  background: var(--bg);
  padding: 10px 12px;
}
.rung-k {
  font-size: 9px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.rung-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.rung-v.up { color: var(--mint-bright); }
.rung-v.dn { color: var(--red); }
.rung-v-sm {
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0;
}

.dispatch-peek {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  opacity: 0.7;
  transform: translateX(24px) scale(0.96);
  transform-origin: left;
}
.dispatch-peek-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.dispatch-peek-sym {
  font-size: 20px; font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.dispatch-peek-dir { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; margin-left: 6px; }
.dispatch-peek-dir.dn { color: var(--red); }
.dispatch-peek-desc {
  font-size: 12px; color: var(--fg-2); line-height: 1.5;
}

@media (max-width: 900px) {
  .dispatch-spine-row {
    grid-template-columns: 40px 1fr 42px;
  }
  .dispatch-spine-row .dispatch-spine-desc { grid-column: 2 / 4; font-size: 11px; }
  .dispatch-ladder { grid-template-columns: repeat(2, 1fr); }
  .dispatch-sym { font-size: 28px; }
}

/* ========== Agent Ops ========== */
.agent-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.agent-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
  margin-bottom: 56px;
  border-radius: 6px;
  overflow: hidden;
}
.agent-stat {
  background: var(--bg);
  padding: 28px 28px;
}
.agent-stat-k {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
}
.agent-stat-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--mint-bright);
  margin: 10px 0 4px;
  line-height: 1;
}
.agent-stat-sub { font-size: 20px; color: var(--fg-3); font-weight: 500; }
.agent-stat-note {
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.45;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.agent-card {
  background: var(--bg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}
.agent-card:hover { background: var(--bg-2); }
.agent-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-id { display: flex; gap: 10px; align-items: center; }
.agent-code {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.agent-tag {
  font-size: 10px;
  color: var(--emerald);
  letter-spacing: 0.16em;
  font-weight: 600;
}
.agent-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--mint-bright);
  letter-spacing: 0.14em;
}
.agent-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 8px var(--mint-bright);
  animation: dispatchPulse 2.4s ease-in-out infinite;
}
.agent-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.agent-role {
  font-size: 12px;
  color: var(--fg-2);
  font-style: italic;
  margin-top: -8px;
}
.agent-pitch {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
  flex-grow: 1;
}
.agent-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
}
.agent-cadence { font-weight: 600; color: var(--fg-2); }
.agent-kpis {
  display: flex;
  gap: 14px;
}
.agent-kpis strong {
  color: var(--mint-bright);
  font-weight: 600;
  margin-left: 2px;
}
.agent-latest {
  padding: 12px 14px;
  background: var(--bg-2);
  border-left: 2px solid var(--emerald);
  border-radius: 0 4px 4px 0;
}
.agent-card:hover .agent-latest { background: var(--bg-3); }
.agent-latest-k {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.agent-latest-v {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
}

.agent-bottomline {
  margin-top: 64px;
  padding: 40px 48px;
  border: 1px solid var(--mint-dim);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(75,183,163,0.04) 0%, rgba(75,183,163,0) 100%);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}
.agent-bottomline-k {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mint-bright);
}
.agent-bottomline-v {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.015em;
  text-wrap: pretty;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .agent-grid { grid-template-columns: 1fr; }
  .agent-stats { grid-template-columns: 1fr; }
  .agent-bottomline { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .agent-bottomline-v { font-size: 18px; }
}

/* ========== How it works — 12-phase ladder ========== */
.phase-ladder {
  margin-top: 72px;
  border-top: 1px solid var(--line);
}
.phase-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.2s;
}
.phase-row:hover { background: rgba(75, 183, 163, 0.03); }
.phase-row-left {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 6px;
}
.phase-num {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--fg-3); text-transform: uppercase;
  font-weight: 500;
}
.phase-tag {
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--emerald); text-transform: uppercase;
  font-weight: 600;
}
.phase-row-right { max-width: 820px; }
.phase-title {
  margin: 0 0 12px;
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--fg);
}
.phase-body {
  margin: 0;
  color: var(--fg-2);
  font-size: 16px; line-height: 1.6;
  text-wrap: pretty;
}
.phase-row-index {
  font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.1em;
  text-align: right;
  padding-top: 10px;
}

/* Phase 11 loss autopsy */
.loss-autopsy {
  margin-top: 96px;
  padding: 56px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.loss-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.loss-lede {
  margin: 0;
  color: var(--fg-2);
  font-size: 16px; line-height: 1.6;
  text-wrap: pretty;
}
.loss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.loss-cell {
  background: var(--bg);
  padding: 28px 24px;
}
.loss-k {
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-3); text-transform: uppercase;
  font-weight: 500;
}
.loss-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px; font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--mint-bright);
  margin: 12px 0 6px;
  line-height: 1;
}
.loss-note {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
}

/* Legacy .how-grid kept for backwards compat if referenced */
.how-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 72px;
}
.how-cell {
  background: var(--bg);
  padding: 32px 28px;
  min-height: 220px;
  position: relative;
}
.how-cell .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.16em;
}
.how-cell h4 {
  margin: 16px 0 10px;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.how-cell p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px; line-height: 1.55;
}
.how-cell .tag {
  position: absolute; top: 28px; right: 28px;
  font-size: 10px; color: var(--emerald);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.how-cell.span-4 { grid-column: span 4; }
.how-cell.span-6 { grid-column: span 6; }
.how-cell.span-8 { grid-column: span 8; }
.how-cell.span-12 { grid-column: span 12; }

/* ========== Proof strip ========== */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.proof-strip .cell { background: var(--bg); padding: 36px 32px; }
.proof-num {
  font-size: clamp(44px, 4.5vw, 62px);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1;
}
.proof-num .unit { font-size: 0.42em; color: var(--fg-3); margin-left: 4px; font-weight: 500; }
.proof-label {
  margin-top: 12px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}
.proof-sub {
  margin-top: 8px;
  font-size: 14px; color: var(--fg-2);
}

/* ========== Casefile (real dashboard replica) ========== */
.casefile-card {
  margin-top: 56px;
  background: #162530;
  border: 1px solid #2e4754;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.cf-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
}
.cf-top-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.cf-title {
  font-size: 36px; font-weight: 700; letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg);
}
.cf-title .cf-subtitle { color: var(--fg-2); font-weight: 500; font-size: 0.82em; }
.cf-meta-line {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}
.cf-truth { color: var(--mint-bright); }
.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cf-pill {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid #3b576a;
  background: transparent;
  font-size: 12px; color: var(--fg-2); font-weight: 500;
}
.cf-pill.danger { border-color: #c94848; color: #ff7070; }
.cf-pill.warn { border-color: #d4a052; color: #ffbf4e; }
.cf-head-right {
  display: flex; align-items: center; gap: 12px;
}
.cf-range-toggle {
  display: flex; gap: 2px;
  padding: 3px;
  background: #1B2B34;
  border: 1px solid #2e4754;
  border-radius: 999px;
}
.cf-range-toggle button {
  padding: 6px 14px; border-radius: 999px;
  color: var(--fg-3); font-size: 12px; font-weight: 500;
  background: transparent; border: none;
}
.cf-range-toggle button.active { background: var(--fg); color: #1B2B34; }
.cf-back {
  padding: 8px 18px; border-radius: 999px;
  background: var(--fg); color: #1B2B34;
  font-size: 13px; font-weight: 600;
}
.cf-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}
.cf-body-lower { margin-top: 20px; }

.cf-chart-panel, .cf-snap-panel, .cf-prose {
  background: #1B2B34;
  border: 1px solid #2e4754;
  border-radius: 12px;
  padding: 22px 24px;
  position: relative;
}
.cf-chart-head h4, .cf-snap-head h4, .cf-prose h5 {
  margin: 0;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--fg);
}
.cf-chart-sub {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-3);
}
.cf-chart-intervals {
  display: flex; gap: 2px; margin-top: 14px;
  padding: 3px;
  background: #223842;
  border: 1px solid #2e4754;
  border-radius: 6px;
  width: fit-content;
}
.cf-chart-intervals button {
  padding: 5px 10px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-3);
  background: transparent;
}
.cf-chart-intervals button.active { background: #2e4754; color: var(--fg); }

.cf-snap-head p.cf-snap-desc {
  margin: 6px 0 20px;
  font-size: 12px; color: var(--fg-3);
  line-height: 1.5;
}
.cf-snap-stat {
  padding: 16px 18px;
  background: #223842;
  border: 1px solid #2e4754;
  border-radius: 10px;
  margin-bottom: 12px;
}
.cf-snap-stat .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-3);
}
.cf-snap-stat .v {
  font-size: 30px; font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.1; margin-top: 8px;
  color: var(--fg);
}
.cf-snap-stat .v.emerald { color: var(--mint-bright); }
.cf-snap-stat .sub {
  margin-top: 4px; font-size: 12px; color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
}
.cf-snap-meta {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-2);
}
.cf-snap-meta .row { padding: 2px 0; }
.cf-snap-meta .lbl { font-weight: 700; color: var(--fg); margin-right: 4px; }
.cf-snap-meta .emerald { color: var(--mint-bright); font-weight: 600; }

.cf-prose {
  font-size: 13.5px; line-height: 1.65; color: var(--fg-2);
}
.cf-prose h5 {
  font-size: 15px;
  margin-bottom: 10px;
}
.cf-prose p { margin: 4px 0; }
.cf-prose p strong { color: var(--fg); font-weight: 700; }
.cf-narrative {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fg-2);
  margin-bottom: 10px !important;
}
.cf-prose-right { padding: 22px 24px; }

.cf-evidence { display: flex; flex-direction: column; }
.cf-ev-row {
  display: grid; grid-template-columns: 50px 1fr 20px;
  gap: 12px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #2e4754;
  font-size: 13px;
}
.cf-ev-row:last-child { border-bottom: none; }
.cf-ev-row .t { font-family: 'JetBrains Mono', monospace; color: var(--fg-3); font-size: 11px; }
.cf-ev-row .sym { font-weight: 600; color: var(--fg); font-size: 13px; }
.cf-ev-row .desc { color: var(--fg-2); font-size: 12px; margin-top: 2px; }
.cf-ev-row .ret.up { color: var(--mint-bright); text-align: right; font-weight: 600; }
.case-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  margin-top: 72px;
}
.case-big {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.case-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.case-head-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.case-head h3 {
  margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.025em;
}
.case-head-pills {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.case-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 20px;
  background: var(--bg-3); color: var(--fg-2);
  border: 1px solid var(--line-2);
  text-transform: uppercase;
}
.case-pill.win { background: var(--emerald-dim); color: var(--emerald); border-color: transparent; }
.case-pill.fail { background: #3a1820; color: var(--red); border-color: transparent; }
.case-subhead {
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-3);
  display: flex; align-items: center; gap: 14px;
}
.case-subhead .subhead-label { color: var(--fg-2); }
.case-chart {
  position: relative;
  height: 420px;
  background: var(--bg-2);
}
.case-chart-intervals {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.case-chart-intervals button {
  padding: 5px 10px; border-radius: 4px; color: var(--fg-3);
  background: transparent;
}
.case-chart-intervals button.active {
  background: var(--bg-3); color: var(--fg);
  border: 1px solid var(--line-2);
}
.case-meta-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
}
.case-meta-cell {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.case-meta-cell:last-child { border-right: none; }
.case-meta-cell .k { font-size: 10px; color: var(--fg-3); letter-spacing: 0.14em; text-transform: uppercase; }
.case-meta-cell .v { font-size: 15px; margin-top: 5px; color: var(--fg); }
.case-meta-cell .v.emerald { color: var(--emerald); }
.case-meta-cell .v.red { color: var(--red); }

.case-side { display: flex; flex-direction: column; gap: 16px; }
.snapshot-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.snapshot-card .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 10px;
}
.snapshot-card .v {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.05;
}
.snapshot-card .v.emerald { color: var(--emerald); }
.snapshot-card .sub {
  margin-top: 6px; font-size: 13px; color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
}

.snapshot-title {
  padding: 20px 24px 0;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
}
.snapshot-desc {
  padding: 0 24px 16px;
  font-size: 13px; color: var(--fg-3);
  border-bottom: 1px solid var(--line);
  margin: 6px 0 0;
}

.list-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.list-card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.list-card-head h4 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.list-card-head .pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--fg-3);
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px;
}
.feed-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.feed-row:last-child { border-bottom: none; }
.feed-row .t { font-family: 'JetBrains Mono', monospace; color: var(--fg-3); font-size: 11px; }
.feed-row .sym { font-weight: 600; font-size: 13px; }
.feed-row .desc { color: var(--fg-2); font-size: 12px; margin-top: 2px; }
.feed-row .ret { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.feed-row .ret.up { color: var(--emerald); }
.feed-row .ret.dn { color: var(--red); }

/* ========== Pricing ========== */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  margin-top: 72px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
}
.asset-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.asset-row:last-child { border-bottom: none; }
.asset-row-left { display: flex; align-items: center; gap: 18px; }
.asset-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--fg-2);
  font-weight: 600;
}
.asset-info h5 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.asset-info p { margin: 3px 0 0; font-size: 13px; color: var(--fg-3); }
.asset-right { display: flex; align-items: center; gap: 16px; }
.asset-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--fg-2);
}

/* Toggle */
.toggle {
  width: 46px; height: 26px; border-radius: 999px;
  background: var(--line);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 140ms;
}
.toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--fg-2);
  transition: transform 140ms, background 140ms;
}
.toggle.on { background: var(--mint); }
.toggle.on::after { background: #0b1d22; transform: translateX(20px); }

.pricing-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  position: sticky; top: 84px;
}
.price-hero {
  font-size: 84px; font-weight: 800;
  letter-spacing: -0.045em; line-height: 0.95;
  display: flex; align-items: baseline; gap: 4px;
}
.price-hero .currency { font-size: 36px; color: var(--fg-2); font-weight: 500; margin-right: 4px; }
.price-hero .per {
  font-size: 15px; color: var(--fg-3);
  margin-left: 10px; letter-spacing: 0.01em;
  font-family: 'JetBrains Mono', monospace;
}
.price-sub {
  margin: 14px 0 0;
  color: var(--fg-2); font-size: 15px;
}
.price-breakdown {
  margin: 26px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.price-breakdown-row {
  display: flex; justify-content: space-between;
  color: var(--fg-2);
  padding: 5px 0;
}
.price-breakdown-row.discount { color: var(--emerald); }
.price-breakdown-row.total { color: var(--fg); font-weight: 700; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }

.bundle-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  background: var(--mint); color: #0b1d22;
  font-weight: 700;
}

.pricing-includes {
  list-style: none; padding: 0; margin: 26px 0 0;
  font-size: 14px; color: var(--fg-2);
}
.pricing-includes li {
  padding: 7px 0;
  display: flex; gap: 10px; align-items: flex-start;
}
.pricing-includes li::before {
  content: '→'; color: var(--tiffany); flex-shrink: 0;
}

/* ========== FAQ ========== */
.faq-list { border-top: 1px solid var(--line); margin-top: 72px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  width: 100%; text-align: left;
}
.faq-q .chev { transition: transform 200ms; font-family: 'JetBrains Mono', monospace; color: var(--fg-3); font-size: 22px; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--emerald); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 260ms ease, padding 200ms ease;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 72ch;
}
.faq-item.open .faq-a { max-height: 480px; padding: 0 0 28px; }

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--line);
  padding: 120px 0 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Tall "closer" bookend for the hero — rocket gets room to breathe
     and footer links sit at the bottom. Caps so it's not absurd on short viewports. */
  min-height: min(92vh, 1020px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.footer > .container { width: 100%; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/rocket.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.38;
  /* Fade rocket into the page bg at the very top so it emerges from space,
     and keep it readable through to the bottom where the exhaust burns. */
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.25) 6%,
    rgba(0,0,0,0.85) 22%,
    rgba(0,0,0,1) 45%,
    rgba(0,0,0,1) 100%
  );
          mask-image: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.25) 6%,
    rgba(0,0,0,0.85) 22%,
    rgba(0,0,0,1) 45%,
    rgba(0,0,0,1) 100%
  );
  z-index: -2;
  pointer-events: none;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Brand wash: teal glow behind the engines + top fade to page bg +
     subtle dim at the bottom so the link columns stay legible over the exhaust. */
  background:
    radial-gradient(ellipse 55% 30% at 50% 88%, rgba(75,183,163,0.18) 0%, rgba(75,183,163,0) 70%),
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(27,43,52,0.50) 12%,
      rgba(27,43,52,0.05) 35%,
      rgba(27,43,52,0.0) 55%,
      rgba(27,43,52,0.35) 85%,
      rgba(27,43,52,0.65) 100%);
  z-index: -1;
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.footer-col h6 {
  margin: 0 0 18px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; font-size: 14px; color: var(--fg-2); }
.footer-col li:hover { color: var(--fg); }
.footer-brand p { color: var(--fg-2); font-size: 14px; margin: 16px 0 0; max-width: 36ch; line-height: 1.55; }
.footer-bottom {
  padding-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
}

/* ========== Tweaks panel ========== */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.tweaks-panel h6 {
  margin: 0 0 16px; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--fg-3);
  display: flex; justify-content: space-between; align-items: center;
}
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-group label { color: var(--fg-2); display: block; margin-bottom: 8px; }
.tweak-seg { display: flex; gap: 4px; }
.tweak-seg button {
  flex: 1;
  padding: 8px; border-radius: 5px; font-size: 10px;
  background: var(--bg-3);
  color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--line);
}
.tweak-seg button.on { background: var(--mint); color: #0b1d22; border-color: var(--mint); font-weight: 700; }

/* ========== Misc ========== */
.row { display: flex; align-items: center; gap: 12px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
}
.hero-concepts { position: relative; z-index: 2; }

/* Globe as the hero right column */
.hero-plain {
  background:
    radial-gradient(1100px 700px at 82% 55%, rgba(75,183,163,0.14), transparent 60%),
    radial-gradient(900px 600px at 12% 0%, rgba(123,224,200,0.05), transparent 55%),
    var(--bg);
}
.hero-globe-col {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 520px;
  overflow: visible;
  margin-top: -20px;
}
.hero-globe-col .globe3d-mount {
  position: absolute;
  inset: -12% -28% -20% -5%;
  width: auto;
  height: auto;
  filter: saturate(1.08) drop-shadow(0 28px 80px rgba(75,183,163,0.18));
}
.hero-globe-readouts {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(46,71,84,0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(16px);
  z-index: 2;
}
.hero-globe-readout {
  background: rgba(34,56,66,0.85);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hero-globe-k {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.hero-globe-v {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-globe-v.up { color: var(--mint-bright); }
.hero-globe-v.dn { color: #ff8a96; }

@media (max-width: 1100px) {
  .hero-globe-col { min-height: 400px; }
}
@media (max-width: 780px) {
  .hero-globe-col { display: none; }
}

/* ========== Alerts pitch section ========== */
.alerts-pitch {
  position: relative;
  padding: 140px 0 160px;
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(75,183,163,0.08), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(123,224,200,0.05), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.alerts-pitch-head { max-width: 860px; margin: 0 auto 72px; text-align: center; }
.alerts-pitch-head .eyebrow { justify-content: center; }
.alerts-pitch-title {
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 24px 0 28px;
  color: var(--fg);
  text-transform: uppercase;
}
.alerts-pitch-sub {
  max-width: 72ch;
  margin: 0 auto;
  font-size: clamp(17px, 1.25vw, 20px);
  color: var(--fg-2);
  line-height: 1.6;
}

.alerts-pitch-stage {
  position: relative;
  width: min(100%, 1200px);
  margin: 0 auto;
}
.alerts-chart-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.45);
}

.alerts-pop {
  position: absolute;
  width: 270px;
  background: linear-gradient(180deg, rgba(34,56,66,0.96), rgba(27,43,52,0.94));
  border: 1px solid rgba(123,224,200,0.28);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.65),
    0 12px 24px rgba(0,0,0,0.45),
    0 0 0 1px rgba(189,245,228,0.05) inset;
  animation: alerts-pop-in 0.8s ease-out both;
  z-index: 2;
}
.alerts-pop--tl { top: -24px;    left: -28px;  }
.alerts-pop--tr { top:  8%;      right: -32px; animation-delay: 0.15s; }
.alerts-pop--bl { bottom: 10%;   left: -32px;  animation-delay: 0.30s; }
.alerts-pop--br { bottom: -28px; right: -24px; animation-delay: 0.45s; }
@keyframes alerts-pop-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alerts-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.alerts-pop-age { font-size: 10px; color: var(--fg-3); letter-spacing: 0.14em; }
.alerts-pop-symline { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.alerts-pop-sym { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; color: var(--fg); }
.alerts-pop-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em;
  padding: 3px 8px; border-radius: 4px;
}
.alerts-pop-dir.up { color: var(--mint-bright); background: rgba(123,224,200,0.14); }
.alerts-pop-dir.dn { color: #ff8a96; background: rgba(239,83,80,0.16); }
.alerts-pop-dir.wt { color: var(--fg-2); background: rgba(168,196,207,0.12); }
.alerts-pop-note { font-size: 12.5px; color: var(--fg-2); line-height: 1.45; margin-bottom: 10px; }
.alerts-pop-delivery {
  display: flex; gap: 6px; align-items: center;
  font-size: 10px; letter-spacing: 0.2em; color: var(--mint-bright);
  padding-top: 8px; border-top: 1px solid rgba(123,224,200,0.12);
}
.alerts-pop-delivery .sep { color: var(--fg-3); }

.alerts-pitch-grid {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.alerts-feature {
  padding: 0;
  background: none;
  border: none;
  border-top: 1px solid rgba(123,224,200,0.18);
  padding-top: 18px;
}
.alerts-feature-mark { display: none; }
.alerts-feature h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-bright);
  letter-spacing: 0.02em;
}
.alerts-feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
}

@media (max-width: 1000px) {
  .alerts-pitch-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .alerts-pop { width: 230px; padding: 10px 12px; }
  .alerts-pop-note { font-size: 11.5px; }
  .alerts-pop--tl { top: -16px; left: -10px; }
  .alerts-pop--tr { top: 6%; right: -14px; }
  .alerts-pop--bl { bottom: 10%; left: -14px; }
  .alerts-pop--br { bottom: -16px; right: -10px; }
}
@media (max-width: 640px) {
  .alerts-pitch { padding: 80px 0 100px; }
  .alerts-pop { width: 46%; padding: 9px 10px; }
  .alerts-pop-sym { font-size: 15px; }
  .alerts-pop-note { font-size: 11px; }
  .alerts-pop-delivery { font-size: 9px; }
  .alerts-pop--tl { top: -14px; left: 2%; }
  .alerts-pop--tr { top: -14px; right: 2%; }
  .alerts-pop--bl { bottom: -14px; left: 2%; }
  .alerts-pop--br { bottom: -14px; right: 2%; }
  .alerts-pitch-grid { grid-template-columns: 1fr; }
}

/* Brain section */
.brain-section {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.brain-bg-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px; height: 1400px;
  background: radial-gradient(circle, rgba(75,183,163,0.08), transparent 60%);
  pointer-events: none;
}
.brain-stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 95vw);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}
.brain-layout {
  position: relative;
  z-index: 2;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brain-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.brain-headline {
  margin: 48px 0 0;
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 18ch;
  text-shadow: 0 4px 40px rgba(27,43,52,0.8);
}
.brain-flow-grid {
  margin-top: auto;
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.brain-col-left {
  max-width: 44ch;
  background: rgba(27,43,52,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(75,183,163,0.2);
  padding: 32px;
  border-radius: 14px;
}
.brain-col-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.brain-stat {
  background: rgba(27,43,52,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(75,183,163,0.2);
  padding: 22px 24px;
  border-radius: 10px;
}
.brain-stat .num {
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--fg);
}
.brain-stat .num .sub {
  color: var(--mint-bright); font-size: 0.42em;
  margin-left: 6px; font-weight: 500;
}
.brain-stat .lbl {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}

@media (max-width: 900px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .pricing-wrap { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .brain-flow-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; }
  .brain-col-right { grid-template-columns: 1fr 1fr; }
  .how-cell.span-4, .how-cell.span-6, .how-cell.span-8 { grid-column: span 12; }
  .phase-row {
    grid-template-columns: 140px 1fr;
    gap: 24px;
  }
  .phase-row-index { display: none; }
  .phase-title { font-size: 22px; }
  .loss-autopsy { padding: 32px 24px; }
  .loss-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .loss-grid { grid-template-columns: repeat(2, 1fr); }
  .loss-v { font-size: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-intro { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Mobile hardening — comprehensive responsive pass
   Covers every fixed-column grid, oversized padding, and overflow trap.
   ========================================================================== */

/* Global overflow + font baseline */
html, body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* ---- Tablet (<= 1024px) ---- */
@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .container, .container-wide { padding: 0 24px; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .cf-body { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; gap: 24px; }
  .pricing-summary { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .agent-bottomline { grid-template-columns: 1fr; gap: 20px; padding: 32px 28px; }
  .loss-autopsy { padding: 40px 32px; }
  .brain-layout { min-height: 720px; }
  .brain-section { padding: 120px 0; }
  .brain-flow-grid { padding-top: 80px; gap: 48px; }
}

/* ---- Small tablet / large phone (<= 768px) ---- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { height: 58px; }
  .nav-left { gap: 16px; }
  .nav-links { display: none; }
  .logo { font-size: 16px; }
  .logo-mark { width: 24px; height: 24px; font-size: 12px; }

  /* Hero + display type scales down */
  .h-display { font-size: clamp(48px, 12vw, 84px); }
  .h-title { font-size: clamp(34px, 9vw, 56px); }
  .h-section { font-size: clamp(28px, 7vw, 40px); }
  .hero-tagline { font-size: clamp(48px, 14vw, 92px); letter-spacing: -0.04em; }
  .hero-plain { padding: 48px 0 72px; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .hero-meta-item { padding: 20px 22px; }
  .hero-meta-num { font-size: 24px; }
  .hero-cta-row { gap: 10px; margin-top: 32px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-tape { margin-top: 40px; gap: 20px; }
  .hero-tape-items { gap: 20px; }

  /* Ticker */
  .ticker-label { padding: 0 12px; font-size: 9px; letter-spacing: 0.12em; }
  .ticker-item { font-size: 11px; gap: 8px; }

  /* Brain section — the worst offender on mobile */
  .brain-section { padding: 72px 0; overflow: hidden; }
  .brain-bg-orb { width: 900px; height: 900px; }
  .brain-stage { width: min(600px, 120vw); opacity: 0.18; }
  .brain-layout { min-height: auto; gap: 48px; }
  .brain-headline { font-size: clamp(40px, 11vw, 72px); margin: 32px 0 0; max-width: none; }
  .brain-flow-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; }
  .brain-col-left { max-width: none; padding: 24px; }
  .brain-col-right { grid-template-columns: 1fr 1fr; gap: 12px; }
  .brain-stat { padding: 18px 18px; }
  .brain-stat .num { font-size: 26px; }
  .brain-eyebrow-row { gap: 12px; }

  /* Casefile / dispatch mock */
  .casefile-card { padding: 20px; margin-top: 40px; border-radius: 12px; }
  .cf-head { flex-direction: column; gap: 16px; padding-bottom: 20px; }
  .cf-head-right { width: 100%; justify-content: space-between; }
  .cf-title { font-size: 26px; }
  .cf-body { grid-template-columns: 1fr; gap: 16px; }
  .cf-chart-panel, .cf-snap-panel, .cf-prose { padding: 18px 18px; }
  .cf-snap-stat .v { font-size: 24px; }
  .cf-ev-row { grid-template-columns: 44px 1fr; gap: 8px; }
  .cf-ev-row .ret { grid-column: 2; justify-self: start; font-size: 11px; }

  /* Case study card */
  .case-chart { height: 300px; }
  .case-meta-row { grid-template-columns: repeat(2, 1fr); }
  .case-meta-cell { padding: 12px 14px; border-right: none; border-bottom: 1px solid var(--line); }
  .case-meta-cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .case-meta-cell:nth-last-child(-n+2) { border-bottom: none; }
  .case-head { padding: 18px 20px; }
  .case-head h3 { font-size: 22px; }
  .case-subhead { padding: 10px 20px; flex-wrap: wrap; gap: 8px; }
  .feed-row { grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 16px; }
  .feed-row .ret { grid-column: 2; justify-self: start; }

  /* Pricing */
  .pricing-wrap { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .pricing-card { padding: 24px; }
  .pricing-summary { padding: 28px 24px; position: static; }
  .price-hero { font-size: 56px; }
  .price-hero .currency { font-size: 26px; }
  .asset-row { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .asset-row-left { gap: 12px; }
  .asset-icon { width: 36px; height: 36px; }
  .asset-info h5 { font-size: 15px; }
  .asset-right { width: 100%; justify-content: space-between; }

  /* Agents */
  .agent-grid { grid-template-columns: 1fr; }
  .agent-stats { grid-template-columns: repeat(2, 1fr); }
  .agent-stat { padding: 22px 22px; }
  .agent-stat-v { font-size: 32px; }
  .agent-card { padding: 22px 22px 20px; }
  .agent-name { font-size: 20px; }
  .agent-bottomline { padding: 28px 24px; grid-template-columns: 1fr; gap: 16px; }
  .agent-bottomline-v { font-size: 17px; }

  /* How it works / phase ladder */
  .phase-ladder { margin-top: 48px; }
  .phase-row { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .phase-row-left { flex-direction: row; gap: 12px; padding-top: 0; flex-wrap: wrap; }
  .phase-row-index { display: none; }
  .phase-title { font-size: 20px; margin-bottom: 8px; }
  .phase-body { font-size: 15px; }

  /* Loss autopsy */
  .loss-autopsy { padding: 28px 22px; margin-top: 64px; }
  .loss-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .loss-grid { grid-template-columns: 1fr 1fr; }
  .loss-cell { padding: 20px 18px; }
  .loss-v { font-size: 32px; }

  /* How grid legacy */
  .how-grid { margin-top: 48px; }
  .how-cell { padding: 22px 22px; min-height: auto; }
  .how-cell.span-4, .how-cell.span-6, .how-cell.span-8, .how-cell.span-12 { grid-column: span 12; }
  .how-cell h4 { font-size: 18px; }
  .how-cell .tag { top: 20px; right: 20px; }

  /* Proof */
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip .cell { padding: 24px 22px; }
  .proof-num { font-size: clamp(32px, 9vw, 46px); }

  /* FAQ */
  .faq-list { margin-top: 48px; }
  .faq-q { font-size: 17px; padding: 22px 0; gap: 16px; }
  .faq-q .chev { font-size: 18px; flex-shrink: 0; }
  .faq-a { font-size: 15px; }
  .faq-item.open .faq-a { padding: 0 0 22px; }

  /* Dispatch mock */
  .dispatch-sym { font-size: 26px; }
  .dispatch-head, .dispatch-body, .dispatch-spine, .dispatch-contract { padding-left: 16px; padding-right: 16px; }
  .dispatch-spine-row { grid-template-columns: 36px 1fr 40px; gap: 8px; }
  .dispatch-spine-row .dispatch-spine-desc { grid-column: 2 / 4; font-size: 11px; }
  .dispatch-ladder { grid-template-columns: 1fr; }
  .dispatch-peek { transform: none; opacity: 1; }

  /* Footer */
  .footer { padding: 48px 0 32px; min-height: min(72vh, 680px); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-brand p { max-width: none; }

  /* Tweaks panel — never show on mobile */
  .tweaks-panel { display: none !important; }

  /* ---- SEO static pages ---- */
  .seo-nav-static .nav-inner { height: 58px; padding: 0 20px; }
  .seo-nav-static .nav-links { display: none; }
  .seo-nav-static .nav-left { gap: 16px; }
  .seo-section { padding: 64px 0; }
  .seo-section.seo-hero { padding: 40px 0 56px; }
  .seo-section.seo-tight { padding: 48px 0; }
  .seo-doc h1 { font-size: clamp(36px, 10vw, 64px); max-width: none; }
  .seo-doc h2 { font-size: clamp(26px, 7vw, 38px); max-width: none; }
  .seo-doc .answer-first { font-size: 17px; padding: 4px 0 4px 16px; }
  .seo-lede { font-size: 17px; }
  .seo-cta-row { gap: 10px; flex-direction: column; align-items: stretch; }
  .seo-cta-row .seo-btn { width: 100%; justify-content: center; }
  .seo-trust { gap: 16px 20px; }
  .seo-trust li { font-size: 10px; letter-spacing: 0.1em; }
  .seo-stat-grid { grid-template-columns: 1fr 1fr; margin: 32px 0; }
  .seo-stat-grid .seo-stat-num { font-size: 32px; }
  .seo-fund-grid { grid-template-columns: 1fr; }
  .seo-ladder li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .seo-ladder-idx { display: none; }
  .seo-callout { padding: 24px 22px; margin: 36px 0; }
  .seo-callout p { font-size: 18px; }
  .seo-related { grid-template-columns: 1fr; }
  .seo-related a { padding: 22px; }
  .seo-table { font-size: 12px; }
  .seo-table caption { padding: 12px 16px; }
  .seo-table th, .seo-table td { padding: 10px 12px; }
  .seo-footer { padding: 48px 0 32px; font-size: 12px; }
  .seo-footer-nav { gap: 16px; }
}

/* ---- Small phone (<= 480px) ---- */
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .section { padding: 56px 0; }
  .seo-section { padding: 48px 0; }

  /* Keep stats readable */
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta-item { padding: 16px 18px; }
  .hero-meta-num { font-size: 22px; }
  .seo-stat-grid { grid-template-columns: 1fr; }
  .seo-stat-grid .seo-stat-num { font-size: 30px; }
  .proof-strip { grid-template-columns: 1fr; }
  .agent-stats { grid-template-columns: 1fr; }
  .loss-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Display type dial-down for small phones */
  .hero-tagline { font-size: clamp(40px, 15vw, 64px); }
  .brain-headline { font-size: clamp(32px, 13vw, 56px); }
  .cf-title { font-size: 22px; }
  .case-head h3 { font-size: 20px; }
  .faq-q { font-size: 16px; padding: 18px 0; }
  .price-hero { font-size: 44px; }
  .price-hero .currency { font-size: 22px; }

  /* Ticker — tighter */
  .ticker-bar { height: 34px; }
  .ticker-label { padding: 0 10px; font-size: 8px; }
  .ticker-item { font-size: 10px; gap: 6px; }
  .ticker-item .tag { display: none; }

  /* Buttons full-width CTAs */
  .hero-cta-row .btn { padding: 14px 18px; font-size: 13px; }
  .btn-lg { padding: 14px 20px; font-size: 14px; }
}

/* ---- Tiny phone (<= 360px) ---- */
@media (max-width: 360px) {
  .container, .container-wide { padding: 0 14px; }
  .hero-tagline { font-size: clamp(34px, 14vw, 48px); }
  .h-section { font-size: clamp(22px, 8vw, 30px); }
  .nav-inner { height: 52px; }
  .logo-mark { width: 22px; height: 22px; font-size: 11px; }
  .nav-right .btn-sm { padding: 6px 10px; font-size: 11px; }
}

/* ==========================================================================
   Overflow hardening — specific fixes for content that can push past viewport.
   These apply at all sizes, not just in a media query, because the underlying
   rules (flex without wrap, grid without min-width: 0, fixed-width chart)
   cause overflow on tablet AND phone.
   ========================================================================== */

/* Grid children need min-width: 0 or they refuse to shrink below content */
.hero-split > *,
.cf-body > *,
.case-grid > *,
.pricing-wrap > *,
.footer-top > *,
.section-intro > *,
.two-col > *,
.brain-flow-grid > *,
.agent-bottomline > *,
.loss-head > * {
  min-width: 0;
}

/* Dispatch card — the worst overflow offender on mobile */
.dispatch-wrap,
.dispatch-card,
.dispatch-peek { max-width: 100%; }

.dispatch-chrome { flex-wrap: wrap; gap: 6px 12px; }
.dispatch-chrome-left,
.dispatch-chrome-right { min-width: 0; }

.dispatch-symline { flex-wrap: wrap; }
.dispatch-sym,
.dispatch-sym-sub,
.dispatch-dir { min-width: 0; }

.dispatch-evidence-count {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dispatch-spine-row { min-width: 0; }
.dispatch-spine-src,
.dispatch-spine-desc { min-width: 0; overflow-wrap: anywhere; }

/* Casefile — head + chart + sub-text */
.casefile-card { max-width: 100%; overflow: hidden; }
.cf-head { flex-wrap: wrap; }
.cf-head-left,
.cf-head-right { min-width: 0; flex: 1 1 auto; }
.cf-head-right { flex-wrap: wrap; gap: 8px; }
.cf-title { word-break: break-word; overflow-wrap: anywhere; }
.cf-meta-line,
.cf-chart-sub,
.cf-snap-desc { overflow-wrap: anywhere; }

/* Casefile chart must respect its container, never exceed it */
.cf-chart-panel { overflow: hidden; min-width: 0; }
.cf-chart-panel > div[style] { max-width: 100%; }

/* Case study lower */
.case-subhead { flex-wrap: wrap; }
.case-head-pills { flex-wrap: wrap; }
.feed-row { min-width: 0; }
.feed-row .desc,
.feed-row .sym { overflow-wrap: anywhere; }

/* Agents */
.agent-footer { flex-wrap: wrap; gap: 8px; }
.agent-kpis { flex-wrap: wrap; }

/* Pricing */
.asset-row { flex-wrap: wrap; }
.asset-row-left,
.asset-info { min-width: 0; }
.asset-info h5,
.asset-info p { overflow-wrap: anywhere; }

/* Hero eyebrow row (EMI V15.3 ... READING 12,487 ARTICLES TODAY) */
.hero-inner > div:first-child { flex-wrap: wrap; gap: 8px 16px; }
.eyebrow { overflow-wrap: anywhere; min-width: 0; }

/* Hero tape items wrap */
.hero-tape { flex-wrap: wrap; }
.hero-tape-items { flex-wrap: wrap; }

/* Footer bottom */
.footer-bottom { flex-wrap: wrap; gap: 12px; }

/* Universal safety for grid + flex containers in SEO pages */
.seo-doc .seo-cta-row { flex-wrap: wrap; }
.seo-doc .seo-trust { flex-wrap: wrap; }
.seo-fund-grid li,
.seo-stat-grid li { min-width: 0; }
.seo-fund-grid li * { overflow-wrap: anywhere; }

/* Tables should scroll horizontally rather than break layout */
.seo-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

