:root {
  color-scheme: dark;
  --ink: #080a0b;
  --panel: #101315;
  --panel-2: #171b1e;
  --line: #2a3034;
  --paper: #e7e3dc;
  --muted: #92999d;
  --acid: #d7ff4a;
  --signal: #ff5d4a;
  --cyan: #5ce1e6;
  --shadow: 0 22px 60px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 20; height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(8,10,11,.92); backdrop-filter: blur(16px); }
.identity { display: flex; gap: 12px; align-items: center; text-decoration: none; letter-spacing: .08em; }
.identity strong { display: block; font-size: .82rem; }
.identity small { display: block; margin-top: 3px; color: var(--muted); font-size: .62rem; letter-spacing: .03em; }
.lens-mark { width: 28px; height: 28px; border: 1px solid var(--acid); border-radius: 50%; position: relative; box-shadow: inset 0 0 0 7px var(--ink); background: var(--acid); }
.lens-mark::after { content: ""; position: absolute; width: 10px; height: 2px; background: var(--acid); right: -7px; bottom: 1px; transform: rotate(45deg); }
nav { display: flex; gap: 28px; }
nav a { color: #b6bdc1; text-decoration: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
nav a:hover { color: var(--acid); }
.demo-state { justify-self: end; font-size: .67rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.demo-state i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); margin-right: 7px; box-shadow: 0 0 14px var(--acid); }
.hero { min-height: 740px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 7vw; padding: 90px 7vw 75px; overflow: hidden; background: radial-gradient(circle at 80% 35%, #172125 0, #0d1113 32%, var(--ink) 63%); }
.eyebrow { margin: 0 0 22px; color: var(--acid); font-family: Consolas, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .17em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-family: Georgia, serif; font-size: clamp(4rem, 7.1vw, 7.4rem); line-height: .86; letter-spacing: -.065em; font-weight: 500; }
h1 span { color: transparent; -webkit-text-stroke: 1px #7d8589; }
.lede { max-width: 680px; color: #aeb5b8; font-size: 1.02rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin: 32px 0 48px; }
.hero-actions a { padding: 13px 16px; border: 1px solid #4a5155; text-decoration: none; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero-actions .primary { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.primary span { margin-left: 18px; }
.proof-row { display: grid; grid-template-columns: repeat(4, minmax(85px, 1fr)); gap: 18px; max-width: 620px; padding-top: 25px; border-top: 1px solid var(--line); }
.proof-row dt { color: var(--paper); font: 2rem Georgia, serif; }
.proof-row dd { margin: 4px 0 0; color: var(--muted); font: .58rem Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.signal-board { width: min(100%, 620px); border: 1px solid #31383c; background: rgba(12,15,17,.88); box-shadow: var(--shadow); transform: rotate(1.25deg); }
.board-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font: .62rem Consolas, monospace; letter-spacing: .12em; }
.board-head strong { color: var(--acid); }
.pulse-grid { position: relative; height: 280px; overflow: hidden; background: linear-gradient(rgba(92,225,230,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(92,225,230,.07) 1px, transparent 1px); background-size: 34px 34px; }
.pulse-grid span { position: absolute; top: 50%; width: 14%; height: 2px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.pulse-grid span:nth-child(1) { left: 0; }
.pulse-grid span:nth-child(2) { left: 14%; transform: translateY(-20px) rotate(-16deg); }
.pulse-grid span:nth-child(3) { left: 27%; transform: translateY(-6px) rotate(19deg); }
.pulse-grid span:nth-child(4) { left: 40%; transform: translateY(-32px) rotate(-42deg); background: var(--signal); box-shadow: 0 0 14px var(--signal); }
.pulse-grid span:nth-child(5) { left: 52%; transform: translateY(3px) rotate(35deg); background: var(--signal); }
.pulse-grid span:nth-child(6) { left: 65%; transform: translateY(-17px) rotate(-22deg); }
.pulse-grid span:nth-child(7) { left: 78%; width: 22%; transform: translateY(-3px) rotate(7deg); }
.failure-pulse { position: absolute; left: 50%; top: calc(50% - 33px); width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 12px rgba(255,93,74,.09), 0 0 28px var(--signal); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 26px rgba(255,93,74,0), 0 0 34px var(--signal); } }
.board-readout { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.board-readout div { padding: 17px; border-right: 1px solid var(--line); min-width: 0; }
.board-readout small { display: block; color: var(--muted); font: .58rem Consolas, monospace; }
.board-readout strong { display: block; margin-top: 7px; color: var(--acid); font: .68rem Consolas, monospace; overflow-wrap: anywhere; }
.signal-board code { display: block; padding: 14px 17px; color: #6d767a; font-size: .61rem; }
.brief { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.brief article { min-height: 250px; padding: 42px 4vw; border-right: 1px solid var(--line); }
.brief article:last-child { border-right: 0; }
.brief span, .panel-head small, .decision-label { color: var(--acid); font: .61rem Consolas, monospace; letter-spacing: .1em; }
.brief h2 { margin: 22px 0 14px; font: 1.45rem/1.2 Georgia, serif; }
.brief p { color: var(--muted); line-height: 1.6; font-size: .85rem; }
.diagnostic, .assurance { padding: 105px 5vw; background: #0d1012; }
.section-title { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 6vw; margin-bottom: 45px; }
.section-title h2 { font: clamp(2.8rem, 5vw, 5.6rem)/.93 Georgia, serif; letter-spacing: -.045em; }
.section-title > p { color: var(--muted); line-height: 1.7; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.preset-row button { border: 1px solid var(--line); background: transparent; color: #92999d; padding: 10px 13px; cursor: pointer; font: .66rem Consolas, monospace; text-transform: uppercase; }
.preset-row button:hover, .preset-row button.active { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.console-shell { display: grid; grid-template-columns: .9fr 1.1fr .78fr; border: 1px solid #30373a; box-shadow: var(--shadow); background: var(--panel); }
.console-shell > * { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.console-shell > *:last-child { border-right: 0; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-head .step { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #454d51; color: var(--acid); font: .58rem Consolas, monospace; }
.panel-head h3 { margin-bottom: 3px; font: 1.05rem Georgia, serif; }
.panel-head p { margin: 0; color: var(--muted); font-size: .7rem; }
.panel-head small { margin-left: auto; font-size: .53rem; }
label { display: grid; gap: 7px; margin-top: 16px; color: #858d91; font: .6rem Consolas, monospace; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea { width: 100%; border: 1px solid #363d41; background: #0b0e10; color: var(--paper); padding: 10px; border-radius: 0; outline: none; text-transform: none; }
input:focus, select:focus, textarea:focus { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; color: var(--cyan); font: .65rem Consolas, monospace; text-transform: uppercase; }
.run-button { width: 100%; display: flex; justify-content: space-between; margin-top: 22px; padding: 13px 14px; border: 0; background: var(--acid); color: var(--ink); font-size: .74rem; font-weight: 800; cursor: pointer; text-transform: uppercase; }
.microcopy { margin: 10px 0 0; color: #666e72; font-size: .58rem; line-height: 1.4; }
.trace-list { padding-top: 8px; }
.trace-list article { display: grid; grid-template-columns: 33px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.trace-list article > span { color: var(--acid); font: .61rem Consolas, monospace; }
.trace-list h4 { margin-bottom: 5px; font-size: .78rem; }
.trace-list p { margin-bottom: 7px; color: #a3aaad; font-size: .72rem; line-height: 1.5; }
.trace-list small { color: #677074; font: .56rem Consolas, monospace; text-transform: uppercase; }
.empty-state { min-height: 310px; display: grid; place-content: center; justify-items: center; text-align: center; color: #697175; }
.empty-state > span { font-size: 2.4rem; color: var(--acid); }
.empty-state p { max-width: 280px; line-height: 1.6; }
.spinner { width: 28px; height: 28px; border: 2px solid #2f3639; border-top-color: var(--acid); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.decision-room { margin-top: 18px; padding: 24px; border: 1px solid #333a3d; background: #090b0c; }
.radar { display: block; width: 44px; height: 44px; margin-bottom: 25px; border: 1px solid var(--acid); border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 70%, rgba(215,255,74,.4)); }
.decision-room h4 { margin: 12px 0; font: 2.1rem/.98 Georgia, serif; overflow-wrap: anywhere; }
.decision-room p { color: #a8afb2; font-size: .78rem; line-height: 1.6; }
.decision-room dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.decision-room dl div { border-top: 1px solid var(--line); padding-top: 10px; }
.decision-room dt { color: #6c7478; font: .55rem Consolas, monospace; text-transform: uppercase; }
.decision-room dd { margin: 6px 0 0; color: var(--acid); font-size: .72rem; overflow-wrap: anywhere; }
.decision-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.decision-actions button { border: 1px solid var(--acid); background: var(--acid); color: var(--ink); padding: 11px; font-size: .67rem; font-weight: 800; cursor: pointer; }
.decision-actions .reject { background: transparent; color: var(--paper); border-color: #4a5155; }
.decision-room > small { display: block; margin-top: 12px; color: #626a6e; font-size: .58rem; line-height: 1.4; }
.architecture { padding: 105px 5vw; background: var(--paper); color: #111416; }
.architecture .eyebrow { color: #506500; }
.section-title.inverse > p { color: #586064; }
.architecture-map { display: grid; grid-template-columns: 1fr auto 1.35fr auto 1fr auto 1fr; align-items: center; gap: 14px; padding: 40px; border: 1px solid #b9b6af; background: #dcd8d0; }
.architecture-map article { min-height: 150px; padding: 21px; border: 1px solid #9f9c95; background: var(--paper); }
.architecture-map small { display: block; color: #617600; font: .58rem Consolas, monospace; }
.architecture-map strong { display: block; margin: 25px 0 12px; font: 1.35rem Georgia, serif; }
.architecture-map span { color: #596064; font-size: .7rem; line-height: 1.5; }
.architecture-map i { font-style: normal; color: #657e00; }
.architecture-map .parallel { box-shadow: inset 4px 0 var(--cyan); }
.architecture-map .gate { box-shadow: inset 4px 0 var(--signal); }
.decision-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 1px; background: #b9b6af; }
.decision-notes article { padding: 30px; background: var(--paper); }
.decision-notes h3 { font: 1.05rem Georgia, serif; }
.decision-notes p { margin: 0; color: #596064; font-size: .76rem; line-height: 1.6; }
.assurance { background: #0b0e0f; }
.assurance-grid { display: grid; grid-template-columns: 1.35fr 1fr .8fr; gap: 14px; }
.assurance-grid article { padding: 25px; border: 1px solid var(--line); background: var(--panel); }
.assurance-grid header { display: flex; justify-content: space-between; gap: 14px; font: .58rem Consolas, monospace; }
.assurance-grid header span { color: var(--muted); }
.assurance-grid header strong { color: var(--acid); }
.assurance-grid p, .assurance-grid li { color: #9da4a7; font-size: .72rem; line-height: 1.6; }
.metric-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.metric-cloud span { padding: 6px 7px; border: 1px solid #343b3e; color: #adb4b7; font: .52rem Consolas, monospace; text-transform: uppercase; }
pre { margin-top: 24px; padding: 20px; overflow: auto; background: #080a0b; color: #aeb6b9; font: .65rem/1.75 Consolas, monospace; }
pre i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.assurance-grid ul { padding-left: 18px; }
footer { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; padding: 28px 5vw; border-top: 1px solid var(--line); color: #71797c; font-size: .62rem; }
footer div { display: flex; align-items: center; gap: 9px; }
footer img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) brightness(1.8); }
footer p { margin: 0; justify-self: end; max-width: 420px; text-align: right; }
@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .signal-board { justify-self: center; }
  .console-shell { grid-template-columns: 1fr 1fr; }
  .decision-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .architecture-map { grid-template-columns: 1fr; }
  .architecture-map i { transform: rotate(90deg); justify-self: center; }
  .decision-notes, .assurance-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 18px; }
  .demo-state { display: none; }
  .hero { min-height: auto; padding: 72px 20px 55px; }
  h1 { font-size: 3.45rem; }
  .proof-row { grid-template-columns: 1fr 1fr; }
  .signal-board { transform: none; }
  .pulse-grid { height: 190px; }
  .board-readout { grid-template-columns: 1fr; }
  .brief, .section-title, .console-shell, .decision-notes, .assurance-grid { grid-template-columns: 1fr; }
  .brief article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnostic, .architecture, .assurance { padding: 74px 16px; }
  .section-title { align-items: start; }
  .section-title h2 { font-size: 3rem; }
  .console-shell > * { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .architecture-map { padding: 16px; }
  footer { grid-template-columns: 1fr; padding: 28px 20px; }
  footer p { justify-self: start; text-align: left; }
}

.site-header { grid-template-columns: 1fr auto auto auto; }
.theme-switch { display: inline-flex; align-items: center; gap: 7px; margin-left: 18px; padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer; font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.theme-switch:hover, .theme-switch:focus-visible { border-color: var(--acid); color: var(--acid); }
.theme-switch span { font-size: .9rem; line-height: 1; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; --ink: #f7f5ef; --panel: #ffffff; --panel-2: #ebe9e2; --line: #cac8c0; --paper: #171a1c; --muted: #60676b; --acid: #527400; --signal: #bd382c; --cyan: #087f86; --shadow: 0 22px 60px rgba(25,27,29,.12); }
html[data-theme="light"] .site-header { background: rgba(247,245,239,.94); }
html[data-theme="light"] .hero { background: radial-gradient(circle at 80% 35%, #e5eceb 0, #f0efe9 36%, var(--ink) 68%); }
html[data-theme="light"] nav a, html[data-theme="light"] .lede { color: #4c5357; }
html[data-theme="light"] h1 span { -webkit-text-stroke-color: #7b8285; }
html[data-theme="light"] .signal-board { border-color: #b9bdbb; background: rgba(255,255,255,.9); }
html[data-theme="light"] .pulse-grid { background-color: #f7f8f5; }
html[data-theme="light"] .architecture { background: #1b2022; color: #f2f1eb; }
html[data-theme="light"] .decision-panel, html[data-theme="light"] .console-shell, html[data-theme="light"] .assurance-grid article { background: var(--panel); }
@media (max-width: 720px) { .site-header { grid-template-columns: 1fr auto auto; } .theme-switch { margin-left: 0; } .theme-switch b { display: none; } }
