:root {
  --bg: #0a0d12;
  --bg-2: #0f141b;
  --panel: #121922;
  --card: #151d27;
  --border: #253141;
  --border-hi: #34445a;
  --text: #e9eef4;
  --muted: #9aa7b6;
  --dim: #6c7a8b;
  --orange: #ff7a1a;
  --orange-2: #ff9a3d;
  --green: #3ddc84;
  --red: #ff4d4d;
  --blue: #3fa9ff;
  --radius: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(255,122,26,.08), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(63,169,255,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Icons */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 34px; height: 34px; color: var(--orange); }
.ic-xl { width: 40px; height: 40px; color: var(--blue); }
#i-bolt path { fill: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 6px 24px rgba(255,122,26,.3); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(255,122,26,.45); }
.btn-ghost { border-color: #cfd6df; color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,18,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.brand sup { font-size: .45em; font-weight: 500; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { white-space: nowrap; padding: 8px 12px; color: #d4dbe4; font-size: 14px; font-weight: 500; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--orange); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--border-hi); color: var(--text); border-radius: 8px; padding: 7px; cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: stretch; padding-block: 24px 20px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-art { position: relative; align-self: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hero-art img { width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(10,13,18,.55)); pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #cdd5df; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 sup { font-size: .3em; vertical-align: super; font-weight: 500; }
.tagline { margin: 10px 0 18px; font-size: clamp(20px, 2.3vw, 26px); font-weight: 700; line-height: 1.2; color: var(--orange); }
.lede { margin: 0 0 26px; color: #d5dce5; font-size: 15.5px; line-height: 1.55; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Cards & panels */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.panel { background: rgba(18,25,34,.75); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 18px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head.stacked { display: block; }
.panel-head h2 { font-size: 26px; font-weight: 700; padding-left: 16px; border-left: 4px solid var(--orange); display: flex; align-items: center; gap: 12px; }
.panel-head p { margin: 4px 0 0; color: #c6cfda; font-size: 14.5px; }
.panel-head.stacked p { padding-left: 20px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.stat { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.stat strong { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: #d4dbe4; font-size: 14px; }
.stat em { font-style: normal; font-size: 13px; }
.up, .down-good { color: var(--green); }
.bad { color: var(--red); }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cap { display: flex; gap: 18px; padding: 16px 18px; position: relative; transition: border-color .15s, transform .15s; }
.cap:hover { border-color: var(--orange); transform: translateY(-2px); }
.cap h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; padding-right: 24px; }
.cap p { margin: 0; color: #c3ccd7; font-size: 13.5px; line-height: 1.45; }
.cap .chev { position: absolute; top: 18px; right: 14px; color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split .panel { margin-top: 18px; min-width: 0; container-type: inline-size; }

/* Tabs & code */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: none; border: 0; border-bottom: 2px solid transparent; color: #cbd3dd;
  font: 500 14px Inter, sans-serif; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--orange); background: rgba(255,255,255,.03); }
.tabs button:hover { color: #fff; }
.code-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.code-grid.single { grid-template-columns: 1fr; }
.code, .code-card pre {
  margin: 0; font: 12px/1.65 var(--mono); color: #e3e8ee; overflow-x: auto;
}
.code { background: #0a0e14; border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.code-card { padding: 0; }
.code-card pre { padding: 12px 14px; }
.code-title { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font: 600 13px Inter, sans-serif; }
.code-title span { display: inline-flex; gap: 8px; align-items: center; }
.code-title .ic { color: var(--orange); }
.copy { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.copy:hover { color: #fff; }
.code .p { color: var(--green); font-weight: 600; }
.code .ok { color: var(--green); }
.code .o { color: var(--orange-2); }
.code .s { color: #f4d58d; }
.code .k { color: #7cc4ff; }
.code .m { color: #aab6c4; }

/* Live ops */
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 12px Inter, sans-serif; letter-spacing: .08em; color: var(--green); border: 1px solid var(--green); border-radius: 6px; padding: 3px 10px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ops-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.ops-left { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.health { display: flex; gap: 16px; align-items: center; }
.ring {
  --deg: calc(var(--pct) * 3.6deg);
  width: 124px; height: 124px; flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: conic-gradient(var(--green) var(--deg), #1e2a36 0);
  box-shadow: 0 0 24px rgba(61,220,132,.25);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ring > div { position: relative; }
.ring strong { display: block; font-size: 26px; font-weight: 800; }
.ring span { display: block; font-size: 11px; color: #cdd5df; line-height: 1.2; max-width: 80px; }
.svc { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 7px; font-size: 12.5px; }
.svc li { display: flex; align-items: center; gap: 8px; }
.svc .ic { width: 15px; height: 15px; color: var(--green); }
.svc b { margin-left: auto; color: var(--green); font-weight: 500; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); padding-top: 12px; }
.mini-stats > div { display: flex; gap: 8px; padding-inline: 8px; }
.mini-stats > div + div { border-left: 1px solid var(--border); }
.mini-stats .ic { color: var(--orange); width: 20px; height: 20px; margin-top: 4px; }
.mini-stats p { margin: 0; }
.mini-stats strong { display: block; font-size: 20px; }
.mini-stats span { display: block; font-size: 11.5px; color: #cdd5df; line-height: 1.25; }
.mini-stats em { font-style: normal; font-size: 11.5px; }
.stream { padding: 14px; min-width: 0; }
.stream h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.stream h3 .ic { color: var(--blue); }
.stream ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12px; }
.stream li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; animation: slidein .35s ease; }
.stream li span:last-child, .stream li { min-width: 0; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.stream time { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.tag { font: 700 10px Inter, sans-serif; letter-spacing: .04em; padding: 3px 6px; border-radius: 3px; text-align: center; min-width: 76px; }
.t-detect { background: #c62f2f; }
.t-analyze { background: #1f5fae; }
.t-automate { background: #d76516; }
.t-resolve { background: #1d8a4a; }
.t-comply { background: #2c63c5; }
.t-ingest { background: #31507a; }

/* Integrations */
.int-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.int { padding: 18px 12px; text-align: center; transition: border-color .15s, transform .15s; }
.int:hover { border-color: var(--blue); transform: translateY(-2px); }
.int .ic-xl { margin: 0 auto 10px; }
.int h3 { font-size: 18px; margin-bottom: 8px; }
.int p { margin: 0; font-size: 12.5px; color: #c3ccd7; line-height: 1.45; }

/* Footer */
.footer { margin-top: 40px; border-top: 1px solid var(--border); padding-block: 28px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; justify-content: space-between; }
.footer .brand { font-size: 18px; color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a:hover { color: #fff; }
.footer p { margin: 0; }

/* Profile */
.profile-top { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 12px; margin-bottom: 12px; }
.photo { margin: 0; position: relative; overflow: hidden; align-self: start; }
.photo img { width: 100%; height: auto; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font: 12px var(--mono); color: #d7dee7; background: linear-gradient(transparent, rgba(5,8,12,.92)); }
.photo figcaption span { color: var(--orange); text-transform: uppercase; letter-spacing: .1em; margin-right: 8px; }
.bio { padding: 20px 22px; background: radial-gradient(360px 180px at 0% 0%, rgba(255,122,26,.12), transparent 70%), var(--card); }
.bio-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.bio-head .avatar { width: 88px; height: 88px; margin: 0; flex: none; }
.bio-head .status-dot { right: 2px; bottom: 2px; width: 16px; height: 16px; }
.bio h4, .priorities h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bio > p { margin: 0 0 10px; font-size: 14px; color: #c9d2dc; }
.bio .principle { color: #fff; font-size: 15px; }
.bio .principle b { color: var(--orange); }
.bio blockquote { margin: 14px 0 8px; padding-left: 14px; border-left: 3px solid var(--orange); font-size: 17px; font-style: italic; }
.fine { margin: 14px 0 0; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.bio .fine { margin: 0 0 12px; }
.bio .badges { justify-content: flex-start; }
.ok-text { color: var(--green); }
.profile { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
.priorities { padding: 16px 20px; }
.priorities h4 small { font: 600 10px var(--mono); color: var(--orange); margin-left: 6px; letter-spacing: 0; }
.priorities ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; counter-reset: pr; }
.priorities ol li { counter-increment: pr; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.priorities ol li span::before { content: counter(pr) ". "; color: var(--dim); font-family: var(--mono); }
.priorities ol li b { font-family: var(--mono); color: var(--green); font-weight: 500; }
.priorities .bar::after { background: linear-gradient(90deg, #1d8a4a, var(--green)); }
.limits { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: #c3ccd7; }
.limits li::marker { color: var(--orange); }
.id-card { padding: 22px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: radial-gradient(260px 160px at 50% 0%, rgba(255,122,26,.16), transparent 70%), var(--card); }
.avatar { position: relative; width: 132px; height: 132px; margin-bottom: 6px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--orange); box-shadow: 0 0 0 6px rgba(255,122,26,.15), 0 10px 30px rgba(0,0,0,.5); }
.status-dot { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--card); box-shadow: 0 0 10px var(--green); }
.id-card h3 { font-size: 22px; }
.callsign { margin: 0; color: var(--orange); font-size: 13px; font-weight: 600; }
.onwatch { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); font-family: var(--mono); }
.onwatch i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.id-card blockquote { margin: 10px 0 6px; font-size: 16px; font-style: italic; color: #e6ebf1; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.badges span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-hi); color: #cfd7e1; background: rgba(255,255,255,.03); }
.dossier { margin: 0; padding: 6px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-content: start; }
.dossier > div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.dossier > div.wide { grid-column: 1 / -1; border-bottom: 0; }
.dossier dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 4px; }
.dossier dd { margin: 0; font-size: 14px; color: #e3e8ee; }
.dossier code, .changelog code, .cmd-table code, .h-code { font-family: var(--mono); font-size: 12px; background: #0a0e14; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--orange-2); }
.dossier dd code { display: inline-block; margin: 0 2px 4px 0; }
.attrs { padding: 16px 20px; }
.attrs h4, .roe h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.attrs ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.attrs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.attrs li b { font-family: var(--mono); color: var(--orange-2); font-weight: 500; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #1e2a36; position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.record { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.record div { background: #0f151d; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.record strong { display: block; font-size: 20px; }
.record span { font-size: 12px; color: var(--muted); }
.roe { margin-top: 14px; padding: 16px 20px; border: 1px dashed var(--border-hi); border-radius: var(--radius); }
.roe ol { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.roe li { counter-increment: r; font-size: 13px; color: #c3ccd7; line-height: 1.45; }
.roe li::before { content: "0" counter(r); display: block; font: 700 12px var(--mono); color: var(--orange); margin-bottom: 4px; }
.roe b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }

/* Architecture pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pipeline li { padding: 16px; position: relative; display: flex; flex-direction: column; }
.pipeline li:not(:last-child)::after { content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--orange); font-size: 22px; font-weight: 700; }
.step { font: 700 12px var(--mono); color: var(--orange); }
.pipeline h3 { font-size: 18px; margin-top: 2px; }
.pipeline .sub { margin: 2px 0 8px; font-size: 12px; color: var(--blue); font-weight: 600; }
.pipeline p { margin: 0 0 12px; font-size: 13px; color: #c3ccd7; line-height: 1.45; }
.pipeline dl { margin: auto 0 0; display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.pipeline dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.pipeline dt { color: var(--muted); }
.pipeline dd { margin: 0; font-family: var(--mono); color: #fff; text-align: right; }

/* Field manual */
.h-code { font-size: 13px; font-weight: 500; }
.sub-h { font-size: 15px; margin: 4px 0 12px; color: #fff; }
.manual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.manual > div { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700; font-size: 13px; }
.steps b { font-size: 14px; align-self: center; }
.steps .code { padding: 10px 12px; }
.levels { display: grid; gap: 8px; margin-bottom: 18px; }
.level { display: flex; gap: 14px; align-items: center; padding: 10px 14px; }
.level.active { border-color: var(--orange); background: linear-gradient(90deg, rgba(255,122,26,.1), transparent), var(--card); }
.lvl { font: 700 14px var(--mono); color: var(--orange); border: 1px solid var(--orange); border-radius: 6px; padding: 4px 8px; }
.level h4 { margin: 0; font-size: 14px; }
.level h4 em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--green); border: 1px solid var(--green); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.level p { margin: 2px 0 0; font-size: 12.5px; color: #c3ccd7; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.cmd-table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: #0f151d; padding: 10px 14px; }
.cmd-table td { padding: 10px 14px; border-top: 1px solid var(--border); color: #d3dae3; vertical-align: top; }
.cmd-table tr:hover td { background: rgba(255,255,255,.02); }
.cmd-table td:last-child code { color: #d7dee7; white-space: nowrap; }

/* Case files */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case { padding: 18px; display: flex; flex-direction: column; }
.case header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.case-id { font: 600 12px var(--mono); color: var(--muted); }
.sev { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; }
.sev-crit { background: rgba(255,77,77,.15); color: #ff7373; border: 1px solid rgba(255,77,77,.4); }
.sev-high { background: rgba(255,122,26,.15); color: var(--orange-2); border: 1px solid rgba(255,122,26,.4); }
.case h3 { font-size: 19px; margin-bottom: 6px; }
.case > p { margin: 0 0 14px; font-size: 13.5px; color: #c3ccd7; }
.timeline { list-style: none; margin: 0 0 14px; padding: 0 0 0 14px; border-left: 2px solid var(--border-hi); display: grid; gap: 8px; font-size: 13px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.timeline time { display: block; font: 11px var(--mono); color: var(--muted); }
.case footer { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.case footer strong { display: block; font-size: 20px; color: var(--green); }
.case footer span { font-size: 12px; color: var(--muted); }

/* Specs & changelog */
.specs { margin: 0; display: grid; }
.specs > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: #e3e8ee; }
.changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.changelog > li { padding-left: 16px; border-left: 2px solid var(--border-hi); }
.changelog > li:first-child { border-left-color: var(--orange); }
.ver { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ver time { font-size: 12px; color: var(--muted); }
.latest { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); border: 1px solid var(--green); border-radius: 4px; padding: 1px 6px; }
.changelog ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: #c3ccd7; display: grid; gap: 3px; }

/* Responsive */
@media (max-width: 1320px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; gap: 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1180px) {
  .profile { grid-template-columns: 1fr 1fr; }
  .dossier { grid-column: 1 / -1; }
  .record { grid-column: 2; grid-row: 2; align-self: start; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline li::after { display: none; }
  .roe ol { grid-template-columns: repeat(3, 1fr); }
  .manual { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .profile, .profile-top { grid-template-columns: 1fr; }
  .photo { max-width: 520px; width: 100%; justify-self: center; }
  .cases { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dossier { grid-template-columns: 1fr; }
  .pipeline, .roe ol { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
}
@container (max-width: 620px) {
  .code-grid, .ops-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .int-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-cta .btn-ghost { display: none; }
  .brand { font-size: 20px; }
  .stats, .cap-grid, .code-grid, .ops-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 16px; }
  .panel-head h2 { font-size: 22px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .health { flex-direction: column; align-items: stretch; }
  .ring { margin-inline: auto; }
}
@media (max-width: 400px) {
  .nav-cta .btn-primary { display: none; }
  .mini-stats { grid-template-columns: 1fr; gap: 10px; }
  .mini-stats > div + div { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Footer extras */
.footer-tag { width: 100%; color: #c9d2dc; }
.footer-tag span { color: var(--orange); }
.footer-fine { width: 100%; font-size: 12px; color: var(--dim); }

/* Modal & toast */
.modal { border: 1px solid var(--border-hi); border-radius: 14px; padding: 26px; width: min(480px, calc(100% - 32px)); background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(2,5,9,.75); backdrop-filter: blur(3px); }
.modal h3 { font-size: 21px; margin-bottom: 10px; }
.modal p { color: #c3ccd7; margin: 0 0 20px; }
.modal .modal-code { font: 600 12px var(--mono); color: var(--orange); margin-bottom: 6px; }
.modal .btn { border: 0; cursor: pointer; font-family: inherit; }
.nav-cta .btn { cursor: pointer; font-family: inherit; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--green); background: #0b2a1d; color: #bafcda; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* Hero copy spacing & bio status */
.hero .fine { margin-top: 18px; }
.status-h { margin-top: 20px !important; }
.now { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.now > div { background: #0f151d; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.now dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.now dd { margin: 2px 0 0; font-size: 13px; color: #e3e8ee; }
@media (max-width: 1240px) { .hero { grid-template-columns: 1fr; } .hero-art { align-self: auto; } }
@media (max-width: 640px) { .now { grid-template-columns: 1fr 1fr; } }
