/* Agent Antivirus: console windows over digital rain. One stylesheet for every page. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); }
@font-face { font-family: "M PLUS 1 Code"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/m-plus-1-code-katakana-500.woff2") format("woff2"); unicode-range: U+30A0-30FF; }

:root {
  color-scheme: dark;
  --void: #000a02;
  --panel: rgba(0, 17, 6, .86);
  --panel-solid: #00140a;
  --line: #135f2a;
  --line-bright: #1f9c45;
  --phosphor: #3dff7a;
  --phosphor-soft: #8dffb0;
  --text: #bdf7cb;
  --dim: #6db683;
  --alert: #ff5257;
  --amber: #ffd34d;
  --display: "Chakra Petch", "Eurostile", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --glow: 0 0 18px rgba(61, 255, 122, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--void); }
body { margin: 0; min-height: 100vh; background: var(--void); color: var(--text); font: 400 1rem/1.7 var(--mono); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--void); }
::selection { background: var(--phosphor); color: #001a07; }
img, svg { max-width: 100%; }

canvas.layer { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#rain { z-index: 0; opacity: .5; }
body[data-rain="lite"] #rain { opacity: .26; }
#fx { z-index: 1; }
.scan { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.page { position: relative; z-index: 3; display: flex; flex-direction: column; min-height: 100vh; }
.page > main { flex: 1; }

a { color: var(--phosphor); text-underline-offset: 3px; }
a:hover { color: var(--phosphor-soft); }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--phosphor); color: #001a07; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--phosphor); margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 700; text-transform: uppercase; letter-spacing: .015em; text-shadow: 0 0 24px rgba(61, 255, 122, .45), 0 0 2px rgba(61, 255, 122, .9); }
h1.page-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; font-weight: 700; text-shadow: var(--glow); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
code { font-family: var(--mono); color: var(--phosphor-soft); font-size: .92em; }
.prompt { color: var(--dim); font-family: var(--mono); font-size: .92rem; overflow-wrap: anywhere; }
.prompt::before { content: "> "; color: var(--phosphor); }
.lead { font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 38em; }
.dim { color: var(--dim); }
.small { font-size: .86rem; }
.stack { display: grid; gap: 14px; align-content: start; }
.stack-lg { display: grid; gap: 22px; align-content: start; }
.more { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; text-decoration: none; }
.more::after { content: "->"; }
.more:hover { text-decoration: underline; }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-bright); color: var(--dim); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; white-space: nowrap; }
.tag.warn { border-color: rgba(255, 211, 77, .6); color: var(--amber); }
.tag.hot { border-color: rgba(255, 82, 87, .7); color: #ff9a9d; }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(0, 8, 2, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--phosphor); font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; }
.brand:hover { color: var(--phosphor); }
.brand svg { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 6px rgba(61, 255, 122, .55)); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--phosphor); text-shadow: 0 0 10px rgba(61, 255, 122, .6); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--phosphor); text-underline-offset: 7px; }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor); }
.nav .nav-cta { display: none; }
.menu-btn { display: none; margin-left: auto; min-height: 40px; padding: 0 12px; background: transparent; border: 1px solid var(--line-bright); color: var(--phosphor); font: 600 .85rem/1 var(--mono); letter-spacing: .06em; cursor: pointer; }
.menu-btn:hover { background: rgba(61, 255, 122, .08); }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font: 600 .95rem/1 var(--mono); text-decoration: none; cursor: pointer; border: 1px solid var(--phosphor); border-radius: 2px; transition: background-color .15s, color .15s, box-shadow .15s; }
.btn-solid { background: var(--phosphor); color: #001a07; box-shadow: 0 0 22px rgba(61, 255, 122, .35); }
.btn-solid:hover { background: var(--phosphor-soft); color: #001a07; box-shadow: 0 0 30px rgba(61, 255, 122, .55); }
.btn-ghost { background: rgba(0, 20, 7, .6); color: var(--phosphor); }
.btn-ghost:hover { background: rgba(61, 255, 122, .1); color: var(--phosphor); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- heroes ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.panel-copy { display: grid; gap: 24px; padding: clamp(18px, 2.5vw, 28px); background: linear-gradient(90deg, rgba(0, 10, 2, .94), rgba(0, 10, 2, .82)); border-left: 2px solid var(--phosphor); min-width: 0; }
.rain-note { color: var(--dim); font-size: .82rem; }
.rain-note b { color: var(--alert); font-weight: 600; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero .hero-grid { align-items: start; }
.page-hero.solo .hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }

/* ---------- console windows ---------- */
.console { background: var(--panel); border: 1px solid var(--line-bright); box-shadow: 0 0 0 1px rgba(61, 255, 122, .08), 0 0 40px rgba(61, 255, 122, .12), inset 0 0 60px rgba(0, 0, 0, .5); min-width: 0; }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--dim); min-height: 38px; }
.console-bar .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lights { display: flex; gap: 6px; flex: none; }
.lights i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-bright); }
.console-body { padding: clamp(16px, 2vw, 22px); display: grid; gap: 18px; }
.console-foot { padding: 10px clamp(16px, 2vw, 22px) 14px; border-top: 1px dashed var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.status[data-state="live"] { color: var(--phosphor); }
.status[data-state="live"] i { background: var(--phosphor); box-shadow: 0 0 10px var(--phosphor); animation: blink 1.6s steps(2, start) infinite; }
.status[data-state="demo"] { color: var(--amber); }
.status[data-state="demo"] i { background: var(--amber); }
@keyframes blink { to { visibility: hidden; } }
.note { color: var(--dim); font-size: .78rem; line-height: 1.55; }
.note::before { content: "# "; }

.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.counter { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: rgba(0, 10, 3, .6); }
.counter.big { grid-column: 1 / -1; }
.counter > span { color: var(--dim); font-size: .78rem; }
.counter b { font-family: var(--display); font-weight: 700; font-size: 1.85rem; line-height: 1.1; color: var(--phosphor); text-shadow: 0 0 14px rgba(61, 255, 122, .45); overflow-wrap: anywhere; }
.counter.big b { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.counter small { color: var(--dim); font-family: var(--mono); font-size: .8rem; font-weight: 400; text-shadow: none; }
.bars { display: grid; gap: 6px; }
.bars svg { width: 100%; height: 56px; display: block; }
.bars .legend { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); font-size: .76rem; }
.log { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .82rem; min-height: 9.2em; align-content: start; }
.log li { display: grid; grid-template-columns: 4.2em 6.4em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.log .t { color: var(--dim); font-variant-numeric: tabular-nums; }
.log .msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .code { color: var(--dim); }
.log .empty { grid-template-columns: 1fr; color: var(--dim); }
.vb { font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.vb.block, .vb.quarantine { color: var(--alert); text-shadow: 0 0 8px rgba(255, 82, 87, .5); }
.vb.redact, .vb.require_approval { color: var(--amber); }
.vb.warn, .vb.log { color: var(--text); }
.vb.allow { color: var(--dim); }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 92px); }
.section.tight { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 48rem; margin-bottom: clamp(26px, 4vw, 44px); padding: 16px 18px; background: rgba(0, 10, 2, .8); border-left: 2px solid var(--line-bright); }
.section-head p:not(.prompt) { font-size: 1.02rem; }
.section-foot { margin-top: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.card { display: grid; gap: 10px; align-content: start; padding: 18px 18px 20px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.card p { font-size: .92rem; }
.card ul { padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; }
.card li::marker { color: var(--phosphor); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* exhibits and case files */
.exhibits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.exhibit .console-body { gap: 12px; }
.where { color: var(--dim); font-size: .88rem; }
.payload { margin: 0; padding: 12px 14px; background: rgba(40, 0, 2, .55); border: 1px dashed rgba(255, 82, 87, .6); color: #ffc4c6; font: 400 .9rem/1.55 var(--mono); overflow-wrap: anywhere; white-space: pre-wrap; }
.verdict-line { color: var(--text); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.verdict-line .det { color: var(--dim); }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case { scroll-margin-top: 90px; }
.case .console-body { gap: 12px; }
.case-code { font-family: var(--display); font-weight: 700; color: var(--phosphor); font-size: 1.1rem; letter-spacing: .04em; }
.case h2 { font-size: 1.3rem; text-shadow: none; }
.case .how { font-size: .9rem; }
.case .also { font-size: .84rem; color: var(--dim); }
.case dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: .84rem; }
.case dt { color: var(--dim); }
.case dd { margin: 0; overflow-wrap: anywhere; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 6px 10px; border: 1px solid var(--line); background: rgba(0, 10, 2, .8); text-decoration: none; font-size: .85rem; color: var(--text); }
.jump a:hover { border-color: var(--phosphor); color: var(--phosphor); }
.jump b { color: var(--phosphor); font-family: var(--display); margin-right: 6px; }

/* where AgentAV sits */
.map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.map-col { display: grid; gap: 10px; align-content: start; }
.map-col h3 { font-size: .95rem; color: var(--dim); font-family: var(--mono); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.flowitem { display: grid; gap: 2px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.flowitem b { color: var(--phosphor); font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.flowitem span { font-size: .82rem; color: var(--dim); }
.core { display: grid; place-content: center; text-align: center; gap: 10px; padding: 26px 18px; border: 1px solid var(--phosphor); background: radial-gradient(circle at 50% 40%, rgba(61, 255, 122, .16), rgba(0, 10, 2, .92) 70%); box-shadow: 0 0 40px rgba(61, 255, 122, .2), inset 0 0 0 6px rgba(0, 10, 2, .9), inset 0 0 0 7px rgba(61, 255, 122, .4); }
.core svg { width: 64px; height: 64px; margin-inline: auto; filter: drop-shadow(0 0 10px rgba(61, 255, 122, .6)); }
.core b { font-family: var(--display); color: var(--phosphor); font-size: 1.2rem; letter-spacing: .06em; }
.core span { font-size: .84rem; }

/* pipeline */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.flow li { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px 18px 22px; background: var(--panel); border: 1px solid var(--line); counter-increment: s; min-width: 0; }
.flow li + li { border-left: 0; }
.flow li::before { content: "0" counter(s); font-family: var(--display); font-weight: 700; color: var(--phosphor); font-size: 1.6rem; line-height: 1; text-shadow: 0 0 14px rgba(61, 255, 122, .5); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 31px; right: -7px; width: 12px; height: 12px; background: var(--void); border-top: 1px solid var(--phosphor); border-right: 1px solid var(--phosphor); transform: rotate(45deg); z-index: 1; }
.flow p { font-size: .9rem; }

/* verdict ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ladder li { --fill: 12%; --c: var(--phosphor); display: grid; gap: 8px; align-content: start; padding: 14px 12px 16px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.ladder .lv-warn { --fill: 28%; }
.ladder .lv-redact { --fill: 45%; --c: var(--amber); }
.ladder .lv-hold { --fill: 62%; --c: var(--amber); }
.ladder .lv-block { --fill: 82%; --c: var(--alert); }
.ladder .lv-quarantine { --fill: 100%; --c: var(--alert); }
.ladder .meter { height: 6px; background: rgba(61, 255, 122, .12); position: relative; overflow: hidden; }
.ladder .meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--c); box-shadow: 0 0 10px var(--c); }
.ladder b { font-family: var(--display); color: var(--c); font-size: 1.05rem; }
.ladder span { font-size: .84rem; line-height: 1.5; }

/* OWASP list */
.asi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); margin: 0; }
.asi div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 4px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.asi div:nth-child(odd) { border-right: 1px solid var(--line); }
.asi div:nth-last-child(-n+2) { border-bottom: 0; }
.asi dt { grid-row: span 2; font-family: var(--display); font-weight: 700; }
.asi dt a { text-decoration: none; }
.asi dd { margin: 0; }
.asi dd.name { color: var(--phosphor); font-weight: 600; font-size: .95rem; }
.asi dd.how { color: var(--text); font-size: .86rem; }

/* code */
pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 500 .88rem/1.7 var(--mono); color: var(--text); tab-size: 4; }
pre code { color: inherit; font-size: inherit; }
pre .k { color: var(--phosphor); } pre .s { color: #ffe08a; } pre .c { color: var(--dim); } pre .f { color: #9dffbe; } pre .r { color: #ff8a8d; } pre .a { color: var(--amber); }
.code-wrap { position: relative; }
.copy { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 0 10px; background: rgba(0, 20, 7, .9); border: 1px solid var(--line-bright); color: var(--dim); font: 500 .75rem/1 var(--mono); cursor: pointer; }
.copy:hover { color: var(--phosphor); border-color: var(--phosphor); }
.term { font-size: .84rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.sensors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sensors li { display: grid; gap: 2px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); }
.sensors b { color: var(--phosphor); font-family: var(--display); font-weight: 700; }
.sensors span { font-size: .88rem; }
.sensors a { text-decoration: none; }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 10, 2, .6); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* session timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px 14px; padding: 0 0 18px; }
.timeline li::before { content: ""; position: absolute; left: calc(1.2em - 1px); top: 1.9em; bottom: 0; width: 1px; background: var(--line-bright); }
.timeline li:last-child::before { display: none; }
.timeline .step { grid-row: span 2; width: 2.4em; height: 2.4em; display: grid; place-content: center; border: 1px solid var(--line-bright); background: var(--panel-solid); font-family: var(--display); font-weight: 700; color: var(--phosphor); }
.timeline .alarm .step { border-color: var(--amber); color: var(--amber); }
.timeline b { color: var(--phosphor); font-weight: 600; }
.timeline .alarm b { color: var(--amber); }
.timeline span { font-size: .86rem; }

/* developer page */
.dev-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.toc { position: sticky; top: 88px; display: grid; gap: 4px; padding: 14px; background: var(--panel); border: 1px solid var(--line); font-size: .88rem; }
.toc b { color: var(--dim); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.toc a { text-decoration: none; color: var(--text); padding: 3px 0; }
.toc a:hover { color: var(--phosphor); }
.dev-block { display: grid; gap: 16px; padding-bottom: clamp(36px, 5vw, 56px); scroll-margin-top: 90px; }
.dev-block > header { display: grid; gap: 10px; padding: 14px 16px; background: rgba(0, 10, 2, .8); border-left: 2px solid var(--line-bright); }
.dev-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.dev-block p { max-width: 46rem; }
.fine { font-size: .82rem; color: var(--dim); }

/* live dashboard */
.dash { display: grid; gap: 18px; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line-bright); }
.dash-bar .meta { color: var(--dim); font-size: .84rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.kpi > span { color: var(--dim); font-size: .8rem; }
.kpi b { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: var(--phosphor); text-shadow: 0 0 14px rgba(61, 255, 122, .4); overflow-wrap: anywhere; }
.kpi b small { font-family: var(--mono); font-size: .9rem; font-weight: 400; color: var(--dim); text-shadow: none; }
.kpi.hero-kpi { grid-column: span 2; }
.kpi.hero-kpi b { font-size: clamp(2.8rem, 6vw, 4.2rem); }
.kpi.alert b { color: #ff8a8d; text-shadow: 0 0 14px rgba(255, 82, 87, .35); }
.chart-card .console-body { gap: 12px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:focus { outline: none; }
.chart .col { fill: #1fd35a; }
.chart .col.now { fill: var(--phosphor-soft); }
.chart .col.on { fill: var(--phosphor-soft); }
.chart .axis { stroke: #1a4a2a; stroke-width: 1; }
.chart .tick { fill: var(--dim); font: 400 11px var(--mono); }
.chart .mark { fill: var(--alert); }
.tooltip { position: absolute; z-index: 5; pointer-events: none; min-width: 9em; padding: 8px 10px; background: #00140a; border: 1px solid var(--line-bright); box-shadow: 0 6px 20px rgba(0, 0, 0, .6); font-size: .8rem; line-height: 1.5; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.tooltip strong { color: var(--phosphor); font-size: .95rem; display: block; }
.tooltip .tt-threat { color: #ff9a9d; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: .78rem; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.chart-legend .k-ev { background: #1fd35a; border-radius: 2px 2px 0 0; }
.chart-legend .k-th { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--alert); }
details.tv { font-size: .84rem; }
details.tv summary { cursor: pointer; color: var(--dim); }
details.tv summary:hover { color: var(--phosphor); }
details.tv .table-scroll { margin-top: 10px; max-height: 280px; overflow-y: auto; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.2em; gap: 12px; align-items: center; font-size: .86rem; }
.hbars .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .track { height: 12px; background: rgba(61, 255, 122, .06); position: relative; }
.hbars .fill { position: absolute; inset: 0 auto 0 0; background: #1fd35a; border-radius: 0 3px 3px 0; min-width: 3px; }
.hbars .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.empty-state { color: var(--dim); font-size: .86rem; padding: 6px 0; }
.hbars .empty-state { display: block; }
.heat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.heat a { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--line); background: rgba(0, 10, 3, .6); text-decoration: none; color: var(--text); min-width: 0; }
.heat a:hover { border-color: var(--phosphor); }
.heat b { font-family: var(--display); color: var(--dim); font-size: .92rem; }
.heat span { font-size: .8rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--dim); line-height: 1.1; text-align: right; }
.heat .h1 { border-color: var(--line-bright); background: rgba(31, 211, 90, .12); }
.heat .h2 { border-color: var(--phosphor); background: rgba(31, 211, 90, .24); }
.heat .h3 { border-color: var(--phosphor); background: rgba(61, 255, 122, .38); }
.heat .h1 b, .heat .h2 b, .heat .h3 b, .heat .h1 em, .heat .h2 em, .heat .h3 em { color: var(--phosphor); }
.dash-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: .86rem; }
.dash-log li { display: grid; grid-template-columns: 9.5em 6.8em minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.dash-log li:last-child { border-bottom: 0; }
.dash-log .t { color: var(--dim); font-variant-numeric: tabular-nums; }
.dash-log .msg { min-width: 0; }
.dash-log .msg small { display: block; color: var(--dim); font-size: .78rem; }
.dash-log .code { color: var(--dim); white-space: nowrap; }
.dash-log .empty { grid-template-columns: 1fr; color: var(--dim); }
.is-refreshing { opacity: .7; transition: opacity .2s; }

/* pilot */
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.days li { display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.days li + li { border-left: 0; }
.days .when { font-family: var(--display); font-weight: 700; color: var(--phosphor); font-size: 1.15rem; letter-spacing: .03em; }
.days p { font-size: .9rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 2.4em; font-size: .92rem; }
.checks li::before { content: "[+]"; position: absolute; left: 0; top: .1em; color: var(--phosphor); font-weight: 600; font-size: .82rem; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { color: var(--phosphor); font-size: .85rem; font-weight: 600; }
input, textarea, select { width: 100%; padding: 11px 12px; background: #000f05; border: 1px solid var(--line-bright); color: var(--text); font: 400 .95rem/1.4 var(--mono); border-radius: 0; caret-color: var(--phosphor); }
input::placeholder, textarea::placeholder { color: #3f7a52; }
input:focus, textarea:focus, select:focus { border-color: var(--phosphor); outline: none; box-shadow: 0 0 0 2px rgba(61, 255, 122, .25); }
textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--dim); font-size: .8rem; }
.form-done { color: var(--phosphor); border: 1px solid var(--line-bright); padding: 12px 14px; font-size: .9rem; }

/* call to action band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: clamp(20px, 3vw, 32px); background: linear-gradient(90deg, rgba(0, 24, 9, .95), rgba(0, 12, 4, .9)); border: 1px solid var(--phosphor); box-shadow: 0 0 40px rgba(61, 255, 122, .16); }
.band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.band p { margin-top: 8px; }

/* principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: p; }
.principles li { counter-increment: p; display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); font-family: var(--display); font-weight: 700; color: var(--dim); font-size: .95rem; }
.principles p { font-size: .92rem; }
.quote { margin: 0; padding: 22px 24px; border-left: 2px solid var(--phosphor); background: rgba(0, 14, 5, .9); }
.quote p { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--phosphor); text-shadow: var(--glow); }
.quote footer { margin-top: 10px; color: var(--dim); font-size: .86rem; }

/* 404 */
.lost { padding-block: clamp(60px, 12vw, 140px); }
.lost .code404 { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--alert); text-shadow: 0 0 30px rgba(255, 82, 87, .5); }

/* footer */
.foot { position: relative; z-index: 3; border-top: 1px solid var(--line); background: rgba(0, 8, 2, .94); padding-block: 36px 30px; color: var(--dim); font-size: .86rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand .brand { font-size: 1rem; }
.foot-brand .brand svg { width: 26px; height: 26px; }
.foot-col { display: grid; gap: 6px; align-content: start; }
.foot-col b { color: var(--text); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.foot-col a { color: var(--dim); text-decoration: none; }
.foot-col a:hover { color: var(--phosphor); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .dev-layout { grid-template-columns: minmax(0, 1fr); }
  .exhibits, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .flow, .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li + li, .days li + li { border-left: 1px solid var(--line); }
  .flow li:nth-child(2n)::after { display: none; }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map { grid-template-columns: minmax(0, 1fr); }
  .core { order: -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .toc b { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .top .cta { margin-left: auto; }
  .top .cta + .menu-btn { margin-left: 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 18px; background: rgba(0, 8, 2, .98); border-bottom: 1px solid var(--line-bright); box-shadow: 0 16px 30px rgba(0, 0, 0, .6); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 2px; font-size: 1rem; border-bottom: 1px dashed var(--line); }
  .nav a[aria-current="page"] { text-decoration: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 14px; border-bottom: 1px solid var(--phosphor); justify-content: center; color: #001a07; }
  .cases, .grid-2, .principles { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .flow, .asi, .days { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
  .asi div:nth-child(odd) { border-right: 0; }
  .asi div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log li { grid-template-columns: 3.6em 5.6em minmax(0, 1fr); }
  .log .code { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .kpi.hero-kpi { grid-column: 1 / -1; }
  .dash-log li { grid-template-columns: 5.2em minmax(0, 1fr); }
  .dash-log .vb { grid-row: 2; grid-column: 1; font-size: .78rem; }
  .dash-log .msg { grid-row: span 2; }
  .dash-log .code { display: none; }
  .hbars li { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 2em; gap: 8px; }
  .heat { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case dl { grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
  .case dd { margin-bottom: 6px; }
}
@media (max-width: 440px) {
  .top-in { gap: 10px; }
  .brand { font-size: .98rem; letter-spacing: .02em; gap: 9px; }
  .brand svg { width: 28px; height: 28px; }
  .top .cta { display: none; }
  .menu-btn { margin-left: auto !important; }
  .panel-copy { background: rgba(0, 10, 2, .95); }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status[data-state="live"] i { animation: none; }
  .btn, .is-refreshing { transition: none; }
}
@media (forced-colors: active) {
  .chart .col, .hbars .fill { fill: CanvasText; background: CanvasText; }
  .chart .mark { fill: Highlight; }
}
