:root {
  --bg: #060606;
  --panel: #0c0c0c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1f1ef;
  --muted: #9b9b97;
  --faint: #626260;
  --red: #e5232b;
  --red-2: #ff3b3b;
  /* second tone: assets, recorded traffic, verified and done states */
  --tone: #6ec6e6;
  --tone-dim: rgba(110, 198, 230, .5);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--bg) radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px; }
a { color: inherit; }
img { display: block; }
::selection { background: var(--red); color: #fff; }
main { overflow-x: clip; }
.wrap { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; margin: 0; }
h3 { margin: 0 0 6px; font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; }
p { margin: 0; }
.red { color: var(--red-2); }

/* nav: full-width bar */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(6,6,6,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--red) 0 120px, transparent 120px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark { font: 700 19px/1 var(--display); letter-spacing: -0.03em; }
.ver { font: 400 12px var(--mono); color: var(--faint); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { display: flex; gap: 7px; align-items: baseline; color: #c4c4c0; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a span { font: 500 10.5px var(--mono); color: var(--red-2); }
.nav-links a:hover { color: #fff; }

/* buttons: squared, not pills */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 6px; font: 600 15px var(--display); text-decoration: none; letter-spacing: -0.005em; transition: background .2s, transform .2s var(--ease), border-color .2s; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-quiet { border: 1px solid var(--line-2); color: var(--text); }
.btn-quiet:hover { border-color: rgba(255,255,255,.45); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* hero: asymmetric split */
.hero { position: relative; padding: 96px 0 112px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(229,35,43,.18), transparent); pointer-events: none; }
.hero-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.tag-line { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.sq { width: 8px; height: 8px; background: var(--red); }
h1 { font-size: clamp(44px, 6.4vw, 86px); line-height: 1; }
.cursor { display: inline-block; width: .5em; height: .1em; margin-left: .08em; background: var(--red-2); vertical-align: baseline; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { margin-top: 28px; max-width: 540px; font-size: 18px; color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.mini div { padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.mini div:last-child { border-right: 0; margin-right: 0; }
.mini dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.mini dd { margin: 4px 0 0; font-size: 14px; }

/* HUD panel around the graph */
.hud { position: relative; margin: 0; aspect-ratio: 1 / 1; border: 1px solid var(--line); background: rgba(10,10,10,.6); }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--red-2); border-style: solid; border-width: 0; }
.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.hud-top, .hud-bottom { position: absolute; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 16px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--faint); z-index: 2; }
.hud-top { top: 14px; }
.hud-bottom { bottom: 14px; justify-content: flex-start; gap: 22px; text-transform: uppercase; }
.rec { color: var(--red-2); animation: blink 2s steps(1) infinite; }
.hud-bottom i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 0; }
.k-int { border: 1px solid var(--red-2); border-radius: 2px; }
.k-ast { border-radius: 50%; background: var(--tone); }
.k-fnd { border-radius: 50%; background: var(--red-2); }
.hero-graph { position: absolute; inset: 0; width: 100%; height: 100%; }

/* graph motion */
.hero-graph .orbit { transform-origin: 500px 500px; animation: spin 160s linear infinite; }
.hero-graph .orbit-rev { transform-origin: 500px 500px; animation: spin 220s linear infinite reverse; }
.hero-graph .radar { transform-origin: 500px 500px; animation: spin 9s linear infinite; }
.hero-graph .flow { stroke-dasharray: 3 9; animation: dash 2s linear infinite; }
.hero-graph .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
.hero-graph .hit-node { animation: node 9s linear infinite; }
.hero-graph .hit-ring { transform-box: fill-box; transform-origin: center; animation: ring 9s ease-out infinite; }
.hero-graph .hit-edge { animation: edge 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes node { 0% { fill-opacity: 1; } 22%, 100% { fill-opacity: .6; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 20%, 100% { transform: scale(3.4); opacity: 0; } }
@keyframes edge { 0% { stroke-opacity: .4; } 25%, 100% { stroke-opacity: .07; } }

/* sections */
.section { padding: 128px 0; border-bottom: 1px solid var(--line); }
.band { background: linear-gradient(180deg, rgba(229,35,43,.06), transparent 60%), var(--bg); }
.head { max-width: 700px; }
.num-label { margin-bottom: 18px; font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
.sub { margin-top: 20px; max-width: 560px; color: var(--muted); font-size: 17px; }

/* engagement: mission-control panel */
.mc { margin-top: 56px; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, #0d0d0d, #080808); overflow: hidden; box-shadow: 0 40px 90px -50px rgba(229,35,43,.55); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.mc-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.mc-k { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--red-2); }
.mc-id b { font: 600 17px var(--display); }
.mc-goal { font: 400 12.5px var(--mono); color: var(--faint); }
.mc-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(229,35,43,.5); border-radius: 4px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); }
.mc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(1) infinite; }
.mc-status.done { color: var(--tone); border-color: var(--tone-dim); }
.mc-status.done::before { animation: none; }
.mc-progress { height: 2px; background: var(--line); }
.mc-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-2)); transition: width .6s var(--ease); }
.mc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.mc-stats div { padding: 16px 22px; border-right: 1px solid var(--line); }
.mc-stats div:last-child { border-right: 0; }
.mc-stats dt { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mc-stats dd { margin: 6px 0 0; font: 600 28px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mc-stats dd small { font-size: 16px; color: var(--faint); margin-left: 2px; }
#st-find.hot { color: var(--red-2); }
.mc-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; min-height: 330px; }
.mc-col { padding: 18px 22px 22px; border-right: 1px solid var(--line); min-width: 0; }
.mc-col:last-child { border-right: 0; }
.mc-h { margin-bottom: 14px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 18px; width: 1px; background: var(--line-2); }
.steps li { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 14px; padding: 0 0 20px; }
.steps b { display: block; font-size: 14px; font-weight: 600; color: #8a8a86; transition: color .3s; }
.steps small { font: 400 11.5px var(--mono); color: var(--faint); }
.st { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 4px; border-radius: 50%; background: #0a0a0a; border: 1.5px solid #3b3b3b; transition: all .3s; }
.steps li.run b, .steps li.done b { color: var(--text); }
.steps li.run .st { border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(255,59,59,.15); animation: blink 1s steps(1) infinite; }
.steps li.done .st { border-color: var(--tone); background: var(--tone); }
.mc-graph svg { display: block; width: 100%; height: auto; }
.mc-graph line { stroke: rgba(255,255,255,.18); stroke-width: 1; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw .7s var(--ease) forwards; }
.mc-graph line.hot { stroke: var(--red-2); stroke-width: 1.4; }
.mc-graph .n { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .45s var(--ease) forwards; }
.mc-graph text { font: 500 9px var(--mono); fill: #8a8a86; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.mc-graph .vpulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: #cfcfcb; animation: in .35s var(--ease); }
.feed li:nth-child(n+5) { opacity: .45; }
.feed li:nth-child(n+7) { display: none; }
.feed .who { display: block; margin-bottom: 2px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.who.plan { color: var(--red-2); } .who.work { color: #d9d9d5; } .who.http { color: var(--tone); } .who.find { color: #fff; }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }
.mc-find { display: none; margin: 0; padding: 20px 22px 22px; border-top: 1px solid rgba(229,35,43,.45); background: linear-gradient(90deg, rgba(229,35,43,.14), transparent 70%); animation: in .5s var(--ease); }
.mc-find.show { display: block; }
.mc-find-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.mc-find-head b { font: 600 17px var(--display); }
.sev { padding: 3px 8px; border-radius: 3px; background: var(--red); font: 600 10.5px var(--mono); letter-spacing: .1em; color: #fff; }
.mc-find .ok { font: 500 11px var(--mono); color: var(--tone); text-transform: uppercase; letter-spacing: .12em; }
.mc-find p { color: var(--muted); font-size: 14px; }
.ev { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.ev li { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 4px; font: 400 12px var(--mono); color: #d6d6d2; background: rgba(0,0,0,.3); }

/* method rail */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.sticky { position: sticky; top: 120px; }
.rail { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line-2); }
.rail li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 22px 0 34px; }
.rail li::before { content: ""; position: absolute; left: -33px; top: 28px; width: 9px; height: 9px; background: var(--bg); border: 1.5px solid var(--red-2); transform: rotate(45deg); }
.rail .k { font: 600 12px var(--mono); color: var(--red-2); padding-top: 3px; }
.rail p, .guard p, .spec-table p { color: var(--muted); font-size: 15px; }

/* guardrails grid */
.guard { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.guard div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.guard div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.guard h3 { display: flex; align-items: center; gap: 10px; }
.guard h3::before { content: ""; width: 6px; height: 6px; background: var(--red-2); }

/* console table */
.spec-table { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.spec-table li { display: grid; grid-template-columns: 40px 230px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); transition: background .25s; }
.spec-table li:hover h3 { color: var(--red-2); }
.spec-table h3 { margin: 0; font-size: 16px; transition: color .2s; }
.ix { font: 500 12px var(--mono); color: var(--faint); }

/* cta */
.cta { padding: 120px 0; background: radial-gradient(ellipse 60% 100% at 85% 100%, rgba(229,35,43,.25), transparent 70%); }
.cta-row-wide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.cta h2 { font-size: clamp(34px, 4.8vw, 62px); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-actions .btn { margin-bottom: 8px; }
.mail { font: 400 13.5px var(--mono); color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.mail:hover { color: #fff; border-color: #fff; }

/* footer */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.footer .wordmark { font-size: 16px; }
.fine { color: var(--faint); font-size: 13px; }
.fine a { color: var(--muted); text-decoration: none; }
.fine a:hover { color: #fff; }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.rail .reveal:nth-child(2) { transition-delay: .06s; } .rail .reveal:nth-child(3) { transition-delay: .12s; }
.rail .reveal:nth-child(4) { transition-delay: .18s; } .rail .reveal:nth-child(5) { transition-delay: .24s; }

@media (max-width: 1040px) {
  .nav-links, .ver { display: none; }
  .hero-row, .split, .cta-row-wide { grid-template-columns: 1fr; gap: 48px; }
  .hud { max-width: 560px; }
  .sticky { position: static; }
  .mc-grid { grid-template-columns: 1fr 1fr; }
  .mc-graph { grid-column: 1 / -1; order: -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .mc-graph svg { max-width: 460px; margin: 0 auto; }
  .guard { grid-template-columns: 1fr 1fr; }
  .guard div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .guard div:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .spec-table { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 80px; }
  .section, .cta { padding: 88px 0; }
  .mini { grid-template-columns: 1fr; }
  .mini div { border-right: 0; margin-right: 0; padding-right: 0; }
  .mc-top { flex-direction: column; align-items: flex-start; padding: 16px; }
  .mc-stats { grid-template-columns: 1fr 1fr; }
  .mc-stats div { padding: 14px 16px; }
  .mc-stats div:nth-child(2) { border-right: 0; }
  .mc-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mc-stats dd { font-size: 22px; }
  .mc-grid { grid-template-columns: 1fr; }
  .mc-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .mc-find { padding: 16px; }
  .guard { grid-template-columns: 1fr; }
  .guard div, .guard div:nth-child(2n) { padding: 24px 0; border-left: 0; }
  .spec-table li { grid-template-columns: 28px 1fr; }
  .spec-table li p { grid-column: 2; }
  .hud-bottom { gap: 14px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-graph *, .cursor, .rec, .steps li.run .st, .mc-status::before { animation: none !important; }
  .mc-graph line, .mc-graph .n { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
#st-req { color: var(--tone); }
