:root {
  color-scheme: dark;
  --ink: #edf2ed;
  --muted: #97a29c;
  --line: #29332e;
  --panel: #101713;
  --panel-2: #151e19;
  --bg: #090e0b;
  --acid: #b8ff5a;
  --amber: #ffbf4b;
  --red: #ff6d6d;
  --cyan: #77e6de;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--acid); color: #0a110c; padding: .65rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: var(--max); margin: 0 auto; min-height: 74px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 720; letter-spacing: -.02em; }
.wordmark-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #0a110c; background: var(--acid); font: 800 .74rem/1 ui-monospace, monospace; }
nav { display: flex; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .86rem; }
nav a:hover { color: var(--ink); }
.system-state { color: var(--muted); font: .72rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.system-state i { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(184,255,90,.08); }

.hero { max-width: var(--max); margin: 0 auto; padding: 100px 24px 72px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 7vw; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--acid); font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 1.35rem; font-size: clamp(3.3rem, 7.2vw, 6.6rem); line-height: .91; letter-spacing: -.068em; font-weight: 760; }
.hero-subhead { max-width: 680px; margin-bottom: 2rem; color: #b8c2bc; font-size: clamp(1.05rem, 1.65vw, 1.35rem); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.button { min-height: 46px; border: 1px solid var(--line); padding: .76rem 1rem; cursor: pointer; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); }
.button:hover { border-color: #66746c; }
.button-primary { background: var(--acid); color: #0b120d; border-color: var(--acid); }
.button-primary:hover { background: #cbff88; }
.button-quiet { background: var(--panel); }
.microcopy { margin: 1rem 0 0; color: #748078; font-size: .76rem; }
.signal-panel { border: 1px solid #344038; background: #0d1410; padding: 1rem; box-shadow: 14px 14px 0 #111a15; }
.signal-panel-head, .signal-caption { display: flex; justify-content: space-between; color: #7f8e85; font: .67rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.signal-grid { height: 270px; margin: 1rem 0; padding: 1rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; align-items: end; border: 1px solid #1f2923; background-image: linear-gradient(#1b251f 1px, transparent 1px); background-size: 100% 25%; }
.signal-grid span { height: var(--h); background: #405048; }
.signal-grid .signal-good { background: var(--acid); }
.signal-grid .signal-warn { background: var(--amber); }
.signal-grid .signal-bad { background: var(--red); }

.problem-strip { border-block: 1px solid var(--line); background: var(--acid); color: #10150f; }
.problem-strip p { max-width: var(--max); margin: 0 auto; padding: 1rem 24px; font-size: .92rem; font-weight: 650; }
.problem-strip span { margin-right: 1rem; font: 800 .7rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.section { max-width: var(--max); margin: 0 auto; padding: 104px 24px; }
.section-heading { margin-bottom: 2rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading.narrow { max-width: 760px; }
h2 { margin-bottom: 0; font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.052em; }
.demo-label { border: 1px solid var(--amber); color: var(--amber); padding: .48rem .6rem; white-space: nowrap; font: 700 .66rem/1 ui-monospace, monospace; letter-spacing: .08em; }

.dashboard { border: 1px solid #344038; background: var(--panel); box-shadow: 18px 18px 0 #0d130f; }
.dashboard-topbar { min-height: 68px; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.dashboard-topbar strong, .dashboard-topbar span { display: block; }
.dashboard-topbar strong { font-size: .88rem; }
.dashboard-topbar span { margin-top: .2rem; color: var(--muted); font-size: .74rem; }
.filters { display: flex; gap: .3rem; flex-wrap: wrap; }
.filter { color: var(--muted); background: transparent; border: 1px solid transparent; padding: .45rem .68rem; cursor: pointer; font: 700 .67rem/1 ui-monospace, monospace; text-transform: uppercase; }
.filter:hover, .filter.is-active { color: var(--ink); border-color: #46534c; background: #1b251f; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.metric { padding: 1.15rem; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font: .68rem/1 ui-monospace, monospace; text-transform: uppercase; }
.metric strong { margin-top: .6rem; font-size: 2rem; letter-spacing: -.05em; }
.metric[data-tone="good"] strong { color: var(--acid); }
.metric[data-tone="warn"] strong { color: var(--amber); }
.metric[data-tone="danger"] strong { color: var(--red); }
.dashboard-body { min-height: 500px; display: grid; grid-template-columns: 1.45fr .75fr; }
.run-list-wrap { border-right: 1px solid var(--line); }
.table-label { min-height: 43px; display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; color: var(--muted); border-bottom: 1px solid var(--line); font: .67rem/1 ui-monospace, monospace; letter-spacing: .07em; }
.run-row { width: 100%; display: grid; grid-template-columns: 62px 108px 1fr auto; gap: .9rem; align-items: center; min-height: 82px; padding: .85rem 1rem; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.run-row:hover, .run-row.is-selected { background: #18221c; }
.run-time, .run-id { color: var(--muted); font: .7rem/1.35 ui-monospace, monospace; }
.run-id { color: #c5cec8; }
.run-task strong, .run-task small { display: block; }
.run-task strong { font-size: .87rem; }
.run-task small { margin-top: .25rem; color: var(--muted); font-size: .7rem; }
.status { min-width: 82px; padding: .38rem .5rem; text-align: center; border: 1px solid #46534c; font: 700 .62rem/1 ui-monospace, monospace; text-transform: uppercase; }
.status-completed { color: var(--acid); }
.status-blocked { color: var(--red); }
.status-approval { color: var(--amber); }
.empty-state { color: var(--muted); padding: 3rem 1rem; }
.evidence-drawer { padding: 1.5rem; background: #0d1410; }
.drawer-kicker { color: var(--cyan); font: 700 .66rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.evidence-drawer h3 { margin-bottom: .4rem; font-size: 1.45rem; letter-spacing: -.025em; }
.drawer-meta { color: var(--muted); font-size: .77rem; }
.evidence-drawer ul { min-height: 138px; margin: 1.6rem 0; padding: 0; list-style: none; }
.evidence-drawer li { position: relative; margin-bottom: .75rem; padding-left: 1.15rem; font-size: .82rem; }
.evidence-drawer li::before { content: "↳"; position: absolute; left: 0; color: var(--acid); }
.decision-box { margin: 1.4rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.decision-box span, .decision-box strong { display: block; }
.decision-box span { color: var(--muted); font: .66rem/1 ui-monospace, monospace; text-transform: uppercase; }
.decision-box strong { margin-top: .5rem; font-size: .9rem; }
.button-approval { width: 100%; color: var(--amber); border-color: #715a31; }
.button-approval:disabled { cursor: not-allowed; opacity: .55; }
.drawer-note { margin-top: .65rem; color: #748078; font-size: .68rem; }

.workflow { border-top: 1px solid var(--line); }
.workflow-steps { margin: 4rem 0 3rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow-steps li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.workflow-steps > li > span { color: var(--acid); font: 700 .76rem/1 ui-monospace, monospace; }
.workflow-steps h3 { margin-bottom: .35rem; font-size: 1.35rem; }
.workflow-steps p { max-width: 700px; margin-bottom: 0; color: var(--muted); }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.boundary-grid div { min-height: 185px; padding: 1.3rem; border-right: 1px solid var(--line); }
.boundary-grid div:last-child { border-right: 0; }
.boundary-grid span { color: var(--cyan); font: 700 .65rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.boundary-grid p { margin: 1rem 0 0; color: #adb7b1; font-size: .88rem; }

.pilot { display: grid; grid-template-columns: 1.25fr .75fr; gap: 5vw; align-items: center; border-top: 1px solid var(--line); }
.pilot-copy p:last-child { max-width: 650px; margin: 1.4rem 0 0; color: var(--muted); }
.price-block { padding: 1.6rem; border: 1px solid #46534c; background: var(--panel); }
.price-block > span, .price-block > strong, .price-block > small { display: block; }
.price-block > span { color: var(--muted); font: .66rem/1 ui-monospace, monospace; text-transform: uppercase; }
.price-block > strong { margin: .65rem 0 .35rem; font-size: 2.55rem; letter-spacing: -.05em; }
.price-block > small { color: var(--amber); }
.price-block .button { width: 100%; margin-top: 1.4rem; }
.copy-state { display: block; min-height: 1.2rem; margin-top: .6rem; color: var(--acid); font-size: .72rem; }
footer { max-width: var(--max); margin: 0 auto; padding: 2rem 24px 3rem; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer strong, footer span { display: block; }
footer strong { color: var(--ink); }
footer p { max-width: 560px; text-align: right; }
.fatal-config { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 30; padding: 1rem; background: #481e1e; border: 1px solid var(--red); color: #fff; }

@media (max-width: 850px) {
  .system-state { display: none; }
  .hero, .pilot { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .signal-panel { max-width: 560px; }
  .dashboard-body { grid-template-columns: 1fr; }
  .run-list-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-grid div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .boundary-grid div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  nav { display: none; }
  .site-header { min-height: 62px; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .section { padding-block: 76px; }
  .section-heading { align-items: start; flex-direction: column; }
  .dashboard-topbar { align-items: start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .run-row { grid-template-columns: 48px 1fr auto; }
  .run-id { display: none; }
  .workflow-steps li { grid-template-columns: 44px 1fr; }
  footer { flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
