/* ============================================================================
   ANTIGEN — landing page styles
   Palette is EXACT from assets/_tokens.css (antibody green / biohazard amber /
   lab-black). Aesthetic: dark biosecurity-lab, precise, clinical, restrained
   motion. 60% dark base / 30% mid surfaces / 10% vibrant brand.
   Static site — no frameworks, no external fonts, offline-capable.
   ========================================================================== */

:root {
  /* --- Brand (exact _tokens.css values) --- */
  --primary: #2EE59D;               /* antibody green — cure / certified-safe */
  --accent: #FFB020;                /* biohazard amber — quarantine tape      */
  --pathogen: #F43F5E;              /* injection red                          */
  --bg-base: #04100B;               /* dark lab green-black, never pure #000  */
  --text-hi: #EAF9F1;
  --text-mid: #8FB3A3;
  --text-low: #5E8578;               /* de-emphasized — tuned to clear WCAG AA */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.15);
  --primary-glow: rgba(46, 229, 157, 0.35);
  --accent-glow: rgba(255, 176, 32, 0.35);

  /* --- Derived surfaces (mid tones = the 30%) --- */
  --surface-1: #071b12;             /* card base            */
  --surface-2: #0a2418;             /* elevated card        */
  --surface-terminal: #051510;      /* terminal body        */

  /* --- Type (offline stacks; Space Grotesk preferred when installed) --- */
  --font-display: "Space Grotesk", "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gradient-text: linear-gradient(to right, #FFFFFF, #9FC0B2);
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --tape: repeating-linear-gradient(-45deg,
      rgba(255, 176, 32, 0.16) 0 14px, rgba(255, 176, 32, 0.02) 14px 28px);
  --grid-bg:
    repeating-linear-gradient(0deg, rgba(46, 229, 157, 0.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(46, 229, 157, 0.035) 0 1px, transparent 1px 48px);

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* --- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 62% 46% at 14% -4%, rgba(46, 229, 157, 0.10), transparent 62%),
    radial-gradient(ellipse 50% 40% at 92% 12%, rgba(255, 176, 32, 0.06), transparent 64%),
    var(--grid-bg);
  background-attachment: fixed;
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, kbd { font-family: var(--font-mono); }
::selection { background: rgba(46, 229, 157, 0.25); color: var(--text-hi); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
strong { color: var(--text-hi); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--bg-base);
  padding: 10px 18px; font-weight: 700; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4, 16, 11, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}
.site-header.scrolled { border-bottom-color: var(--border-subtle); background: rgba(4, 16, 11, 0.88); }
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--text-hi); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--text-mid); font-size: 0.92rem; font-weight: 500;
  transition: color var(--transition-fast);
}
.site-nav a:hover { color: var(--text-hi); text-decoration: none; }
.header-cta { margin-left: 8px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal),
              background var(--transition-fast), border-color var(--transition-fast);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--primary); color: #03130C;
  box-shadow: 0 0 0 rgba(46, 229, 157, 0);
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--primary-glow); }
.btn-ghost {
  background: transparent; color: var(--text-hi);
  border-color: var(--border-default);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* "coming soon" tag — neutral, so amber stays reserved for danger/mutation */
.soon-tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mid);
  border: 1px solid var(--border-default); border-radius: 999px;
  padding: 2px 8px; margin-left: 8px; vertical-align: middle; line-height: 1.4;
  white-space: nowrap;
}
.btn .soon-tag { color: var(--text-mid); }

/* --- Labels / eyebrows ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--primary); opacity: 0.7; }
.eyebrow.amber { color: var(--accent); }
.eyebrow.amber::before { background: var(--accent); }
.eyebrow.red { color: var(--pathogen); }
.eyebrow.red::before { background: var(--pathogen); }

.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-default);
  color: var(--text-mid); letter-spacing: 0.03em;
}
.pill.green { color: var(--primary); border-color: rgba(46, 229, 157, 0.4); background: rgba(46, 229, 157, 0.07); }
.pill.amber { color: var(--accent); border-color: rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.07); }
.pill.red   { color: var(--pathogen); border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.07); }

/* --- Quarantine-tape divider ---------------------------------------------- */
.tape-divider {
  height: 14px;
  background: var(--tape);
  border-top: 1px solid rgba(255, 176, 32, 0.25);
  border-bottom: 1px solid rgba(255, 176, 32, 0.25);
  opacity: 0.8;
}

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: 84px 0 30px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  letter-spacing: -0.028em;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .green { color: var(--primary); }
.hero-sub { font-size: 1.13rem; max-width: 34em; margin-bottom: 30px; }
.hero-hook {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-mid);
  border: 1px solid rgba(46, 229, 157, 0.35);
  background: rgba(46, 229, 157, 0.06);
  border-radius: 10px; padding: 10px 16px; margin-bottom: 26px;
}
.hero-hook .num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--primary); letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-low);
}
.hero-proof span strong { color: var(--text-mid); font-weight: 600; }

/* --- Terminal card --------------------------------------------------------- */
.terminal {
  background: var(--surface-terminal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(46, 229, 157, 0.05);
  overflow: hidden;
  font-size: 0.8rem;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--text-low); opacity: 0.55; }
.terminal-bar i:nth-child(1) { background: #F43F5E; opacity: 0.8; }
.terminal-bar i:nth-child(2) { background: #FFB020; opacity: 0.8; }
.terminal-bar i:nth-child(3) { background: #2EE59D; opacity: 0.8; }
/* text-mid: text-low is under WCAG AA (4.27:1) at this size on the terminal bar's near-black background */
.terminal-bar .title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mid); }
.terminal pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.75;
  color: var(--text-mid); white-space: pre;
}
.terminal .cmd { color: var(--text-hi); }
.terminal .cmd::before { content: "$ "; color: var(--primary); }
.terminal .ok { color: var(--primary); }
.terminal .warn { color: var(--accent); }
.terminal .bad { color: var(--pathogen); }
.terminal .dim { color: var(--text-low); }
.cursor {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom;
  background: var(--primary); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Sections -------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.022em; text-wrap: balance; }
.section-head .lede { font-size: 1.08rem; max-width: 62ch; text-wrap: pretty; }

/* --- Hero media band -------------------------------------------------------- */
.media-band { padding: 26px 0 0; }
.media-band .frame {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #051510;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.media-band img { display: block; width: 100%; }

/* --- Problem section -------------------------------------------------------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }

.poison-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.poison-card .card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--border-subtle);
  /* text-mid, not text-low: text-low on this card's surface-1 background falls
     just under WCAG AA (4.34:1) at this font size; text-mid clears it (7.79:1). */
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-mid);
}
.poison-card .body { padding: 20px 22px; font-size: 0.95rem; }
.poison-card .desc { color: var(--text-mid); }
.injected {
  background: rgba(244, 63, 94, 0.12);
  border-bottom: 1px dashed var(--pathogen);
  color: #ffb3c0;
  padding: 0 3px; border-radius: 3px;
}
.zw-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.62rem;
  /* text-hi, not pathogen: pathogen-on-pathogen-tint reads as red-on-red at ~3:1,
     under WCAG AA. text-hi against this same red tint clears 11:1+. */
  background: rgba(244, 63, 94, 0.2); color: var(--text-hi);
  border-radius: 3px; padding: 0 4px; margin: 0 1px; vertical-align: middle;
  letter-spacing: 0.03em;
}
.code-callout {
  background: var(--surface-terminal);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--pathogen);
  border-radius: 10px; padding: 14px 18px; margin-top: 22px;
  font-size: 0.82rem; overflow-x: auto;
}
.code-callout code { color: var(--text-hi); white-space: pre-wrap; overflow-wrap: anywhere; }
.code-callout .note { display: block; margin-top: 8px; font-family: var(--font-ui); color: var(--text-low); font-size: 0.82rem; }

.owasp-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--pathogen);
  border: 1px solid rgba(244, 63, 94, 0.4); border-radius: 8px;
  background: rgba(244, 63, 94, 0.06);
  padding: 7px 13px; margin-bottom: 20px;
}

/* --- Flow (4 steps) --------------------------------------------------------- */
.flow-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; list-style: none; margin: 0; padding: 0;
}
.flow-step {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--step-color, var(--primary));
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.flow-step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.flow-step .step-num {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--step-color, var(--primary)); display: block; margin-bottom: 10px;
}
.flow-step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; margin-bottom: 14px; }
.flow-step code.snip {
  display: block; margin-top: auto; font-size: 0.74rem; color: var(--text-hi);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: pre;
}
.flow-step.hijack { --step-color: var(--pathogen); }
.flow-step.sweep  { --step-color: #9FC0B2; }
.flow-step.defuse { --step-color: var(--accent); }
.flow-step.prove  { --step-color: var(--primary); }

/* --- Stats ------------------------------------------------------------------ */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.stat {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.stat:hover { border-color: rgba(46, 229, 157, 0.35); transform: translateY(-3px); }
.stat .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--primary);
  display: block; margin-bottom: 10px; letter-spacing: -0.02em;
}
.stat.amber .num { color: var(--accent); }
.stat .label { color: var(--text-hi); font-weight: 600; font-size: 0.98rem; display: block; margin-bottom: 6px; }
.stat p { font-size: 0.87rem; margin: 0; color: var(--text-mid); overflow-wrap: anywhere; }
.method-note {
  margin-top: 26px; font-size: 0.85rem; color: var(--text-low);
  border-left: 2px solid var(--border-default); padding-left: 16px; max-width: 56em;
}

/* --- Tools (4 READ / 4 MUTATION) -------------------------------------------- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.tool-col {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-1);
}
.tool-col .col-head {
  padding: 16px 22px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
}
.tool-col.read .col-head { background: rgba(46, 229, 157, 0.06); }
.tool-col.mutation .col-head { background: var(--tape); border-bottom-color: rgba(255, 176, 32, 0.3); }
.tool-col .col-head h3 { margin: 0; font-size: 1.05rem; }
.tool-col .col-head .pill { flex-shrink: 0; }
.tool-list { list-style: none; margin: 0; padding: 8px 0; }
.tool-list li {
  padding: 15px 22px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.tool-list li:last-child { border-bottom: 0; }
.tool-list code.tname {
  font-size: 0.85rem; color: var(--text-hi); font-weight: 600;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle);
  border-radius: 7px; padding: 3px 9px; align-self: start; white-space: nowrap;
}
.tool-col.mutation code.tname { color: var(--accent); border-color: rgba(255, 176, 32, 0.3); }
.tool-col.read code.tname { color: var(--primary); border-color: rgba(46, 229, 157, 0.3); }
.tool-list .tdesc { font-size: 0.88rem; color: var(--text-mid); grid-column: 2; grid-row: 1; }
.tools-tagline {
  margin-top: 26px; text-align: center; font-family: var(--font-display);
  font-size: 1.15rem; color: var(--text-hi);
}
.tools-tagline em { color: var(--accent); font-style: normal; }

/* --- Detector ---------------------------------------------------------------- */
.detector-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.rule-card {
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 24px;
}
.rule-card h3 { font-size: 1.05rem; }
.rule-formula {
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.9;
  background: var(--surface-terminal); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 16px 18px; margin: 14px 0 16px; overflow-x: auto;
}
.rule-formula .a { color: var(--pathogen); }
.rule-formula .b { color: var(--accent); }
.rule-formula .op { color: var(--text-hi); font-weight: 700; }
.nearmiss { list-style: none; margin: 12px 0 0; padding: 0; font-size: 0.87rem; }
.nearmiss li { padding: 7px 0 7px 26px; position: relative; }
.nearmiss li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.nearmiss code { color: var(--text-hi); font-size: 0.82rem; }

.zw-demo {
  background: var(--surface-terminal); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 18px 20px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.88rem; overflow-x: auto;
}
.zw-demo .row { display: flex; gap: 14px; align-items: baseline; padding: 5px 0; white-space: nowrap; }
.zw-demo .row-label { color: var(--text-low); font-size: 0.72rem; width: 9.5em; flex-shrink: 0; letter-spacing: 0.06em; }
.zw-demo .arrow { color: var(--primary); }

/* --- Standing control ---------------------------------------------------------- */
.control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.control-card {
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 24px 22px;
  transition: border-color var(--transition-normal);
}
.control-card:hover { border-color: rgba(255, 176, 32, 0.35); }
.control-card h3 { font-size: 1.02rem; display: flex; gap: 10px; align-items: center; }
.control-card h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.control-card p { font-size: 0.89rem; margin: 0; }
.control-card code { color: var(--text-hi); font-size: 0.8rem; }

/* --- FAQ ------------------------------------------------------------------------ */
.faq-list { max-width: 800px; }
.faq-list details {
  border: 1px solid var(--border-subtle); border-radius: 12px;
  background: var(--surface-1); margin-bottom: 12px;
  transition: border-color var(--transition-fast);
}
.faq-list details[open] { border-color: rgba(46, 229, 157, 0.35); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 17px 48px 17px 22px; position: relative;
  font-family: var(--font-display); font-weight: 600; color: var(--text-hi);
  font-size: 0.99rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-52%);
  color: var(--primary); font-size: 1.3rem; font-weight: 400;
  transition: transform var(--transition-fast);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 22px 18px; font-size: 0.92rem; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* --- Final CTA ------------------------------------------------------------------- */
.final-cta {
  position: relative; text-align: center; padding: 100px 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 115%, rgba(46, 229, 157, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 50% at 85% -10%, rgba(255, 176, 32, 0.07), transparent 70%);
  border-top: 1px solid var(--border-subtle);
}
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final-cta .lede { max-width: 38em; margin: 0 auto 30px; }
.run-cmd {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--surface-terminal); border: 1px solid rgba(46, 229, 157, 0.35);
  border-radius: 12px; padding: 15px 22px; margin-bottom: 32px;
  font-family: var(--font-mono); font-size: 1.05rem; color: var(--text-hi);
  box-shadow: 0 0 44px rgba(46, 229, 157, 0.08);
}
.run-cmd .prompt { color: var(--primary); }
.copy-btn {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  background: transparent; color: var(--text-mid);
  border: 1px solid var(--border-default); border-radius: 7px; padding: 5px 11px;
  cursor: pointer; transition: color var(--transition-fast), border-color var(--transition-fast);
}
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* --- Footer ---------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px 0 40px; font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px; margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand img { width: 38px; height: 38px; flex-shrink: 0; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; color: var(--text-hi); font-size: 1.05rem; }
.footer-brand p { margin: 4px 0 0; color: var(--text-low); font-size: 0.84rem; max-width: 28em; }
.site-footer h4 {
  font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-low); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text-mid); }
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: var(--text-low); font-size: 0.8rem; font-family: var(--font-mono);
}

/* --- Reveal-on-scroll (restrained) ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 0.9, 0.3, 1);
}
.reveal-stagger > * { opacity: 0; transform: translateY(16px); }
.reveal-stagger.in > * {
  opacity: 1; transform: none;
  transition: opacity 550ms ease, transform 550ms cubic-bezier(0.22, 0.9, 0.3, 1);
}
.reveal-stagger.in > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 450ms; }

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

/* --- Responsive --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .hero-grid, .problem-grid, .detector-grid, .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 56px; }
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .flow-grid, .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .run-cmd { font-size: 0.85rem; flex-wrap: wrap; }
  .header-cta { display: none; }
  /* stack the tool name above its description so the copy gets full width */
  .tool-list li { grid-template-columns: minmax(0, 1fr); }
  .tool-list code.tname { justify-self: start; margin-bottom: 6px; }
  .tool-list .tdesc { grid-column: 1; grid-row: auto; }
}
