/* ============================================================
   FORENSIQ v2 — upgraded look
   Authority through: institutional serif display, blueprint
   hairlines, live-instrument motifs, disciplined mono labels.
   ============================================================ */

:root {
  --bg:        #07080A;
  --bg-2:      #0B0D10;
  --panel:     #101318;
  --panel-2:   #151A20;
  --panel-3:   #1B2129;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --line-3:    rgba(255,255,255,0.20);

  --ink:       #EEF0F2;
  --ink-2:     #A6ADB6;
  --ink-3:     #6E7580;
  --ink-4:     #484E58;

  --amber:     #F4A52A;
  --amber-2:   #FFC15E;
  --amber-soft:rgba(244,165,42,0.12);
  --amber-line:rgba(244,165,42,0.32);
  --amber-fill:#F4A52A;
  --btn-ink:   #1c1304;

  --green:     #3BDDA4;
  --green-2:   #6CF0C2;
  --green-soft:rgba(59,221,164,0.12);
  --green-line:rgba(59,221,164,0.34);
  --red:       #F36A6E;

  --topbar-bg: rgba(7,8,10,0.78);
  --tint:      rgba(255,255,255,0.03);
  --tint-soft: rgba(255,255,255,0.015);
  --tint-bar:  rgba(255,255,255,0.02);

  --c-static:  #6CA8FF;
  --c-symbolic:#C39BFF;
  --c-pattern: #FFC15E;
  --c-linter:  #6CF0C2;
  --c-fuzzing: #F36A6E;

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient washes + engineering grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1000px 640px at 80% -10%, rgba(244,165,42,0.08), transparent 60%),
    radial-gradient(1100px 700px at 6% 0%, rgba(59,221,164,0.045), transparent 55%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, black, transparent 76%);
          mask-image: radial-gradient(circle at 50% 24%, black, transparent 76%);
  opacity: 0.45;
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--amber); color: #1a1205; }

.wrap {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 36px;
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .idx { color: var(--ink-4); letter-spacing: 0.1em; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--amber-line); }

.lede { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 46ch; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }

.mono-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  padding: 14px 24px; border-radius: 9px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-2), var(--amber-fill) 55%);
  color: var(--btn-ink); font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 28px -10px rgba(244,165,42,0.55);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 34px -10px rgba(244,165,42,0.75); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--tint); }

/* ---------- section scaffolding ---------- */
section { position: relative; z-index: 1; }
.section { padding: 116px 0; }
.section-rule {
  position: relative;
  border-top: 1px solid var(--line);
}
.section-rule::before, .section-rule::after {
  content: "+";
  position: absolute; top: -11px;
  font-family: var(--mono); font-size: 14px; color: var(--ink-4);
  background: transparent;
}
.section-rule::before { left: 36px; }
.section-rule::after { right: 36px; }

.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head h2, .display-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06; letter-spacing: -0.015em;
  margin: 20px 0 16px;
  text-wrap: pretty;
}
.section-head h2 em { font-style: italic; color: var(--ink-2); }
.section-head p { color: var(--ink-2); font-size: 16px; max-width: 54ch; margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.snap { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   STATUS TICKER
   ============================================================ */
.ticker {
  position: relative; z-index: 51;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  height: 32px;
  display: flex; align-items: center;
}
.ticker .belt {
  display: flex; gap: 0; white-space: nowrap;
  animation: belt 46s linear infinite;
}
.ticker:hover .belt { animation-play-state: paused; }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker .item {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px;
}
.ticker .item b { color: var(--ink-2); font-weight: 500; }
.ticker .item .ok { color: var(--green); }
.ticker .item .sep { color: var(--ink-4); }
@media (prefers-reduced-motion: reduce) { .ticker { display: none; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--amber-fill); }
.brand .mark svg { width: 32px; height: 32px; }
.brand .name { font-family: var(--mono); font-weight: 600; letter-spacing: 0.16em; font-size: 15px; }
.brand .name small {
  display: block; font-size: 8.5px; letter-spacing: 0.26em;
  color: var(--ink-3); font-weight: 400; margin-top: 2px;
}
.nav { display: flex; gap: 32px; margin-left: 20px; }
.nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
  position: relative; padding: 4px 0; white-space: nowrap; transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--amber);
}
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.api-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}
.api-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,221,164,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(59,221,164,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,221,164,0); }
}
.sign-in {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color .2s, background .2s;
}
.sign-in:hover { border-color: var(--line-3); background: var(--tint); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 84px 0 96px; }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
/* nudge the live terminal up a touch from its centered position (desktop only;
   on stacked mobile both blocks share one column, so no negative margin there) */
@media (min-width: 1001px) { .hero-right { margin-top: -68px; } }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.6vw, 88px);
  line-height: 0.97; letter-spacing: -0.024em;
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero h1 .line2 { font-style: italic; color: var(--ink-2); }
.hero h1 .amber { color: var(--amber); font-weight: 600; font-style: normal; }
.hero .lede { margin: 28px 0 0; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-proof {
  margin-top: 44px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-proof .lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-4); white-space: nowrap;
}
.hero-proof .engines { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.hero-proof .engines span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-2); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.hero-proof .engines span::before {
  content: ""; width: 5px; height: 5px; border-radius: 1px;
  background: var(--dot, var(--ink-4)); transform: rotate(45deg);
}
.hero-proof .engines span:hover { color: var(--ink); }

/* ---- live terminal ---- */
.term {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
}
.term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--tint-bar);
}
.term-bar .dots { display: flex; gap: 7px; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-3); display: block; }
.term-bar .ttl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.term-bar .rec {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green);
}
.term-bar .rec i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: block;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.term-body {
  padding: 24px 26px 26px;
  font-family: var(--mono); font-size: 15.5px; line-height: 2.05;
  min-height: 392px;
}
.term-body .cmd { color: var(--ink-2); }
.term-body .cmd .ps { color: var(--amber); }
.tline { display: flex; align-items: baseline; gap: 0; white-space: nowrap; opacity: 0; }
.tline.on { opacity: 1; }
.tline .eng { color: var(--ink); width: 9ch; flex-shrink: 0; }
.tline .meth { width: 10ch; flex-shrink: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.tline .fill { flex: 1; overflow: hidden; color: var(--ink-4); margin: 0 10px; font-size: 12.5px; letter-spacing: 2px; }
.tline .res { color: var(--ink-2); }
.tline .res .ok { color: var(--green); }
.tline .res .skip { color: var(--ink-4); }
.tline.spin .res { color: var(--ink-3); }
.term-sum { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); opacity: 0; transition: opacity .5s; }
.term-sum.on { opacity: 1; }
.term-sum .row1 { color: var(--ink-2); }
.term-sum .row1 b { color: var(--amber); font-weight: 600; }
.term-sum .score { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.term-sum .score .n { font-family: var(--serif); font-size: 47px; color: var(--green); line-height: 1; }
.term-sum .score .meter { flex: 1; height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.term-sum .score .meter i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--green-2)); border-radius: 4px; transition: width 1.1s var(--ease); }
.term-sum .score .tag { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--amber); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }

.hero-stats {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--tint-soft);
}
.hero-stats > div { padding: 18px 14px; text-align: center; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats .n { font-family: var(--serif); font-size: 32px; color: var(--amber); line-height: 1; }
.hero-stats .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* ============================================================
   AUDIT CONSOLE
   ============================================================ */
.console {
  margin-top: 34px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--tint-soft), 0 50px 100px -50px rgba(0,0,0,0.9);
}
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--tint-bar), transparent);
}
.console-bar .dots { display: flex; gap: 7px; }
.console-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--panel-3); display: block; }
.console-bar .ttl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.console-bar .secure {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px;
}
.console-bar .secure svg { width: 12px; height: 12px; color: var(--green); }

.tabs { display: flex; gap: 4px; padding: 14px 18px 0; }
.tab {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); background: transparent; border: 0; padding: 9px 14px;
  border-radius: 8px 8px 0 0; position: relative; transition: color .2s; white-space: nowrap;
}
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--amber); }
.tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--amber); }

.console-body { padding: 18px; }
.field-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: block; }

.editor {
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  display: grid; grid-template-columns: auto 1fr; min-height: 260px;
  overflow: hidden;
}
.editor .gutter {
  padding: 16px 12px; text-align: right; color: var(--ink-4);
  border-right: 1px solid var(--line); user-select: none; background: var(--tint-soft);
  font-size: 12px;
}
.editor .gutter span { display: block; }
.editor .code { padding: 16px 18px; white-space: pre; overflow: auto; color: var(--ink-2); outline: none; min-width: 0; margin: 0; }
.editor .code .kw { color: var(--amber-2); }
.editor .code .cm { color: var(--ink-4); }
.editor .code .ty { color: var(--green-2); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.input-line {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  padding: 4px 4px 4px 16px;
}
.input-line .pfx { font-family: var(--mono); font-size: 13px; color: var(--ink-4); white-space: nowrap; }
.input-line input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-family: var(--mono); font-size: 13.5px; color: var(--ink); padding: 14px 0;
}
.input-line input::placeholder { color: var(--ink-4); }
.input-line .net {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em;
  text-transform: uppercase; padding: 9px 12px; border-left: 1px solid var(--line);
}
.console-hint { font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin: 14px 2px 0; }

.console-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px; border-top: 1px solid var(--line);
}
.toggle { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.toggle .sw { width: 36px; height: 20px; border-radius: 20px; background: var(--panel-3); border: 1px solid var(--line-2); position: relative; transition: background .2s, border-color .2s; flex-shrink: 0; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); transition: transform .2s, background .2s; }
.toggle.on .sw { background: var(--green-soft); border-color: var(--green-line); }
.toggle.on .sw::after { transform: translateX(16px); background: var(--green); }
.toggle .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }
.toggle .lbl em { color: var(--ink-4); font-style: normal; text-transform: none; letter-spacing: 0; }
.console-foot .actions { margin-left: auto; display: flex; gap: 12px; }

/* ============================================================
   PIPELINE
   ============================================================ */
.pipeline-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: var(--tint-soft);
}
.step { padding: 30px 26px 34px; border-right: 1px solid var(--line); position: relative; transition: background .3s; }
.step:last-child { border-right: 0; }
.step:hover { background: var(--tint-bar); }
.step .num {
  font-family: var(--mono); font-size: 11px; color: var(--amber); letter-spacing: 0.14em;
  display: inline-flex; align-items: center; gap: 8px;
}
.step .num::after { content: ""; width: 26px; height: 1px; background: var(--amber-line); }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 16.5px; margin: 18px 0 9px; color: var(--ink); }
.step p { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; margin: 0; }
.step .arrow {
  position: absolute; top: 32px; right: -9px; width: 18px; height: 18px;
  color: var(--ink-4); z-index: 2; background: var(--bg); border-radius: 50%;
}
.step:last-child .arrow { display: none; }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px;
  background: var(--panel-2);
}
.step .verdict {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 22px; color: var(--green); letter-spacing: 0.02em;
}
.step .verdict small { font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   ENGINES
   ============================================================ */
.engines-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ecard {
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel);
  padding: 26px 24px 24px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
  position: relative; overflow: hidden;
}
.ecard::before {
  /* method-colored top rule */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mc, var(--amber)) 0%, transparent 70%);
  opacity: 0.7;
}
.ecard::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px 220px at 50% -10%, var(--glow, rgba(244,165,42,0.1)), transparent 70%);
  transition: opacity .4s; pointer-events: none;
}
.ecard:hover { border-color: var(--line-3); transform: translateY(-3px); }
.ecard:hover::after { opacity: 1; }
.ecard .top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.ecard .eico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--panel-2); flex-shrink: 0;
}
.ecard .eico svg { width: 20px; height: 20px; }
.ecard h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 0; display: flex; align-items: center; gap: 9px; }
.ecard .method {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; border: 1px solid currentColor; opacity: 0.9;
}
.ecard .vendor { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 3px 0 0; }
.ecard > p { color: var(--ink-2); font-size: 13.5px; line-height: 1.62; margin: 14px 0 0; }

.m-static   { color: var(--c-static); }
.m-ast      { color: var(--c-static); }
.m-symbolic { color: var(--c-symbolic); }
.m-pattern  { color: var(--c-pattern); }
.m-linter   { color: var(--c-linter); }
.m-fuzzing  { color: var(--c-fuzzing); }
.ic-knockout { fill: var(--panel-2); }

/* ============================================================
   CONSENSUS
   ============================================================ */
.consensus { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
.consensus .copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px,4.2vw,50px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 20px 0 18px;
}
.consensus .copy > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0 0 28px; max-width: 46ch; }
.bullets { display: flex; flex-direction: column; gap: 16px; }
.bullet { display: flex; gap: 13px; align-items: flex-start; }
.bullet .bi {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--amber-soft); border: 1px solid var(--amber-line); flex-shrink: 0; margin-top: 1px;
}
.bullet .bi svg { width: 12px; height: 12px; color: var(--amber); }
.bullet b { color: var(--ink); font-weight: 600; }
.bullet span { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.diagram {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: radial-gradient(620px 380px at 70% 50%, rgba(59,221,164,0.05), transparent 70%), var(--panel);
  padding: 30px; position: relative;
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .caption {
  text-align: center; margin-top: 8px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.04em; color: var(--ink-3);
}
.diagram .caption b { color: var(--green); }

#consensusSvg .cline { stroke-dasharray: 420; stroke-dashoffset: 420; }
.diagram.in #consensusSvg .cline { animation: draw 1.4s var(--ease) forwards; }
.diagram.in #consensusSvg .cline:nth-child(2) { animation-delay: .15s; }
.diagram.in #consensusSvg .cline:nth-child(3) { animation-delay: .3s; }
.diagram.in #consensusSvg .cline:nth-child(4) { animation-delay: .45s; }
.diagram.in #consensusSvg .cline:nth-child(5) { animation-delay: .55s; }
.diagram.in #consensusSvg .cline:nth-child(6) { animation-delay: .65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  #consensusSvg .cline { stroke-dasharray: none; stroke-dashoffset: 0; }
}
#consensusSvg .cline.agree { stroke: var(--green); }
#consensusSvg .cline.faint { stroke: var(--line-2); }
#consensusSvg .node .ndot { fill: var(--bg); }
#consensusSvg .node.agree .ndot { stroke: var(--green); }
#consensusSvg .node.faint .ndot { stroke: var(--line-3); }
#consensusSvg .node.agree .ntag { fill: var(--green); }
#consensusSvg .node.faint .ntag { fill: var(--ink-3); }
#consensusSvg .ffill { fill: var(--green-soft); stroke: var(--green); }
#consensusSvg .fring { stroke: var(--green); opacity: 0.28; }
#consensusSvg .fid { fill: var(--green); }
#consensusSvg .fsub { fill: var(--ink-2); }

/* ============================================================
   STATS BAR
   ============================================================ */
.statsbar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: var(--tint-soft);
}
.statsbar > div { padding: 46px 28px; text-align: center; border-right: 1px solid var(--line); }
.statsbar > div:last-child { border-right: 0; }
.statsbar .n { font-family: var(--serif); font-size: clamp(40px,5vw,60px); line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.statsbar .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  display: flex; align-items: center; gap: 18px; padding: 25px 8px; color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; font-weight: 500; transition: color .2s;
}
.faq-q .qn { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.1em; flex-shrink: 0; width: 30px; }
.faq-q .qt { flex: 1; }
.faq-q em { font-style: italic; }
.faq-q:hover { color: var(--amber); }
.faq-q .ic { margin-left: auto; flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--ink-3); transition: transform .3s var(--ease), background .2s; }
.faq-q .ic::before { top: 9.25px; left: 2px; right: 2px; height: 1.5px; }
.faq-q .ic::after { left: 9.25px; top: 2px; bottom: 2px; width: 1.5px; }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); }
.faq-item.open .faq-q { color: var(--amber); }
.faq-item.open .faq-q .ic::before { background: var(--amber); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a .inner { padding: 0 8px 26px 56px; color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 70ch; }

/* ============================================================
   CTA — certificate band
   ============================================================ */
.cta-band {
  border: 1px solid var(--amber-line); border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(720px 380px at 50% 125%, var(--amber-line), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 84px 32px; text-align: center; position: relative;
}
.cta-band::before {
  /* inner certificate rule */
  content: ""; position: absolute; inset: 10px; border-radius: 13px;
  border: 1px dashed var(--line-2); pointer-events: none;
}
.cta-band .watermark {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; opacity: 0.05;
}
.cta-band .watermark svg { width: 380px; height: 380px; color: var(--amber); }
.cta-band > * { position: relative; }
.cta-band .mono-label { display: block; margin-bottom: 18px; color: var(--amber); letter-spacing: 0.3em; }
.cta-band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px,5vw,60px); margin: 0 0 16px; letter-spacing: -0.02em;
}
.cta-band h2 .amber { color: var(--amber); font-weight: 600; }
.cta-band p { color: var(--ink-2); font-size: 16px; margin: 0 0 34px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 68px 0 40px; margin-top: 24px; background: var(--bg-2); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer .desc { color: var(--ink-3); font-size: 13.5px; line-height: 1.65; max-width: 42ch; }
.footer .src { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--amber); display: inline-flex; align-items: center; gap: 8px; }
.footer .col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 16px; font-weight: 500; }
.footer .col a { display: block; color: var(--ink-2); font-size: 13.5px; margin-bottom: 11px; transition: color .2s; }
.footer .col a:hover { color: var(--ink); }
.footer .col span { display: block; color: var(--ink-2); font-size: 13px; margin-bottom: 11px; font-family: var(--mono); letter-spacing: 0.02em; }
.footer-base { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }
.footer-base b { color: var(--ink-3); font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-top { grid-template-columns: 1fr; gap: 44px; }
  .consensus { grid-template-columns: 1fr; gap: 40px; }
  .engines-grid { grid-template-columns: repeat(2,1fr); }
  .pipeline-grid { grid-template-columns: repeat(2,1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section { padding: 76px 0; }
  .nav, .api-pill { display: none; }
  .engines-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .step .arrow { display: none !important; }
  .statsbar { grid-template-columns: 1fr 1fr; }
  .statsbar > div:nth-child(2) { border-right: 0; }
  .statsbar > div:nth-child(1), .statsbar > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero-stats .n { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .term-body { font-size: 11px; min-height: 0; }
  .faq-a .inner { padding-left: 8px; }
  .section-rule::before, .section-rule::after { display: none; }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --bg:        #F3EFE6;
  --bg-2:      #EBE5D9;
  --panel:     #FBFAF5;
  --panel-2:   #FFFFFF;
  --panel-3:   #E7E1D3;
  --line:      rgba(38,31,18,0.10);
  --line-2:    rgba(38,31,18,0.16);
  --line-3:    rgba(38,31,18,0.26);

  --ink:       #181A1D;
  --ink-2:     #4B515A;
  --ink-3:     #797F89;
  --ink-4:     #A6ABB3;

  --amber:     #9C5806;
  --amber-2:   #C97E0B;
  --amber-fill:#E6900D;
  --amber-soft:rgba(156,88,6,0.10);
  --amber-line:rgba(156,88,6,0.28);

  --green:     #0B8B5F;
  --green-2:   #0A7C53;
  --green-soft:rgba(11,139,95,0.12);
  --green-line:rgba(11,139,95,0.30);
  --red:       #CF4540;

  --btn-ink:   #2a1803;
  --topbar-bg: rgba(243,239,230,0.80);
  --tint:      rgba(38,31,18,0.045);
  --tint-soft: rgba(38,31,18,0.022);
  --tint-bar:  rgba(38,31,18,0.03);

  --c-static:  #2C6BDC;
  --c-symbolic:#7747D2;
  --c-pattern: #B06708;
  --c-linter:  #0B8B5F;
  --c-fuzzing: #CF4540;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(820px 540px at 80% -10%, rgba(156,88,6,0.07), transparent 60%),
    radial-gradient(900px 600px at 8% 2%, rgba(11,139,95,0.04), transparent 55%);
}
[data-theme="light"] body::after { opacity: 0.7; }
[data-theme="light"] .console { box-shadow: 0 0 0 6px var(--tint-soft), 0 30px 70px -48px rgba(40,30,10,0.45); }
[data-theme="light"] .term { box-shadow: 0 30px 70px -48px rgba(40,30,10,0.45); }
[data-theme="light"] .console-bar .dots i,
[data-theme="light"] .term-bar .dots i { background: var(--line-3); }
[data-theme="light"] .btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 26px -10px rgba(180,110,10,0.5); }

/* ============================================================
   ACCENT VARIANTS
   ============================================================ */
[data-accent="azure"] {
  --amber:#62A0F7; --amber-2:#8ABAF9; --amber-fill:#3B82F6;
  --amber-soft:rgba(98,160,247,0.13); --amber-line:rgba(98,160,247,0.36); --btn-ink:#06122b;
}
[data-theme="light"][data-accent="azure"] {
  --amber:#1F5FD0; --amber-2:#4D86E8; --amber-fill:#2E6FE0;
  --amber-soft:rgba(31,95,208,0.10); --amber-line:rgba(31,95,208,0.30); --btn-ink:#ffffff;
}
[data-accent="violet"] {
  --amber:#B9A1FF; --amber-2:#CDBBFF; --amber-fill:#8B5CF6;
  --amber-soft:rgba(139,92,246,0.15); --amber-line:rgba(139,92,246,0.38); --btn-ink:#10072b;
}
[data-theme="light"][data-accent="violet"] {
  --amber:#6A39D4; --amber-2:#8B62E8; --amber-fill:#7A4FE0;
  --amber-soft:rgba(106,57,212,0.10); --amber-line:rgba(106,57,212,0.30); --btn-ink:#ffffff;
}

/* ============================================================
   HEADLINE STYLE — serif (default) or grotesk
   ============================================================ */
[data-headline="sans"] { --serif-display: var(--sans); }
[data-headline="sans"] .hero h1,
[data-headline="sans"] .display-2,
[data-headline="sans"] .section-head h2,
[data-headline="sans"] .consensus .copy h2,
[data-headline="sans"] .cta-band h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; }
[data-headline="sans"] .hero h1 .line2,
[data-headline="sans"] .display-2 em,
[data-headline="sans"] .section-head h2 em { font-style: normal; }
