/* ============================================================
   ThreatCat Feed — design system
   Golos Text (sans) + IBM Plex Mono (data/terminal)
   ============================================================ */

:root {
  /* warm near-black surfaces */
  --bg:        #0d0b08;
  --bg-1:      #110e09;
  --surface:   #17120c;
  --surface-2: #1d1810;
  --surface-3: #241d13;

  /* hairlines */
  --line:        rgba(245, 200, 120, 0.10);
  --line-soft:   rgba(255, 255, 255, 0.055);
  --line-amber:  rgba(242, 169, 59, 0.28);

  /* amber — refined, less "warning lamp", more brushed gold */
  --amber:        #f2a93b;
  --amber-bright: #ffc560;
  --amber-deep:   #c47f24;
  --amber-glow:   rgba(242, 169, 59, 0.16);

  /* threat red — used sparingly for "active C2" */
  --threat: #e8533a;

  /* text */
  --text:   #f4ede0;
  --text-2: #b6ab98;
  --text-3: #7d7263;
  --text-4: #564e43;

  --maxw: 1240px;
  --gut: 40px;

  --font-sans: 'Golos Text', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

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

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

html { scroll-behavior: smooth; }

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

/* warm vignette + faint grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(242,169,59,0.10), transparent 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(242,169,59,0.05), transparent 50%),
    linear-gradient(180deg, #0f0c08 0%, var(--bg) 40%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: #1a1206; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--amber);
  opacity: 0.7;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 20px;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-2);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 620px;
  margin-top: 20px;
}

.amber { color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: #20150400;
  color: #2a1c06;
  box-shadow: 0 8px 30px -10px rgba(242,169,59,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(242,169,59,0.7), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.025);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-amber); background: rgba(242,169,59,0.06); transform: translateY(-2px); }

/* ---------- chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 8px 14px;
  border: 1px solid var(--line-amber);
  border-radius: 100px;
  background: rgba(242,169,59,0.05);
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(242,169,59,0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,169,59,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(242,169,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13,11,8,0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav.scrolled { background: rgba(13,11,8,0.9); }
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-amber);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-txt small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-3);
  text-transform: uppercase;
}
.brand-txt strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 22px; flex-wrap: nowrap; }
.nav-links a {
  font-size: 14px; color: var(--text-2);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--amber);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--amber); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* standalone inline link used inside body copy (not the nav) */
.inline-link, .inline-link a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-amber);
  transition: text-decoration-color .2s;
}
.inline-link:hover, .inline-link a:hover { text-decoration-color: var(--amber); }

/* format badges — shared vocabulary between the landing page and the feeds catalog */
.fmt-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--text-2);
}
.fmt-badge.type-ip { border-color: var(--line-amber); color: var(--amber); }
.fmt-badge.type-domain { border-color: rgba(120,180,255,0.35); color: #8bb9ff; }
.fmt-badge.type-mixed { border-color: var(--line); color: var(--text-3); }
.fmt-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.fmt-badge.mode-live .dot { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.fmt-badge.mode-live { border-color: rgba(74,222,128,0.35); color: #6ee7a0; }
.fmt-badge.mode-incremental .dot { background: var(--amber); }
.fmt-badge.mode-incremental { border-color: var(--line-amber); color: var(--amber); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-2); text-transform: uppercase;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 9px;
  transition: border-color .2s, color .2s;
}
.nav-pdf:hover { border-color: var(--line-amber); color: var(--text); }
.nav-burger { display: none; position: relative; }
.nav-burger .i-close { display: none; }
.nav-burger.open .i-bars { display: none; }
.nav-burger.open .i-close { display: block; }

/* mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px var(--gut) 22px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a {
  font-size: 16px; color: var(--text-2);
  padding: 15px 2px; border-bottom: 1px solid var(--line-soft);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu-actions {
  display: flex; flex-direction: column; gap: 12px; margin-top: 18px;
}
.mobile-menu-actions .btn { justify-content: center; padding: 15px; font-size: 15px; }
.mobile-menu-actions .nav-pdf { display: inline-flex; justify-content: center; padding: 14px; font-size: 13px; }
.nav.menu-open .mobile-menu { display: flex; }

/* ============================================================
   HERO — cinematic full-bleed cat-eye
   ============================================================ */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  padding: 120px 0 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 26% center;
  transform: scale(0.8);
  will-change: transform;
  position: relative;
  z-index: 0;
  filter: brightness(1.7) saturate(1.05);
}
/* left scrim so headline reads over the dark side; keeps the eye glowing at right */
.hero-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,11,8,0.42), rgba(13,11,8,0.42)),
    linear-gradient(96deg, var(--bg) 0%, var(--bg) 18%, rgba(13,11,8,0.92) 36%, rgba(13,11,8,0.62) 52%, rgba(13,11,8,0.28) 68%, rgba(13,11,8,0.12) 82%),
    linear-gradient(0deg, var(--bg) 1%, transparent 28%),
    linear-gradient(180deg, rgba(13,11,8,0.85) 0%, transparent 18%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-content { max-width: 660px; color: var(--text); }
.hero-h1 {
  font-size: clamp(46px, 6.0vw, 88px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
  text-wrap: balance;
  text-shadow: 0 2px 36px rgba(0,0,0,0.55);
}
.hero-h1 .accent {
  background: linear-gradient(92deg, var(--amber-bright), var(--amber) 55%, var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 30px;
  font-size: clamp(17px, 1.45vw, 20px);
  color: var(--text-2);
  max-width: 520px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.75);
}
.hero-lead b { color: var(--text); font-weight: 600; }
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* hero proof strip */
.hero-proof {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  width: fit-content;
}
.proof-item .num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.proof-item .num b { color: var(--amber); font-weight: 500; }
.proof-item .lab {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  max-width: 160px;
}

/* hero console ticker pinned bottom-right of hero */
.hero-ticker {
  position: absolute;
  right: var(--gut); bottom: 36px; z-index: 3;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--text-3);
  display: flex; align-items: center; gap: 12px;
}
.hero-ticker .live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.hero-ticker b { color: var(--amber); font-weight: 500; }
@media (max-width: 1100px) { .hero-ticker { display: none; } }

/* ============================================================
   generic section spacing
   ============================================================ */
.band { padding: 110px 0; }
.band.alt { background:
    linear-gradient(180deg, transparent, rgba(242,169,59,0.025) 50%, transparent),
    var(--bg-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ============================================================
   ABOUT — quote + stats + features
   ============================================================ */
.quote {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}
.quote .accent { color: var(--amber); }
.about-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end; }
.about-copy { color: var(--text-2); font-size: 17px; }
.about-copy p + p { margin-top: 18px; }

.stat-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; margin-top: 64px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden;
}
.stat-cell { background: var(--bg); padding: 34px 32px; }
.stat-cell .v {
  font-family: var(--font-mono); font-size: clamp(38px,4.2vw,52px);
  font-weight: 500; letter-spacing: -0.02em; color: var(--amber); line-height: 1;
}
.stat-cell .k { margin-top: 12px; color: var(--text-2); font-size: 15px; }

.feat-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 24px;
}
.feat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 32px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
  overflow: hidden;
}
.feat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--amber); opacity: 0; transition: opacity .3s;
}
.feat:hover { border-color: var(--line-amber); transform: translateY(-3px); background: var(--surface-2); }
.feat:hover::before { opacity: 1; }
.feat .ix {
  font-family: var(--font-mono); font-size: 12px; color: var(--amber);
  letter-spacing: .14em; margin-bottom: 18px; display: block;
}
.feat h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.feat p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; }

/* ============================================================
   PIPELINE — how it works
   ============================================================ */
.pipe-stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 56px; }
.pipe-stat .v { font-family: var(--font-mono); font-size: clamp(26px,3vw,38px); color: var(--text); font-weight: 500; }
.pipe-stat .v b { color: var(--amber); font-weight: 500; }
.pipe-stat .k { color: var(--text-3); font-size: 13.5px; margin-top: 6px; font-family: var(--font-mono); letter-spacing: .04em; }

.pipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 30px 28px 32px;
  min-height: 230px;
  display: flex; flex-direction: column;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  overflow: hidden;
}
.step:hover { border-color: var(--line-amber); background: var(--surface-2); transform: translateY(-3px); }
.step-no {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--amber); letter-spacing: .1em;
  display: flex; align-items: center; gap: 12px;
}
.step-no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 20px; font-weight: 600; margin-top: 26px; letter-spacing: -0.01em; }
.step p { margin-top: 12px; color: var(--text-2); font-size: 15px; flex: 1; }
.step .meta {
  margin-top: 18px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--text-3); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.step .meta .live { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.step.verify { background: linear-gradient(160deg, rgba(242,169,59,0.12), var(--surface) 60%); border-color: var(--line-amber); }
.step.verify .step-no { color: var(--amber-bright); }

/* ============================================================
   WORKFLOW — interactive stepper
   ============================================================ */
.flow { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 26px; align-items: stretch; }
.flow-list { display: flex; flex-direction: column; gap: 8px; }
.flow-item {
  display: flex; align-items: center; gap: 16px;
  text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 17px 20px; cursor: pointer;
  font-family: inherit; color: var(--text-2);
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.flow-item:hover { color: var(--text); border-color: var(--line); transform: translateX(2px); }
.flow-item .n { font-family: var(--font-mono); font-size: 13px; color: var(--text-4); transition: color .25s; }
.flow-item .t { font-size: 15.5px; font-weight: 500; flex: 1; }
.flow-item .chev { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; color: var(--amber); }
.flow-item[aria-selected="true"] {
  background: linear-gradient(100deg, rgba(242,169,59,0.12), var(--surface-2) 70%);
  border-color: var(--line-amber); color: var(--text);
}
.flow-item[aria-selected="true"] .n { color: var(--amber); }
.flow-item[aria-selected="true"] .chev { opacity: 1; transform: none; }

.flow-detail {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-amber);
  border-radius: 16px;
  padding: 40px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.flow-detail::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: .5;
}
.flow-detail .sub {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber);
}
.flow-detail h3 { font-size: clamp(24px,2.6vw,30px); font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.flow-detail p { color: var(--text-2); font-size: 16px; margin-top: 16px; flex: 1; }
.flow-params {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.flow-params .pk { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.flow-params .pv { font-family: var(--font-mono); font-size: 14px; color: var(--text); margin-top: 8px; }
.flow-params .pv.hl { color: var(--amber); }
.flow-detail.swap { animation: swapIn .45s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* code block */
.codeblock {
  background: #0a0805; border: 1px solid var(--line-soft); border-radius: 12px;
  overflow: hidden; margin-top: 4px;
}
.codeblock .cb-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase;
}
.codeblock .cb-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.codeblock .cb-bar .d.a { background: var(--amber); }
.codeblock .cb-bar span:last-child { margin-left: auto; }
.codeblock pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--text-2);
}
.codeblock .k { color: var(--amber); }
.codeblock .s { color: #8fcaa0; }
.codeblock .n2 { color: #d9b06a; }

/* ============================================================
   SPECS + INTEGRATION (two-col band)
   ============================================================ */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.split-spec { grid-template-columns: 0.7fr 1.3fr; }
.spec-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 12px 32px; align-self: start;
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--text-2); font-size: 15px; }
.spec-row .v { font-family: var(--font-mono); font-size: 14px; color: var(--text); text-align: right; }
.spec-row .v.hl { color: var(--amber); }

.integ-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 28px; }
.integ {
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px;
  background: var(--surface); transition: border-color .3s, transform .3s var(--ease);
}
.integ:hover { border-color: var(--line-amber); transform: translateY(-2px); }
.integ h4 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.integ h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.integ .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.integ .tags span {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; letter-spacing: .03em;
}

/* ============================================================
   USE CASES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 12px; }
.case {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 36px 32px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.case:hover { border-color: var(--line-amber); transform: translateY(-3px); }
.case .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--amber); text-transform: uppercase; }
.case .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.case .big {
  position: absolute; top: 14px; right: 22px; font-family: var(--font-mono);
  font-size: 90px; font-weight: 600; color: rgba(242,169,59,0.07); line-height: 1;
}
.case h3 { font-size: 23px; font-weight: 600; margin-top: 22px; letter-spacing: -0.01em; }
.case p { margin-top: 14px; color: var(--text-2); font-size: 15.5px; }

/* ============================================================
   CTA / FORM
   ============================================================ */
.cta-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.cta-left h2 { font-size: clamp(32px,3.6vw,46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-top: 22px; }
.cta-left p { margin-top: 20px; color: var(--text-2); max-width: 420px; }
.cta-mail {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 15px; color: var(--amber);
  padding: 12px 18px; border: 1px solid var(--line-amber); border-radius: 10px;
  background: rgba(242,169,59,0.05);
}
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px;
  box-shadow: 0 40px 100px -50px rgba(0,0,0,0.8);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 9px;
}
.field label .req { color: var(--amber); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 14px 16px; color: var(--text);
  font-family: var(--font-sans); font-size: 15px; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--line-amber); background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.form-ok {
  display: none; margin-top: 16px; padding: 14px; border-radius: 10px;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3);
  color: #6ee7a0; font-family: var(--font-mono); font-size: 13px; text-align: center;
}
.form-ok.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line-soft); padding: 50px 0 60px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot .copy { color: var(--text-3); font-size: 13.5px; }
.foot .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-4); letter-spacing: .08em; display: flex; gap: 20px; }

/* ============================================================
   reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip .dot, .step .meta .live { animation: none; }
}

/* ============================================================
   LIGHT THEME  (toggle — layout identical, colors only)
   ============================================================ */
/* instant swap on toggle — never paint a half-transitioned state */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

html[data-theme="light"] {
  --bg:        #f7f2ea;
  --bg-1:      #f0e9dc;
  --surface:   #ffffff;
  --surface-2: #fbf6ed;
  --surface-3: #f4ecdd;

  --line:        rgba(120, 90, 35, 0.18);
  --line-soft:   rgba(60, 45, 20, 0.10);
  --line-amber:  rgba(176, 112, 28, 0.40);

  --amber:        #a86412;   /* deeper for legible accent text on light */
  --amber-bright: #e0951f;   /* button highlight */
  --amber-deep:   #7d4a08;
  --amber-glow:   rgba(168, 100, 18, 0.16);

  --text:   #241a0c;
  --text-2: #5c5040;
  --text-3: #897c66;
  --text-4: #b1a48d;
}

/* page wash */
html[data-theme="light"] body::before {
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(168,100,18,0.06), transparent 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(168,100,18,0.04), transparent 50%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 42%);
}

/* nav: light translucent bar */
html[data-theme="light"] .nav { background: rgba(247,242,234,0.80); border-bottom-color: var(--line-soft); }
html[data-theme="light"] .nav.scrolled { background: rgba(247,242,234,0.92); }
/* keep the emblem on a small dark badge so it always reads */
html[data-theme="light"] .brand-logo { background: #17120c; border-color: var(--line-amber); }

/* hero stays a cinematic dark band in both themes —
   re-anchor its palette tokens to the dark values so ALL hero text/accents stay light-on-dark */
html[data-theme="light"] .hero {
  --bg:        #0d0b08;
  --surface:   #17120c;
  --surface-2: #1d1810;
  --line:        rgba(245, 200, 120, 0.10);
  --line-soft:   rgba(255, 255, 255, 0.055);
  --line-amber:  rgba(242, 169, 59, 0.28);
  --amber:        #f2a93b;
  --amber-bright: #ffc560;
  --amber-deep:   #c47f24;
  --text:   #f4ede0;
  --text-2: #b6ab98;
  --text-3: #7d7263;
  --text-4: #564e43;
  background: #14110b;
}
/* keep the hero's ghost button light-on-dark (override the global light-theme ghost) */
html[data-theme="light"] .hero .btn-ghost { background: rgba(255,255,255,0.025); border-color: var(--line); color: var(--text); }
html[data-theme="light"] .hero .btn-ghost:hover { background: rgba(242,169,59,0.06); border-color: var(--line-amber); }
html[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(180deg, rgba(20,17,11,0.42), rgba(20,17,11,0.42)),
    linear-gradient(96deg, #14110b 0%, #14110b 18%, rgba(20,17,11,0.92) 36%, rgba(20,17,11,0.62) 52%, rgba(20,17,11,0.28) 68%, rgba(20,17,11,0.12) 82%),
    linear-gradient(0deg, #14110b 1%, transparent 28%),
    linear-gradient(180deg, rgba(20,17,11,0.85) 0%, transparent 18%);
}

/* ghost button on light */
html[data-theme="light"] .btn-ghost { background: rgba(60,45,20,0.03); border-color: rgba(120,90,35,0.22); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(168,100,18,0.08); border-color: var(--line-amber); }

/* soften the heavy drop shadows meant for dark */
html[data-theme="light"] .form-card { box-shadow: 0 30px 70px -45px rgba(60,40,15,0.45); }
html[data-theme="light"] .eye-frame,
html[data-theme="light"] .case { box-shadow: 0 18px 50px -40px rgba(60,40,15,0.4); }

/* code block stays dark in both themes (reads as a terminal) — force light text */
html[data-theme="light"] .codeblock { border-color: rgba(60,45,20,0.14); }
html[data-theme="light"] .codeblock pre { color: #c8bba6; }
html[data-theme="light"] .codeblock .cb-bar { color: #9a8d76; border-bottom-color: rgba(255,255,255,0.08); }
html[data-theme="light"] .codeblock .k { color: #e0951f; }

/* watermark numerals a touch stronger so they read on white */
html[data-theme="light"] .case .big { color: rgba(168,100,18,0.09); }

/* theme toggle button */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255,255,255,0.025); color: var(--text-2);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--line-amber); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-theme="light"] .theme-toggle { background: rgba(60,45,20,0.03); }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* language switcher */
.lang-toggle {
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 15px; flex: none;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255,255,255,0.025); color: var(--text-2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; font-weight: 600;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  text-decoration: none;
}
.lang-toggle:hover { border-color: var(--line-amber); color: var(--text); background: rgba(242,169,59,0.06); }
html[data-theme="light"] .lang-toggle { background: rgba(60,45,20,0.03); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* nav items need ~1200px to fit without wrapping — switch to burger a bit before the
   general 1100px layout breakpoint so the bar never overflows on narrow laptop widths */
@media (max-width: 1260px) {
  .nav-links { display: none; }
  .nav-pdf { display: none; }
  .nav-demo { display: none; }
  .nav-burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,0.025); color: var(--text); cursor: pointer; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-pdf { display: none; }
  .nav-demo { display: none; }
  .nav-burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,0.025); color: var(--text); cursor: pointer; }
  .hero { min-height: auto; padding: 110px 0 80px; }
  .hero-bg img { object-position: 64% center; }
  .about-top { grid-template-columns: 1fr; gap: 32px; }
  .pipe { grid-template-columns: repeat(2,1fr); }
  .flow { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .split, .split-spec { grid-template-columns: 1fr; gap: 40px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  :root { --gut: 20px; }
  .band { padding: 76px 0; }
  .hero { padding: 92px 0 64px; }
  .hero-scrim {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(13,11,8,0.5) 32%, rgba(13,11,8,0.86) 100%),
      linear-gradient(95deg, rgba(13,11,8,0.85), rgba(13,11,8,0.35));
  }
  html[data-theme="light"] .hero-scrim {
    background:
      linear-gradient(180deg, #14110b 0%, rgba(20,17,11,0.5) 32%, rgba(20,17,11,0.86) 100%),
      linear-gradient(95deg, rgba(20,17,11,0.85), rgba(20,17,11,0.35));
  }
  .hero-bg img { object-position: 60% 30%; }
  .hero-proof { grid-template-columns: 1fr; gap: 22px; width: 100%; }
  .proof-item .lab { max-width: none; }
  .stat-row { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .flow-detail { padding: 28px; }
  .flow-params { grid-template-columns: 1fr; }
  .integ-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  /* spec rows: stack key over value, left-aligned, so nothing wraps awkwardly */
  .spec-card { padding: 6px 22px; }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 5px; padding: 17px 0; }
  .spec-row .v { text-align: left; }
}
