@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=IBM+Plex+Sans+Condensed:wght@400;500;600;700&display=swap");

:root {
  color: #ece8da;
  background: #11130f;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-synthesis: none;
  --ink: #11130f;
  --paper: #e9e6d8;
  --acid: #d7ff38;
  --signal: #ff6948;
  --mint: #4be7ad;
  --line: rgba(233, 230, 216, 0.16);
  --muted: #999b8e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--ink); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.masthead { position: sticky; top: 0; z-index: 15; height: 78px; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(17, 19, 15, .94); backdrop-filter: blur(16px); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; line-height: .95; letter-spacing: .08em; }
.wordmark b { color: var(--acid); font-weight: 600; }
.mark { position: relative; width: 32px; height: 32px; display: block; border: 1px solid var(--line); }
.mark i { position: absolute; left: 6px; right: 6px; height: 3px; background: var(--acid); transform-origin: left center; }
.mark i:nth-child(1) { top: 8px; width: 20px; }
.mark i:nth-child(2) { top: 15px; width: 12px; }
.mark i:nth-child(3) { top: 22px; width: 17px; }
.environment { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.environment span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(75,231,173,.1); }
.blueprint-link { justify-self: end; color: var(--paper); text-decoration: none; font: 11px "DM Mono", monospace; letter-spacing: .06em; }
.blueprint-link b { color: var(--acid); margin-left: 7px; }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.08fr .92fr; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; padding: clamp(70px, 9vw, 140px) 4vw 70px; border-right: 1px solid var(--line); position: relative; }
.hero-copy::after { content: "03%"; position: absolute; right: -4px; bottom: -31px; color: rgba(233,230,216,.035); font: 700 clamp(180px, 23vw, 360px)/.7 "IBM Plex Sans Condensed", sans-serif; pointer-events: none; }
.eyebrow, .section-head p:first-child, .panel header > p, .handoff > div > p { color: var(--acid); font: 10px "DM Mono", monospace; letter-spacing: .13em; }
h1 { margin: 22px 0 26px; font-size: clamp(64px, 8.2vw, 142px); line-height: .78; letter-spacing: -.055em; text-transform: uppercase; font-weight: 600; }
h1 em { color: var(--signal); font-style: normal; }
.lede { max-width: 610px; margin: 0; color: #b9b8ae; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.35; }
.hero-actions { margin-top: 46px; display: flex; gap: 12px; align-items: center; }
.primary-action, .ghost-action { min-height: 53px; border: 1px solid var(--acid); padding: 0 18px; font: 500 11px "DM Mono", monospace; letter-spacing: .07em; transition: .22s ease; }
.primary-action { min-width: 245px; display: flex; justify-content: space-between; align-items: center; background: var(--acid); color: var(--ink); }
.primary-action b { font-size: 15px; }
.primary-action:hover { box-shadow: 6px 6px 0 var(--signal); transform: translate(-3px,-3px); }
.primary-action:disabled { cursor: default; opacity: .75; }
.primary-action.working b { animation: blink .5s steps(1) infinite; }
.ghost-action { background: transparent; color: var(--paper); border-color: var(--line); }
.ghost-action:hover { border-color: var(--paper); }
.microcopy { margin-top: 14px; color: #70736a; font: 9px "DM Mono", monospace; text-transform: uppercase; }

.hero-board { min-width: 0; padding: 4vw; display: grid; grid-template-rows: auto 1fr auto auto; background: #151812; position: relative; overflow: hidden; }
.hero-board::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 48px 48px; opacity: .2; }
.board-head, .metric-strip, .recovery-state, .score-ring { position: relative; z-index: 1; }
.board-head { display: flex; justify-content: space-between; color: #84877d; font: 10px "DM Mono", monospace; }
.board-head div { display: flex; align-items: center; gap: 8px; color: var(--paper); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.5s ease-in-out infinite; }
.score-ring { --coverage: 349deg; width: min(27vw, 360px); aspect-ratio: 1; align-self: center; justify-self: center; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--acid) 0 var(--coverage), rgba(233,230,216,.08) var(--coverage)); filter: drop-shadow(0 0 40px rgba(215,255,56,.08)); transition: background .8s ease; }
.score-ring::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: #151812; box-shadow: inset 0 0 0 1px var(--line); }
.score-ring > div { position: relative; text-align: center; }
.score-ring strong { font: 500 clamp(74px, 8vw, 132px)/.8 "IBM Plex Sans Condensed", sans-serif; letter-spacing: -.06em; }
.score-ring span { color: var(--acid); font-size: 25px; vertical-align: top; }
.score-ring small { display: block; margin-top: 17px; color: #7f8278; font: 9px "DM Mono", monospace; letter-spacing: .16em; }
.metric-strip { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.metric-strip div { padding: 14px; display: grid; gap: 4px; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip small { color: #777a71; font: 8px "DM Mono", monospace; }
.metric-strip strong { font-size: 24px; }
.metric-strip .danger strong { color: var(--signal); }
.recovery-state { margin-top: 12px; min-height: 64px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 11px; border: 1px solid rgba(255,105,72,.38); background: rgba(255,105,72,.07); }
.recovery-state span { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.recovery-state strong { font: 11px "DM Mono", monospace; letter-spacing: .08em; }
.recovery-state small { color: #8d8f86; font-size: 12px; }
.recovery-state.recovered { border-color: rgba(75,231,173,.4); background: rgba(75,231,173,.07); }
.recovery-state.recovered span { background: var(--mint); }

.section-shell { padding: 105px 4vw; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr minmax(300px, 520px); gap: 60px; align-items: end; margin-bottom: 60px; }
.section-head h2, .panel h2, .handoff h2 { margin: 8px 0 0; font-size: clamp(38px, 4vw, 67px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; font-weight: 500; }
.section-head > p { margin: 0; color: #9c9e94; font-size: 17px; line-height: 1.5; }
.flow { display: grid; grid-template-columns: 1fr 75px 1fr 75px 1.18fr 75px 1fr 75px 1.1fr; align-items: stretch; }
.flow-node { min-height: 245px; padding: 20px; border: 1px solid var(--line); background: #151712; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.flow-node::before { content: ""; position: absolute; width: 130px; height: 130px; right: -65px; top: -65px; border-radius: 50%; border: 1px solid var(--line); }
.flow-node > span { color: #666960; font: 9px "DM Mono", monospace; }
.flow-node small { margin-top: auto; color: var(--acid); font: 9px "DM Mono", monospace; letter-spacing: .12em; }
.flow-node h3 { margin: 9px 0 0; font-size: 26px; font-weight: 500; }
.flow-node p { margin: 8px 0 20px; color: #92948b; font-size: 14px; line-height: 1.35; }
.flow-node i { font: 9px "DM Mono", monospace; color: #686b62; font-style: normal; }
.flow-node.critical { background: var(--acid); color: var(--ink); transform: translateY(-13px); box-shadow: 8px 8px 0 var(--signal); }
.flow-node.critical small, .flow-node.critical p, .flow-node.critical i { color: #41482a; }
.connector { display: grid; align-content: center; justify-items: center; gap: 9px; }
.connector b { width: 100%; height: 1px; background: var(--line); position: relative; }
.connector b::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.connector small { color: #5f6259; font: 8px "DM Mono", monospace; }
.flow.active .connector b::before { content: ""; position: absolute; width: 28px; height: 3px; top: -1px; background: var(--acid); animation: travel .7s linear infinite; }

.lab-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 18px; background: #e7e3d5; color: #181a15; }
.panel { min-width: 0; border: 1px solid rgba(17,19,15,.17); background: #f1eee2; }
.panel > header { min-height: 111px; padding: 24px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(17,19,15,.16); }
.panel header p { margin: 0; color: #697a00; }
.panel h2 { font-size: clamp(30px, 3vw, 50px); }
.ledger header > span { padding: 8px 10px; border: 1px solid #d64527; color: #b72c12; font: 9px "DM Mono", monospace; }
.ledger header > span.resolved { border-color: #158d61; color: #0c7650; }
.ledger-table { padding: 0 24px 20px; }
.ledger-row { min-height: 43px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr .8fr; align-items: center; border-bottom: 1px solid rgba(17,19,15,.11); font: 9px "DM Mono", monospace; }
.ledger-header { color: #73766c; font-size: 8px; }
.ledger-row span:first-child { display: flex; align-items: center; gap: 8px; }
.ledger-row span:first-child i { width: 5px; height: 5px; border-radius: 50%; background: #2a9f73; }
.ledger-row.drift { background: rgba(255,105,72,.09); }
.ledger-row.drift span:first-child i { background: #d74527; box-shadow: 0 0 0 4px rgba(215,69,39,.1); }
.ledger-row.drift b { color: #bd3118; }
.ledger-row.recovered { background: rgba(75,231,173,.12); }
.ledger-row.recovered b { color: #0c7750; }
.ledger footer { padding: 12px 24px; display: flex; justify-content: space-between; gap: 12px; color: #74776e; border-top: 1px solid rgba(17,19,15,.12); font: 8px "DM Mono", monospace; }
.inspector > header { display: block; }
.fault-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid rgba(17,19,15,.16); }
.fault-tabs button { border: 0; border-right: 1px solid rgba(17,19,15,.16); padding: 14px 8px; background: transparent; color: #72756c; font: 8px "DM Mono", monospace; }
.fault-tabs button.active { background: #181a15; color: var(--acid); }
.fault-card { margin: 24px; padding: 23px; background: #181a15; color: var(--paper); min-height: 390px; }
.fault-card > span { color: var(--signal); font: 9px "DM Mono", monospace; }
.fault-card h3 { margin: 33px 0 12px; font-size: 31px; font-weight: 500; text-transform: uppercase; }
.fault-card > p { min-height: 62px; color: #a4a69c; font-size: 15px; line-height: 1.45; }
.fault-card dl { margin: 29px 0 0; display: grid; gap: 1px; }
.fault-card dl div { padding: 13px 0; display: grid; grid-template-columns: 72px 1fr; border-top: 1px solid var(--line); }
.fault-card dt { color: var(--acid); font: 8px "DM Mono", monospace; }
.fault-card dd { margin: 0; color: #cac8bd; font-size: 13px; }

.reconciliation { background: #151712; }
.recon-track { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1fr; align-items: center; }
.recon-track article { min-height: 150px; padding: 18px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.recon-track article:last-child { border-color: var(--mint); }
.recon-track span { color: #71746b; font: 9px "DM Mono", monospace; }
.recon-track b { margin-top: auto; color: var(--acid); font: 11px "DM Mono", monospace; }
.recon-track p { margin: 8px 0 0; color: #a2a49a; font-size: 14px; }
.recon-track > i { height: 1px; background: var(--line); position: relative; }
.recon-track > i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.guardrails { margin-top: 70px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.guardrails div { padding: 26px 22px 0 0; border-right: 1px solid var(--line); }
.guardrails div:not(:first-child) { padding-left: 22px; }
.guardrails span { color: var(--signal); font: 9px "DM Mono", monospace; }
.guardrails h3 { margin: 25px 0 9px; font-size: 22px; font-weight: 500; }
.guardrails p { margin: 0; color: #8f9288; font-size: 14px; line-height: 1.45; }

.handoff { display: grid; grid-template-columns: 1fr 1fr; gap: 65px 8vw; background: var(--acid); color: var(--ink); }
.handoff > div > p { color: #526000; }
.handoff ol { list-style: none; margin: 0; padding: 0; }
.handoff li { display: grid; grid-template-columns: 55px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(17,19,15,.3); }
.handoff li > span { font: 9px "DM Mono", monospace; }
.handoff li b { font-size: 22px; text-transform: uppercase; font-weight: 500; }
.handoff li p { margin: 5px 0 0; color: #4b511f; font-size: 15px; }
.handoff aside { grid-column: 1 / -1; padding: 20px; display: grid; grid-template-columns: 170px 1fr; gap: 30px; border: 1px solid rgba(17,19,15,.45); }
.handoff aside strong { font: 10px "DM Mono", monospace; }
.handoff aside p { margin: 0; max-width: 900px; font-size: 14px; line-height: 1.5; }

footer { min-height: 84px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #73766d; font: 9px "DM Mono", monospace; letter-spacing: .08em; }
footer span:first-child { color: var(--paper); }

@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes travel { from { left: 0; } to { left: calc(100% - 28px); } }

@media (max-width: 1100px) {
  .masthead { grid-template-columns: 1fr auto; }.environment { display: none; }
  .hero { width: 100%; grid-template-columns: minmax(0, 1fr); }.hero-copy { border-right: 0; }.hero-board { min-height: 700px; }.score-ring { width: min(50vw, 350px); }
  .flow { grid-template-columns: 1fr 32px 1fr; row-gap: 32px; }.flow .connector:nth-of-type(2), .flow .connector:nth-of-type(4) { display: none; }.flow-node.critical { transform: none; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); }.recon-track { grid-template-columns: 1fr; gap: 12px; }.recon-track > i { width: 1px; height: 28px; margin-left: 25px; }.recon-track > i::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
}

@media (max-width: 720px) {
  .masthead { padding: 0 18px; }.blueprint-link { font-size: 0; }.blueprint-link b { font-size: 18px; }
  .hero-copy, .hero-board, .section-shell { padding-left: 20px; padding-right: 20px; }
  .hero-copy::after { right: 0; }
  h1 { font-size: clamp(48px, 14.5vw, 70px); line-height: .82; } h1 em { display: block; }.lede { max-width: 100%; }.hero-actions { align-items: stretch; flex-direction: column; }.primary-action { width: 100%; }
  .hero-board { min-height: 590px; }.score-ring { width: min(76vw, 320px); }.metric-strip { grid-template-columns: repeat(2,1fr); }.metric-strip div:nth-child(2) { border-right: 0; }
  .section-head { grid-template-columns: 1fr; gap: 25px; }.section-shell { padding-top: 75px; padding-bottom: 75px; }
  .flow { grid-template-columns: 1fr; }.connector { min-height: 36px; }.connector b { width: 1px; height: 28px; }.connector b::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }.flow-node { min-height: 200px; }
  .ledger-table { overflow-x: auto; }.ledger-row { min-width: 650px; }.ledger footer { flex-direction: column; }
  .guardrails { grid-template-columns: minmax(0, 1fr); }.guardrails div, .guardrails div:nth-child(2) { border-right: 0; }.guardrails div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .handoff { grid-template-columns: 1fr; }.handoff aside { grid-column: auto; grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
