:root {
  --bg: #0a0a0a;
  --panel: #0e0f10;
  --panel-2: #151719;
  --border: #3a3f45;
  --text: #f4f4f4;
  --muted: #a8adb3;
  --light: #f5f5f5;
  --ink: #111315;
  --ink-muted: #5f666d;
  --accent: #39ab93;
  --positive: #4fa87a;
  --warning: #d19b52;
  --danger: #c86a62;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--light);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section-dark { background: var(--bg); color: var(--text); }
.section-light { background: var(--light); color: var(--ink); }
#control, #scenario, #boundary, #pilot { scroll-margin-top: 142px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #080808;
}
.site-header::after {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg,#25282c 0%,#25282c 10%,#34383d 15%,#747b83 24%,#a6acb3 34%,#a6acb3 46%,#7a8189 58%,#4a4f55 72%,#25282c 86%,#25282c 100%);
}
.header-inner {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 1px solid rgba(255,255,255,.34);
  border-right: 1px solid rgba(255,255,255,.34);
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 26px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: 238px; height: auto; }
.brand-product {
  position: relative;
  padding-left: 26px;
  color: #d7dbdf;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .215em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-product::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 48px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.50);
}
.nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  border-left: 1px solid rgba(255,255,255,.34);
}
.nav a {
  min-width: 118px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,.32);
  text-decoration: none;
  color: #d0d4d8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible {
  color: var(--bg);
  background: var(--accent);
  outline: none;
}
.nav-cta {
  min-width: 186px;
  color: #f5f5f5 !important;
}
.nav-cta:hover, .nav-cta:focus-visible { color: var(--bg) !important; }

.hero {
  position: relative;
  min-height: calc(100vh - 123px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--light);
  color: var(--ink);
  border-bottom: 3px solid #25282c;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr); gap: 72px; align-items: center; padding: 108px 0 112px; }
.eyebrow, .section-label, .card-kicker, .metric-label, .decision-label, .proof-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
}
.eyebrow { color: #565b61; margin: 0 0 24px; }
.proof-kicker { color: #8fd1c2; }
.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(58px, 7vw, 96px);
  line-height: .97;
  letter-spacing: -.055em;
  font-weight: 500;
  color: var(--bg);
}
.hero-lead { margin: 34px 0 0; max-width: 680px; color: #181a1d; font-size: 22px; line-height: 1.45; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 26px;
  text-decoration: none;
  border: 1px solid rgba(10,10,10,.30);
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}
.button-primary { background: var(--bg); color: var(--light); border-color: var(--bg); }
.button-primary:hover, .button-primary:focus-visible { background: #25282c; border-color: #25282c; outline: 2px solid #737981; outline-offset: 2px; }
.button-secondary { background: transparent; color: var(--bg); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--bg); outline: none; }
.stage-note { margin-top: 18px; color: #555b61; font-size: 14px; max-width: 670px; }

.proof-frame { border: 1px solid var(--border); background: var(--panel); color: var(--text); padding: 24px; border-radius: 14px; overflow: hidden; }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; color: #d8dbde; }
.status { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; font-weight: 800; }
.status.ok { color: #8bd0b0; border-color: #3d6f5c; }
.status.hold { color: #e9b870; border-color: #765d37; }
.proof-break { margin-top: 22px; padding: 20px 20px 20px 24px; border: 1px solid rgba(228,154,40,.45); border-left: 6px solid var(--warning); border-radius: 10px; background: var(--bg); display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.proof-break strong { display: block; font-size: 18px; line-height: 1.25; }
.proof-break p { margin: 6px 0 0; color: var(--muted); }

.problem-section, .control-section, .boundary-section, .pilot-section { padding: 92px 0; }
.split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; }
.section-label { margin: 0 0 12px; color: #565b61; }
.section-dark .section-label { color: #a6acb3; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.body-copy, .section-intro { font-size: 18px; color: var(--ink-muted); }
.section-dark .section-intro { color: var(--muted); }
.body-copy p { margin-top: 0; }
.body-copy p + p { margin-top: 20px; }

.scenario-section { padding: 92px 0; }
.section-heading { max-width: 820px; margin-bottom: 38px; }
.section-heading.narrow { max-width: 760px; }
.section-intro { margin: 16px 0 0; max-width: 760px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { position: relative; padding: 24px 22px 28px; min-height: 210px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.metric-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #62676c; }
.metric-card.accent-positive::before { background: var(--positive); }
.metric-card.accent-primary::before { background: var(--accent); }
.metric-card.accent-warning::before { background: var(--warning); }
.metric-card strong { display: block; margin-top: 22px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; }
.metric-card p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.metric-label { color: #949aa0; }
.decision-strip { display: grid; grid-template-columns: 1fr 1fr 1.4fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.decision-strip > div { padding: 20px 22px; border-right: 1px solid var(--border); }
.decision-strip > div:last-child { border-right: 0; }
.decision-label { display: block; color: #8f959b; margin-bottom: 7px; }
.decision-main { background: #181613; }
.decision-main strong { color: #e7b264; }

.control-flow { list-style: none; padding: 0; margin: 38px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.control-flow li { min-height: 138px; padding: 18px; border: 1px solid #bdc1c4; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; background: #f5f5f5; }
.control-flow li span { color: #6c747a; font-size: 12px; letter-spacing: .14em; }
.control-flow li strong { font-size: 16px; line-height: 1.25; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.outcome-card { position: relative; border: 1px solid #b9bdc0; border-radius: 12px; padding: 24px; background: #efefef; overflow: hidden; }
.outcome-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.outcome-card.allow::before { background: var(--positive); }
.outcome-card.escalate::before { background: var(--warning); }
.outcome-card.deny::before { background: var(--danger); }
.outcome-card span { color: #656c72; font-size: 12px; letter-spacing: .14em; }
.outcome-card strong { display: block; margin-top: 8px; font-size: 24px; }
.outcome-card p { margin: 8px 0 0; color: #60676d; font-size: 14px; }

.receipt-section { padding: 92px 0; }
.receipt-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; }
.receipt-card { border: 1px solid var(--border); background: var(--panel); border-radius: 14px; overflow: hidden; }
.receipt-topline { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: #98a0a6; font-size: 11px; letter-spacing: .14em; }
.receipt-card dl { margin: 0; }
.receipt-card dl div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 15px 18px; border-bottom: 1px solid #292c2f; }
.receipt-card dt { color: #92989d; }
.receipt-card dd { margin: 0; font-weight: 700; text-align: right; }
.receipt-note { color: #72797f; padding: 14px 18px; margin: 0; font-size: 12px; }

.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; }
.boundary-card { position: relative; border: 1px solid #b9bdc0; border-radius: 12px; padding: 28px 30px 30px; background: #efefef; overflow: hidden; }
.boundary-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.is-card::before { background: var(--accent); }
.not-card::before { background: #6f757a; }
.boundary-card h3 { margin: 10px 0 20px; font-size: 26px; line-height: 1.15; }
.boundary-card ul { padding-left: 20px; margin: 0; color: #555d63; }
.boundary-card li + li { margin-top: 8px; }
.card-kicker { color: #557b72; }

.buyer-section { padding: 82px 0; }
.buyer-list { color: #c1c5c9; font-size: 17px; }
.buyer-list p { margin-top: 0; }
.buyer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.buyer-tags span { border: 1px solid var(--border); border-radius: 7px; padding: 9px 11px; font-size: 13px; color: #aeb4b9; }

.pilot-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 72px; align-items: start; }
.pilot-requirements { margin-top: 30px; display: grid; gap: 12px; }
.pilot-requirements div { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding-top: 12px; border-top: 1px solid #c8cbcd; }
.pilot-requirements span { color: #687077; }
.pilot-form { border: 1px solid #b7bbbe; border-radius: 12px; padding: 26px; background: #ececec; }
.form-row { display: grid; gap: 7px; margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 700; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid #aeb3b6; background: #fff; color: #111; padding: 12px 13px; border-radius: 7px; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.button-full { width: 100%; }
.form-note { margin: 12px 0 0; color: #737a80; font-size: 12px; }
.form-note[data-state="success"] { color: #2f725b; }
.form-note[data-state="error"] { color: #9b3f38; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.button:disabled { cursor: wait; opacity: .62; }

.site-footer { background: #080808; border-top: 1px solid #24272a; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-inner > div:first-child { display: flex; align-items: center; gap: 16px; }
.footer-inner img { width: 120px; }
.footer-inner span { color: #858b90; font-size: 12px; }
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 980px) {
  #control, #scenario, #boundary, #pilot { scroll-margin-top: 112px; }
  .header-inner { min-height: 92px; }
  .brand-cluster { padding-left: 18px; gap: 18px; }
  .brand-logo { width: 180px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { min-width: 168px; }
  .hero-grid, .split-grid, .receipt-grid, .pilot-grid { grid-template-columns: 1fr; gap: 40px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .control-flow { grid-template-columns: 1fr 1fr; }
  .pilot-requirements div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 680px) {
  #control, #scenario, #boundary, #pilot { scroll-margin-top: 96px; }
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 76px; }
  .brand-cluster { padding-left: 12px; gap: 12px; }
  .brand-logo { width: 138px; }
  .brand-product { font-size: 10px; padding-left: 12px; }
  .brand-product::before { height: 34px; }
  .nav-cta { min-width: auto; font-size: 12px !important; padding: 0 12px !important; }
  .hero { min-height: auto; }
  .hero-grid { padding: 68px 0 62px; }
  .hero h1 { font-size: clamp(43px, 14vw, 60px); }
  .hero-lead { font-size: 19px; }
  .problem-section, .control-section, .boundary-section, .pilot-section, .scenario-section, .receipt-section { padding: 64px 0; }
  .metric-grid, .decision-strip, .outcome-grid, .boundary-grid { grid-template-columns: 1fr; }
  .decision-strip > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .decision-strip > div:last-child { border-bottom: 0; }
  .control-flow { grid-template-columns: 1fr; }
  .control-flow li { min-height: 108px; }
  .receipt-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .receipt-card dd { text-align: left; }
  .footer-inner, .footer-inner > div:first-child { align-items: flex-start; flex-direction: column; }
  .footer-meta { justify-content: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}