:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #151515;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --line: rgba(255,255,255,.12);
  --red: #ed0711;
  --red-soft: rgba(237,7,17,.18);
  --green: #3ee27b;
  --green-soft: rgba(62,226,123,.13);
  --amber: #ffb74a;
  --amber-soft: rgba(255,183,74,.14);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 76% 8%, rgba(237,7,17,.13), transparent 30rem), linear-gradient(180deg, #0a0a0a 0%, #070707 100%);
  color: var(--text);
  font-family: var(--font-head);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 54px 54px; }
.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); background: rgba(10,10,10,.84); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 56px); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand em { color: var(--muted); font-style: normal; font-family: var(--font-mono); font-size: 11px; margin-left: 8px; letter-spacing: .16em; }
.brand-mark { width: 9px; height: 9px; background: var(--red); border-radius: 50%; box-shadow: 0 0 24px var(--red); }
nav { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
nav a:hover { color: var(--text); }
.ghost { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
main { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }
.hero { display: flex; flex-direction: column; justify-content: center; padding: 58px 0 28px; border-bottom: 1px solid var(--line); }
.hero.compact { min-height: 26vh; }
.eyebrow, .section-label { font-family: var(--font-mono); color: var(--red); font-size: 12px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(48px, 9vw, 112px); line-height: .88; letter-spacing: -.065em; max-width: 1040px; margin: 14px 0 6px; }
h2 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1; letter-spacing: -.035em; margin: 8px 0 18px; }
.muted { color: var(--muted); line-height: 1.45; margin-bottom: 0; }
.grid { display: grid; gap: 16px; margin: 18px 0; }
.two { grid-template-columns: 1.35fr .85fr; }
.four { grid-template-columns: repeat(4, 1fr); }
.lane-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0 18px; }
.panel, .metric, .lane-card { background: linear-gradient(180deg, rgba(255,255,255,.046), rgba(255,255,255,.018)); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.lane-card { min-height: 232px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.lane-card:after { content: ""; position: absolute; inset: auto 18px 18px auto; width: 52px; height: 52px; border-radius: 50%; opacity: .18; background: var(--state-colour, #555); filter: blur(18px); }
.lane-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lane-card h3 { margin: 12px 0 10px; font-size: 28px; letter-spacing: -.04em; }
.lane-card p { color: #dedede; line-height: 1.38; margin: 0; }
.signal { margin-top: 20px; font-family: var(--font-mono); color: var(--muted); font-size: 11px; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 9px; border-radius: 999px; color: var(--muted); }
.tag.ok, .severity.ok { color: var(--green); border-color: rgba(62,226,123,.32); background: var(--green-soft); }
.tag.watch, .severity.watch, .severity.gate { color: var(--amber); border-color: rgba(255,183,74,.35); background: var(--amber-soft); }
.tag.bad, .tag.blocker, .severity.blocker, .severity.bad { color: #ff9096; border-color: rgba(237,7,17,.42); background: var(--red-soft); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #555; }
.dot.ok { background: var(--green); box-shadow: 0 0 20px rgba(62,226,123,.55); }
.dot.watch { background: var(--amber); box-shadow: 0 0 20px rgba(255,183,74,.55); }
.dot.bad, .dot.blocker, .dot.gate { background: var(--red); box-shadow: 0 0 20px rgba(237,7,17,.55); }
.metric span, .metric small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.metric strong { display: block; font-size: clamp(30px, 4.8vw, 56px); letter-spacing: -.055em; margin: 8px 0 8px; overflow-wrap: anywhere; }
#conversionState { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.035em; word-break: keep-all; }
.priority-panel { min-height: 360px; }
.incident-list, .stack, .file-list, .timeline, .bar-stack { display: grid; gap: 12px; }
.incident, .stack div, .file-list div, .timeline div { border: 1px solid var(--line); background: rgba(0,0,0,.2); border-radius: 16px; padding: 14px; color: #ddd; }
.incident { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; }
.severity { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); padding: 7px 8px; border-radius: 999px; text-align: center; }
.incident h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.02em; }
.incident p, .timeline p { margin: 3px 0; color: var(--muted); line-height: 1.38; }
.stack strong, .timeline strong, .file-list strong { color: var(--text); }
.compact-stack div { font-size: 13px; line-height: 1.45; color: var(--muted); }
pre { white-space: pre-wrap; background: #070707; border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-family: var(--font-mono); color: #e7e7e7; font-size: 12px; line-height: 1.55; }
.bar { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(0,0,0,.18); }
.bar-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.bar-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); border-radius: 99px; }
.bottom-grid { margin-bottom: 42px; }
@media (max-width: 980px) { nav { display:none; } .lane-grid, .two, .four { grid-template-columns: 1fr; } .topbar { gap: 14px; } .brand em { display:none; } .incident { grid-template-columns: 1fr; } }
