/* Sasio — concept "Live system". Deep navy + graphite with one signal colour (mint) for healthy,
   amber and red for degraded. Inter for text and headings, the platform monospace for metrics and labels.
   Dark by default, light on the switch. Motion lives in site.js / system.js and is off for reduced motion. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #060a11; --surface: #0b111b; --soft: #080e17; --ink: #e6edf7; --ink-2: #9aabc2; --ink-3: #6f8098;
  --rule: rgb(150 180 220 / .09); --rule-2: rgb(150 180 220 / .17); --grid: rgb(150 180 220 / .05);
  --accent: #3ff0b8; --accent-2: #9cf8da; --accent-soft: rgb(63 240 184 / .08);
  --warn: #ffb648; --bad: #ff5a6a;
  --btn: #3ff0b8; --btn-ink: #03140e;
  --sys-ok: #3ff0b8; --sys-warn: #ffb648; --sys-bad: #ff5a6a; --sys-line: rgb(140 170 210 / .26); --sys-node: #0c1420; --sys-label: #7d90a9; --sys-mode: dark;
  --mark: #12202f; --mark-2: #3ff0b8;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6fa; --surface: #ffffff; --soft: #eaeff6; --ink: #0a1220; --ink-2: #3f4d63; --ink-3: #5c6a80;
  --rule: rgb(10 30 60 / .1); --rule-2: rgb(10 30 60 / .18); --grid: rgb(10 30 60 / .045);
  --accent: #007a56; --accent-2: #00a374; --accent-soft: rgb(0 122 86 / .07);
  --warn: #a85d00; --bad: #c8203a;
  --btn: #0a1220; --btn-ink: #ffffff;
  --sys-ok: #00a374; --sys-warn: #d27a00; --sys-bad: #d62a44; --sys-line: rgb(40 70 110 / .28); --sys-node: #ffffff; --sys-label: #5c6a80; --sys-mode: light;
  --mark: #0a1220; --mark-2: #00a374;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; position: relative; }
/* blueprint grid, strongest at the top of the page */
body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1400px; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 30%, transparent 75%); }
svg { display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #03140e; }
h1, h2, h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 650; letter-spacing: -0.035em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; position: relative; }
.lead { font-size: 1.17rem; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--ink-2); }
.eyebrow { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: "//"; opacity: .55; letter-spacing: 0; }
.mono-note { font: 400 .8rem/1.5 var(--mono); color: var(--ink-3); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 80; background: var(--surface); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hdr, main, .ftr { position: relative; z-index: 1; }
.glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(circle, rgb(63 240 184 / .07), transparent 62%); }
.glow.on { opacity: 1; }
:root[data-theme="light"] .glow { background: radial-gradient(circle, rgb(0 122 86 / .06), transparent 62%); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.hdr.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font: 650 1.2rem/1 "Inter", sans-serif; letter-spacing: -0.03em; }
.brand small { display: block; font: 500 0.56rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; color: var(--ink-2); font-size: 0.94rem; font-weight: 500; position: relative; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; color: var(--btn-ink); min-height: 42px; padding: 0 18px; font-size: .9rem; }
.icon-btn { border: 1px solid var(--rule-2); background: transparent; color: var(--ink); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px 22px 22px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.1rem; }
  .nav a:not(.btn)::after { left: 0; right: auto; width: 40px; }
  .nav .btn { margin: 12px 0 0; }
  .menu-btn { display: inline-flex; margin-left: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px; font: 600 0.96rem/1 "Inter", sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, border-color .25s, color .25s, box-shadow .25s; will-change: transform; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { box-shadow: 0 8px 30px -6px rgb(63 240 184 / .45); }
:root[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 26px -8px rgb(10 18 32 / .45); }
.btn-ghost { border-color: var(--rule-2); color: var(--ink); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: var(--btn); color: var(--btn-ink); }
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }

/* Sections */
section { padding: 110px 0; }
.ruled { border-top: 1px solid var(--rule); }
.soft { background: color-mix(in srgb, var(--soft) 80%, transparent); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.head { max-width: 48rem; margin-bottom: 56px; }
.head > * + * { margin-top: 18px; }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.split > .side { position: sticky; top: 104px; }
.split > .side > * + * { margin-top: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split > .side { position: static; } }
@media (max-width: 640px) { section { padding: 72px 0; } }

/* ---------- Stage: a panel the simulation draws into ---------- */
.stage { position: relative; border: 1px solid var(--rule-2); border-radius: 16px; overflow: hidden; min-width: 0;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .03); }
:root[data-theme="light"] .stage { box-shadow: 0 24px 60px -36px rgb(10 30 60 / .35); }
.stage { --st: var(--accent); }
.stage.warn { --st: var(--warn); }
.stage.bad { --st: var(--bad); }
.stage canvas { position: absolute; left: 0; top: 38px; width: 100%; height: calc(100% - 76px); display: block; touch-action: pan-y; }
.stage-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-top: 1px solid var(--rule); font: 400 .68rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.stage-foot small { font-size: inherit; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.stage-foot b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-foot .g { flex: 0 1 64px; min-width: 28px; height: 4px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
.stage-foot .g i { display: block; height: 100%; background: var(--st); transform-origin: left; transform: scaleX(.1); transition: transform .3s; }
.stage-foot .st { margin-left: auto; color: var(--st); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stage-foot .st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; }
@media (max-width: 560px) { .stage-foot { gap: 12px; } .stage-foot .rq, .stage-foot .er { display: none; } }
.stage-cap { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--rule); font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.stage-cap .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.stage-cap .live::before, .hud-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.motion .stage-cap .live::before, .motion .hud-live::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.stage-cap .hint { overflow: hidden; text-overflow: ellipsis; }
.coarse { display: none; }
@media (hover: none) { .fine { display: none; } .coarse { display: inline; } }

/* Hero: copy on the left, the live system on the right */
.hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0 56px; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.9rem); line-height: .98; letter-spacing: -0.05em; max-width: 9ch; margin-top: 22px; }
.hero .lead { margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.6; max-width: 31rem; }
.hero .btn-row { margin-top: 34px; }
.hero .stage { height: clamp(380px, 56vh, 500px); }
.cue { margin-top: 48px; display: inline-flex; align-items: center; gap: 12px; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.cue i { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.motion .cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent-2); animation: cue 2.2s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 28px 0 56px; }
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; align-self: flex-start; }
  .hero h1 { order: 2; max-width: 11ch; font-size: clamp(2.5rem, 10.5vw, 4rem); margin-top: 16px; }
  .hero .stage { order: 3; height: 256px; margin-top: 24px; }
  .hero .lead { order: 4; margin-top: 24px; }
  .hero .btn-row { order: 5; margin-top: 26px; }
  .hero .cue { display: none; }
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.facts div { padding: 22px 22px 22px 0; border-right: 1px solid var(--rule); }
.facts div + div { padding-left: 22px; }
.facts div:last-child { border-right: 0; }
.facts dt { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.facts dd { margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(3) { padding-left: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div { border-right: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--rule); } .facts div:last-child { border-bottom: 0; } }

/* Big statement between sections */
.statement { padding: 140px 0; }
.statement p { font: 650 clamp(2rem, 5vw, 4.2rem)/1.04 "Inter", sans-serif; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.statement .sub { margin-top: 28px; font: 400 1.13rem/1.6 "Inter", sans-serif; letter-spacing: 0; color: var(--ink-2); max-width: 36rem; }

/* Problems: the symptoms on the left, the system degrading beside them */
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "hd stage" "rows stage"; gap: 0 60px; }
.story-hd { grid-area: hd; margin-bottom: 40px; }
.story-hd > * + * { margin-top: 16px; }
.story .stage { grid-area: stage; position: sticky; top: 104px; align-self: start; height: min(430px, calc(100vh - 150px)); }
.story .rows { grid-area: rows; }
@media (max-width: 900px) {
  .story .wrap { display: block; }
  .story .stage { position: sticky; top: 72px; z-index: 3; height: 240px; box-shadow: 0 -14px 0 var(--bg); margin-bottom: 20px; background-color: var(--surface); }
}

/* Services header with its own stage */
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 48px; align-items: end; margin-bottom: 56px; }
.head-row .head { margin-bottom: 0; }
.head-row .stage { height: 290px; }
@media (max-width: 900px) { .head-row { grid-template-columns: 1fr; gap: 28px; } .head-row .stage { height: 240px; } }

/* Tiles */
.tiles { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.t2 { grid-template-columns: repeat(2, 1fr); }
.t3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .t3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .t2, .t3 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.tile p { color: var(--ink-2); font-size: 0.97rem; }
.tile .meta { font: 500 0.78rem/1.4 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.tile .deliv { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--ink-3); }
.tile .deliv::before { content: "→ "; color: var(--accent); }
.tile.feature { background: linear-gradient(160deg, rgb(63 240 184 / .1), var(--surface) 55%); }
:root[data-theme="light"] .tile.feature { background: linear-gradient(160deg, rgb(0 122 86 / .08), var(--surface) 55%); }

/* spotlight that follows the cursor (site.js sets --mx/--my) */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgb(63 240 184 / .09), transparent 45%); border-radius: inherit; }
.tile.spot::before { z-index: 0; }
.tile.spot > * { position: relative; z-index: 1; }
.spot:hover::before { opacity: 1; }

/* Problems list */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.rows li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--rule); transition: padding .35s cubic-bezier(.2,.7,.2,1); }
.rows li:hover { padding-left: 10px; }
.rows .tag { font: 500 0.7rem/2.1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); display: inline-flex; align-items: baseline; gap: 8px; }
.rows .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-1px); }
.rows b { display: block; font: 600 1.28rem/1.28 "Inter", sans-serif; letter-spacing: -0.02em; margin-bottom: 6px; }
.rows span { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 560px) { .rows li { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; } }

/* Case studies */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px 56px; padding: 46px 30px; margin: 0 -30px; border-top: 1px solid var(--rule); border-radius: 16px; }
.case:last-child { border-bottom: 1px solid var(--rule); }
.case h3 { font-size: 1.45rem; letter-spacing: -0.03em; }
.case .sector { margin-top: 12px; font: 400 .8rem/1.5 var(--mono); color: var(--ink-3); }
.case dl { margin: 0; display: grid; gap: 18px; }
.case dt { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case dd { margin: 0; color: var(--ink-2); }
.case .links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; font-size: 0.95rem; }
.case .links a { color: var(--accent); }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; padding: 36px 0; margin: 0; } }

/* Technology ticker */
.ticker { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; align-items: center; }
.ticker-track span { font: 600 clamp(1.9rem, 4.4vw, 3.4rem)/1.1 "Inter", sans-serif; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--ink-3); padding: 0 .5em; white-space: nowrap; transition: color .3s; }
.ticker-track span:hover { color: var(--ink); -webkit-text-stroke-color: transparent; }
.ticker-track b { color: var(--accent); font-size: 1.1rem; }
.motion .ticker-track { animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.stack h4 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.stack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; counter-reset: s; }
.steps li { background: var(--surface); padding: 28px 24px; counter-increment: s; display: flex; flex-direction: column; }
.steps li::after { content: "0" counter(s); order: -1; font: 500 .8rem/1 var(--mono); color: var(--accent); margin-bottom: 22px; padding: 6px 8px; border: 1px solid var(--rule-2); border-radius: 6px; align-self: flex-start; }
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Table */
.tablewrap { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--rule-2); }
tbody th { font-weight: 600; white-space: nowrap; padding-right: 32px; }
tbody td { color: var(--ink-2); }
.note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-3); max-width: 46rem; }

/* CTA band (inner pages) */
.band { border: 1px solid var(--rule-2); border-radius: 20px; background: linear-gradient(140deg, rgb(63 240 184 / .09), var(--surface) 55%); padding: 68px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: 40px; }
:root[data-theme="light"] .band { background: linear-gradient(140deg, rgb(0 122 86 / .08), var(--surface) 55%); }
.band h2 { max-width: 20ch; }
.band p { color: var(--ink-2); margin-top: 14px; max-width: 34rem; }
@media (max-width: 640px) { .band { padding: 44px 24px; } }

/* Finale (home): the system, healthy again, above the call to action */
.finale { text-align: center; padding: 110px 0 140px; }
.finale .wrap { display: flex; flex-direction: column; align-items: center; }
.finale .stage { width: min(100%, 880px); height: 290px; margin-bottom: 60px; text-align: left; }
.finale h2 { font-size: clamp(2.4rem, 6.2vw, 5.2rem); line-height: 1; letter-spacing: -0.05em; max-width: 13ch; margin-top: 22px; }
.finale p { margin-top: 24px; color: var(--ink-2); font-size: 1.13rem; max-width: 34rem; }
.finale .btn-row { margin-top: 34px; justify-content: center; }
.finale .eyebrow { color: var(--accent); margin-top: 0; font-size: .74rem; }
@media (max-width: 640px) { .finale { padding: 72px 0 100px; } .finale .stage { height: 240px; margin-bottom: 44px; } }

/* Inner page header with a small live pipeline on the right */
.page-hd { position: relative; padding: 96px 0 80px; border-bottom: 1px solid var(--rule); overflow: hidden; }
.page-hd h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-top: 20px; max-width: 15ch; letter-spacing: -0.045em; }
.page-hd .lead { margin-top: 24px; max-width: 34rem; }
.page-hd .wrap { z-index: 1; }
.sys-mini { position: absolute; right: max(0px, calc((100vw - 1180px) / 2)); top: 50%; transform: translateY(-50%); width: min(44vw, 540px); height: 280px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
@media (max-width: 900px) { .sys-mini { display: none; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.prose p, .prose ul { margin-top: 0.95rem; color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--accent); }
.prose b { color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 26px; position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--accent); }

/* Footer */
.ftr { border-top: 1px solid var(--rule); padding: 72px 0 36px; margin-top: 40px; font-size: 0.95rem; overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ftr h4 { margin: 0 0 14px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { text-decoration: none; transition: color .2s; }
.ftr a:hover { color: var(--accent); }
.ftr-mark { display: block; margin: 64px 0 0; font: 700 clamp(4rem, 18.5vw, 16rem)/.8 "Inter", sans-serif; letter-spacing: -0.07em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--rule-2); transition: color .8s, -webkit-text-stroke-color .8s; user-select: none; }
.ftr-mark:hover { color: var(--accent-soft); -webkit-text-stroke-color: var(--accent); }
.ftr-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-3); font: 400 .8rem/1.5 var(--mono); }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- HUD: the simulation readout (home only, decorative; numbers come from system.js) ---------- */
.hud { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 252px; padding: 12px 14px 11px; border: 1px solid var(--rule-2); border-radius: 14px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .55); font: 400 .7rem/1.3 var(--mono); color: var(--ink-3); pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; --st: var(--accent); }
:root[data-theme="light"] .hud { box-shadow: 0 16px 40px -20px rgb(10 30 60 / .35); }
.hud.on { opacity: 1; transform: none; }
.hud.on.away { opacity: 0; transform: translateY(10px); }
.hud.warn { --st: var(--warn); }
.hud.bad { --st: var(--bad); }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hud-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); white-space: nowrap; text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; }
.hud-live::before { background: var(--st) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 18%, transparent) !important; }
.hud-status { color: var(--st); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; }
.hud-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.hud-main small { display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.hud-main b { display: block; margin-top: 4px; font: 600 1.55rem/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.hud-spark { width: 96px; height: 34px; display: block; }
.hud-gauge { height: 4px; margin-top: 10px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
.hud-gauge i { display: block; height: 100%; width: 100%; background: var(--st); transform-origin: left; transform: scaleX(.1); transition: transform .3s; }
.hud-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; }
.hud-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-note { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--rule); font-size: .58rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .hud { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 9px 12px 10px; background: color-mix(in srgb, var(--surface) 96%, transparent); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; }
  .hud-top { display: contents; }
  .hud-live { grid-column: 1; grid-row: 1; }
  .hud-status { grid-column: 2; grid-row: 1; text-align: left; }
  .hud-main { grid-column: 3; grid-row: 1; margin: 0; }
  .hud-main small, .hud-spark, .hud-row, .hud-note { display: none; }
  .hud-main b { margin: 0; font-size: .95rem; }
  .hud-gauge { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; height: 3px; }
}

/* ---------- motion (only when site.js adds .motion) ---------- */
.motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion [data-words].rv { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.w > span { display: inline-block; }
.motion [data-words] .w > span { transform: translateY(110%); transition: transform 1s cubic-bezier(.16,.84,.2,1) calc(var(--i) * 55ms + 80ms); }
.motion [data-words].in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .rows li, .hud { transition: none; } }

/* Product pages */
.tile .deliv a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tile .deliv a:hover { color: var(--accent); }
pre.code { margin: 30px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 14px; font: 400 0.84rem/1.7 var(--mono); color: var(--ink-2); overflow-x: auto; }
pre.code .c { color: var(--ink-3); }
pre.code .s { color: var(--accent); }
