/* CVE Hunter marketing site — page styles.
 * Lifted verbatim from docs/design/artefacts/handoff-2026-04/project/website.html.
 * Tokens come from static/tokens.css, which is generated from the canonical
 * docs/design/artefacts/handoff-2026-04/project/shared/tokens.css by build.mjs.
 * Do not hardcode hex values here; reference --tokens.
 */

/* ---------------- Layout scaffolding ---------------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 880px; }
section { padding: 96px 0; border-bottom: 1px solid var(--line); position: relative; }
section:last-of-type { border-bottom: none; }
section .section-head { display: grid; grid-template-columns: 120px 1fr; gap: 40px; margin-bottom: 56px; align-items: start; }
section .section-head .idx { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: 0.1em; padding-top: 14px; border-top: 1px solid var(--signal); }
section .section-head h2 { margin: 0 0 12px; max-width: 18ch; }
section .section-head p { margin: 0; color: var(--ink-2); max-width: 56ch; font-size: 17px; line-height: 1.55; }

/* ---------------- Nav ---------------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.brand .mark { width: 22px; height: 22px; position: relative; }
nav ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; }
nav ul a { color: var(--ink-2); }
nav ul a:hover { color: var(--ink); }
.status-pill { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------------- Hero ---------------- */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.hero .meta-row { display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 40px; flex-wrap: wrap; }
.hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta-row span::before { content: ""; width: 4px; height: 4px; background: var(--signal); border-radius: 50%; }
.hero h1 { margin: 0 0 28px; max-width: 18ch; }
.hero .lede { font-size: 19px; color: var(--ink-1); max-width: 56ch; margin: 0 0 36px; line-height: 1.55; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .marquee { display: flex; gap: 16px; flex-wrap: wrap; }

/* ambient grid bg */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.4; }
.hero-bg svg { width: 100%; height: 100%; }

/* Terminal card (right side of hero) */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
  box-shadow: var(--sh-2);
  position: relative;
}
.terminal .bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.terminal .bar .dots { display: flex; gap: 6px; }
.terminal .bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.terminal .bar .title { color: var(--ink-3); font-size: 11px; letter-spacing: 0.04em; }
.terminal .body { padding: 18px 20px 22px; line-height: 1.65; color: var(--ink-1); }
.terminal .line { display: block; }
.terminal .prompt { color: var(--signal); }
.terminal .cmd { color: var(--ink); }
.terminal .muted { color: var(--ink-3); }
.terminal .ok { color: var(--ok); }
.terminal .warn { color: var(--warn); }
.terminal .info { color: var(--info); }
.terminal .violet { color: var(--violet); }
.terminal .sig { color: var(--signal); }

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ticker::before { content: "▪"; color: var(--signal); }

/* ---------------- Evidence hero stats ---------------- */
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; background: var(--line); gap: 1px; }
.big-stats > div { background: var(--bg); padding: 28px 24px; }
.big-stats dt { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.big-stats dd { margin: 12px 0 0; font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.big-stats dd .suf { font-size: 16px; color: var(--ink-2); margin-left: 4px; }

/* ---------------- Pipeline ---------------- */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; background: var(--line); }
.pipe-cell { background: var(--bg-1); padding: 24px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.pipe-cell + .pipe-cell { border-left: 1px solid var(--line); }
.pipe-cell .n { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: 0.08em; }
.pipe-cell h3 { margin: 0; font-size: 15px; font-weight: 600; }
.pipe-cell ul { list-style: none; padding: 0; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.pipe-cell ul li::before { content: "› "; color: var(--ink-3); }
.pipe-cell .tag { font-family: var(--mono); font-size: 10px; color: var(--ink-3); padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 2px; width: fit-content; }

.pipe-flow { margin-top: 32px; display: flex; gap: 40px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); justify-content: space-between; }
.pipe-flow span::before { content: "→ "; color: var(--signal); }

/* ---------------- Finding showcase ---------------- */
.finding-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.finding-card { padding: 28px 32px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-4); position: relative; }
.finding-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 16px; }
.finding-head .left { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.finding-card h3 { font-size: 22px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
.finding-card .loc { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-bottom: 20px; }
.finding-card .loc .file { color: var(--ink); }
.finding-card .evidence-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.finding-card .ev { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; color: var(--ink-1); }
.finding-card .ev:first-child { border-top: 0; }
.finding-card .ev .type { color: var(--ink); }
.finding-card .ev .artifact { color: var(--ink-3); }

.cpg-map {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 24px;
  height: 100%;
  display: flex; flex-direction: column;
}
.cpg-map .t-meta { display: flex; justify-content: space-between; margin-bottom: 20px; }
.cpg-map svg { width: 100%; height: auto; flex: 1; }

/* ---------------- Evidence hierarchy ---------------- */
.evidence-rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; }
.ev-row { display: grid; grid-template-columns: 80px 1fr 160px 180px; align-items: center; padding: 22px 28px; gap: 24px; border-top: 1px solid var(--line); background: var(--bg-1); }
.ev-row:first-child { border-top: 0; }
.ev-row .rank-big { width: 44px; height: 44px; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-family: var(--mono); font-weight: 500; color: var(--bg); }
.ev-row .rank-big--1 { background: var(--rank-1); }
.ev-row .rank-big--2 { background: var(--rank-2); }
.ev-row .rank-big--3 { background: var(--rank-3); }
.ev-row .rank-big--4 { background: var(--rank-4); }
.ev-row .rank-big--5 { background: var(--rank-5); color: #fff; }
.ev-row h3 { margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.ev-row p { margin: 0; color: var(--ink-2); font-size: 14px; }
.ev-row .cat { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.ev-row .ex { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

.confirmed-gate {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.gate-eq { font-family: var(--mono); font-size: 15px; color: var(--ink); line-height: 2; }
.gate-eq .op { color: var(--signal); }

/* ---------------- Comparison ---------------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--ink-4); padding-bottom: 14px; }
.compare td:first-child { font-family: var(--mono); font-size: 13px; color: var(--signal); font-weight: 500; width: 28%; }
.compare tr.us td:first-child { color: var(--ok); }
.compare tr.us td { background: color-mix(in oklab, var(--ok) 5%, var(--bg-1)); }

/* ---------------- Run section ---------------- */
.run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.run-grid pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.65;
  margin: 0;
  overflow-x: auto;
}
.run-grid pre .c { color: var(--ink-3); }
.run-grid pre .k { color: var(--signal); }
.run-grid pre .s { color: var(--ok); }
.run-grid .kv { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.run-grid .kv dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.run-grid .kv dd { font-family: var(--mono); font-size: 13px; color: var(--ink); margin: 0; }

/* ---------------- Spec panel ---------------- */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; }
.spec > div { background: var(--bg-1); padding: 22px; }
.spec .t-meta { color: var(--ink-3); margin-bottom: 12px; }
.spec strong { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; display: block; margin-bottom: 4px; color: var(--ink); }
.spec span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ---------------- CTA ---------------- */
.cta { padding: 120px 0; text-align: center; position: relative; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(48px, 6vw, 88px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; margin: 0 auto 36px; max-width: 14ch; }
.cta .s { font-style: italic; color: var(--signal); font-family: var(--serif); font-weight: 400; }

/* ---------------- Footer ---------------- */
footer { padding: 64px 0 48px; border-top: 1px solid var(--line); background: var(--bg); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
footer h4 { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; font-size: 14px; }
footer li a { color: var(--ink-1); }
footer li a:hover { color: var(--signal-2); }
footer .brand { margin-bottom: 18px; }
footer .copy { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero .wrap, .finding-grid, .run-grid, .confirmed-gate, footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .pipeline, .big-stats, .spec { grid-template-columns: 1fr 1fr; }
  .ev-row { grid-template-columns: 64px 1fr; }
  .ev-row .cat, .ev-row .ex { display: none; }
  section .section-head { grid-template-columns: 1fr; gap: 12px; }
}

/* fade-in on load */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal 0.8s var(--ease-out) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
