:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #16282b;
  background: #f3f6f3;
  --ink: #0b171b;
  --ink-soft: #13252a;
  --mint: #b9f26c;
  --teal: #6ce1ce;
  --line: #d9e2dd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #dbb95b; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: -80px; left: 20px; padding: 10px 15px; background: #fff; color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header, .intro, .capability-bar, .how, .simulator, .boundary, footer { padding-left: max(32px, calc((100vw - 1280px) / 2)); padding-right: max(32px, calc((100vw - 1280px) / 2)); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 82px; color: #f6f9f5; background: var(--ink); border-bottom: 1px solid #304044; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: none; font-size: 23px; font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.brand-word small { display: block; margin-top: 6px; color: #91ada9; font-size: 8px; letter-spacing: .27em; font-weight: 800; }
.brand-icon { display: grid; grid-template-columns: repeat(2, 7px); gap: 4px; transform: rotate(-12deg); padding: 11px; border-radius: 11px; background: var(--mint); box-shadow: 0 0 0 5px #b9f26c11; }
.brand-icon i { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.brand-icon i:nth-child(2), .brand-icon i:nth-child(3) { opacity: .48; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); color: #bed0c9; font-size: 13px; font-weight: 700; }
.site-header nav a:hover, .text-link:hover { color: var(--mint); }
.nav-source { padding: 10px 14px; border: 1px solid #52665f; border-radius: 7px; color: #f4fbf4; }
.nav-source:hover { border-color: var(--mint); }
.intro { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: center; gap: clamp(32px, 5vw, 88px); padding-top: 96px; padding-bottom: 106px; overflow: hidden; color: #f5f8f4; background: radial-gradient(ellipse at 78% 43%, #184239 0, transparent 34%), var(--ink); }
.intro::after { position: absolute; right: 0; bottom: 0; width: 44%; height: 45%; content: ""; background-image: radial-gradient(#b9f26c15 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; mask-image: linear-gradient(0deg, #000, transparent); }
.intro-copy, .delivery-map { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #0a7769; font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.intro .eyebrow { color: var(--mint); }
.signal-dot, .map-live, .map-foot-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #b9f26c20; }
.intro h1 { margin: 28px 0 25px; max-width: 680px; font-size: clamp(48px, 5vw, 74px); line-height: 1.12; letter-spacing: -.075em; font-weight: 820; }
.intro h1 span { color: var(--mint); }
.intro-copy > p:not(.intro-disclaimer) { max-width: 590px; color: #aec7c1; font-size: 16px; line-height: 1.9; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.primary-link, .play-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--mint); border-radius: 7px; background: var(--mint); color: #10211e; font-size: 13px; font-weight: 850; transition: transform .22s, background .22s, box-shadow .22s; }
.primary-link:hover, .play-button:hover { transform: translateY(-2px); background: #d6faa1; box-shadow: 0 11px 28px #b9f26c21; }
.text-link { color: #e1ede7; font-size: 13px; font-weight: 750; }
.intro-disclaimer { margin: 26px 0 0; color: #7e9e98; font-size: 11px; line-height: 1.6; }
.delivery-map { width: 100%; max-width: 530px; justify-self: end; overflow: hidden; border: 1px solid #4c6c60; border-radius: 16px; background: #102a2a; box-shadow: 0 40px 90px #0007, 0 0 0 8px #ffffff09; transform: rotate(1deg); }
.map-head, .map-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 18px 22px; font: 700 10px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .1em; color: #97b8ad; }
.map-head { border-bottom: 1px solid #31514c; }
.map-head span:first-child { display: flex; align-items: center; gap: 11px; color: #dbefe2; }
.map-route { position: relative; padding: 22px; }
.map-route::before { position: absolute; top: 44px; bottom: 44px; left: 44px; width: 2px; content: ""; background: linear-gradient(var(--mint), #417b73); }
.map-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 13px; align-items: center; min-height: 71px; padding: 11px 14px; border: 1px solid #35544e; border-radius: 9px; margin-bottom: 10px; background: #173533; box-shadow: 0 8px 20px #06181535; }
.map-step:last-child { margin-bottom: 0; }
.map-index { z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #668875; border-radius: 7px; background: #1c4038; color: var(--mint); font: 800 11px ui-monospace, Consolas, monospace; }
.map-step strong, .map-step small { display: block; }
.map-step strong { color: #f3fbf3; font-size: 13px; }
.map-step small { margin-top: 4px; color: #9ebeb1; font: 11px/1.4 ui-monospace, Consolas, monospace; }
.map-check { color: var(--mint); font-size: 17px; text-align: right; }
.map-final { border-color: #aadf84; background: #244b3f; }
.map-foot { border-top: 1px solid #31514c; letter-spacing: 0; }
.map-foot span:first-child { display: flex; align-items: center; gap: 9px; color: var(--mint); }
.capability-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: #f4fbf3; background: #14282a; border-top: 1px solid #37514a; border-bottom: 1px solid #37514a; }
.capability-bar > div { display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 20px 28px; border-left: 1px solid #37514a; }
.capability-bar > div:last-child { border-right: 1px solid #37514a; }
.capability-bar span { color: var(--mint); font: 800 10px ui-monospace, Consolas, monospace; white-space: nowrap; }
.capability-bar strong { font-size: 14px; letter-spacing: -.02em; }
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); padding-top: 112px; padding-bottom: 112px; background: #f3f6f3; }
.how h2, .section-heading h2, .boundary h2 { margin: 17px 0 20px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.25; letter-spacing: -.055em; }
.how-intro p { max-width: 480px; color: #58706e; font-size: 15px; line-height: 1.8; }
.how-list { border-top: 1px solid #b6c7bf; }
.how-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 25px; padding: 25px 0 27px; border-bottom: 1px solid #b6c7bf; }
.how-list article > span { padding-top: 3px; color: #148470; font: 800 11px ui-monospace, Consolas, monospace; }
.how-list h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.03em; }
.how-list p { margin: 0; color: #5c7470; font-size: 13px; line-height: 1.75; }
.simulator { padding-top: 95px; padding-bottom: 110px; background: #e6eee8; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { max-width: 620px; color: #5c7470; line-height: 1.75; margin: 0; font-size: 14px; }
.fixture-badge { flex: none; padding: 9px 13px; border: 1px solid #a8c6b7; border-radius: 6px; color: #1b755b; font-size: 11px; font-weight: 800; white-space: nowrap; }
.fixture-badge span { font-size: 8px; margin-right: 5px; }
.simulator-grid { display: grid; grid-template-columns: minmax(250px, 325px) minmax(0, 1fr); gap: 15px; }
.scenario-panel, .stage { border: 1px solid #9db9a9; border-radius: 12px; box-shadow: 0 22px 50px #16322614; }
.scenario-panel { padding: 22px; background: #f8faf6; }
.panel-heading { padding: 3px 4px 17px; }
.panel-index, .stage-header, .trace-label { color: #5d7770; font: 800 10px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.panel-heading h3 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.04em; }
.scenario-menu { display: grid; gap: 8px; }
.script-note { padding: 12px; border: 1px solid #d5e2d8; border-radius: 8px; color: #4b826c; font-size: 12px; }
.scenario-button { position: relative; width: 100%; padding: 15px 35px 15px 15px; border: 1px solid #d5e2d8; border-radius: 8px; background: #fff; color: #213b35; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.scenario-button::after { position: absolute; top: 50%; right: 15px; content: "↗"; color: #8daa9e; transform: translateY(-50%); }
.scenario-button:hover { transform: translateX(3px); border-color: #5f9f82; }
.scenario-button.selected { border-color: #286b4c; background: #dff2cf; box-shadow: inset 3px 0 #357c59; }
.scenario-button.selected::after { color: #286b4c; }
.scenario-button span { display: block; margin-bottom: 5px; color: #4b826c; font-size: 10px; font-weight: 800; }
.scenario-button strong { display: block; font-size: 13px; line-height: 1.4; }
.stage { min-width: 0; padding: 0 29px 28px; background: #10232a; color: #f1f8f3; }
.stage-header { display: flex; justify-content: space-between; gap: 10px; padding: 18px 0; border-bottom: 1px solid #2b4647; color: #7faaa0; }
.stage-top { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; }
.role-pill { display: inline-block; padding: 6px 9px; border: 1px solid #46826e; border-radius: 5px; color: var(--mint); font-size: 10px; font-weight: 750; }
.stage h3 { margin: 13px 0 8px; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.04em; }
.stage p { margin: 0; color: #9eb9b2; font-size: 13px; line-height: 1.7; }
.state { flex: none; align-self: start; border-radius: 5px; padding: 7px 10px; color: #bbd3ca; background: #254146; font-size: 11px; font-weight: 750; }
.state.delivered { background: #1e6044; color: #d3ffd9; }
.state.rejected { background: #63343d; color: #ffd6d2; }
.state.dead_lettered { background: #654a2b; color: #ffdfa8; }
.stage-actions { display: flex; align-items: center; gap: 11px; margin: 25px 0 27px; }
.play-button { min-height: 40px; padding: 9px 14px; cursor: pointer; }
.play-button:disabled { opacity: .6; cursor: wait; transform: none; }
.reset-button { min-height: 40px; padding: 9px 13px; border: 1px solid #58746e; border-radius: 7px; background: transparent; color: #d9e8df; cursor: pointer; }
.reset-button:hover { border-color: var(--mint); color: var(--mint); }
.stage-actions > span { margin-left: auto; color: #9bb6ac; font: 750 11px ui-monospace, Consolas, monospace; }
.trace-label { display: flex; justify-content: space-between; padding: 0 2px 11px; color: #83a9a0; }
.timeline { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.step { display: flex; gap: 13px; min-height: 65px; padding: 12px 14px; border: 1px solid #385450; border-radius: 7px; background: #19332f; transition: background .3s, border-color .3s, opacity .3s; }
.step.waiting { opacity: .48; background: #162b2c; }
.step.complete { border-color: #568d63; }
.step-marker { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #66926b; border-radius: 5px; background: #2b5544; color: var(--mint); font: 800 10px ui-monospace, Consolas, monospace; }
.step strong { display: block; margin: 1px 0 3px; font-size: 12px; }
.step p { font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.metrics > div { padding: 13px 15px; border: 1px solid #3e5a54; border-radius: 7px; background: #193630; }
.metrics span { display: block; color: #a4c2b1; font-size: 10px; }
.metrics strong { display: block; margin-top: 4px; color: var(--mint); font-size: 25px; line-height: 1.2; }
.boundary { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10vw; padding-top: 90px; padding-bottom: 100px; background: #163733; color: #eef8ee; }
.boundary .eyebrow { color: var(--mint); }
.boundary h2 { margin-bottom: 0; }
.boundary p { margin: 0 0 16px; color: #b8d1c3; font-size: 14px; line-height: 1.85; }
.boundary-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; }
.boundary a { color: var(--mint); font-size: 12px; font-weight: 800; }
.boundary a:hover { color: #fff; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; min-height: 92px; color: #8caaa1; background: var(--ink); font-size: 11px; }
.footer-brand { color: #f4f8f2; font-size: 18px; font-weight: 850; letter-spacing: -.05em; }
.footer-brand span { color: var(--mint); }
footer > a:last-child:hover { color: var(--mint); }
@media (max-width: 980px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 28px; }
  .intro h1 { font-size: clamp(45px, 5.8vw, 68px); }
  .capability-bar > div { display: block; min-height: 88px; }
  .capability-bar span { display: block; margin-bottom: 7px; }
  .how { gap: 45px; }
  .simulator-grid { grid-template-columns: 255px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-header, .intro, .capability-bar, .how, .simulator, .boundary, footer { padding-left: 22px; padding-right: 22px; }
  .intro { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 80px; }
  .delivery-map { justify-self: start; max-width: 560px; transform: none; }
  .how, .boundary { grid-template-columns: 1fr; gap: 30px; padding-top: 75px; padding-bottom: 75px; }
  .simulator-grid { grid-template-columns: 1fr; }
  .scenario-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .fixture-badge { display: inline-block; margin-top: 17px; }
}
@media (max-width: 560px) {
  .site-header { min-height: 70px; }
  .site-header nav { gap: 12px; }
  .site-header nav a:first-child { display: none; }
  .nav-source { padding: 8px; }
  .brand { font-size: 20px; }
  .intro { padding-top: 58px; }
  .intro h1 { font-size: clamp(43px, 11vw, 60px); }
  .intro-copy > p:not(.intro-disclaimer) { font-size: 14px; }
  .intro-links { gap: 18px; }
  .capability-bar { display: block; }
  .capability-bar > div { min-height: 0; padding: 17px 0; border-left: 0; border-bottom: 1px solid #37514a; }
  .capability-bar > div:last-child { border-right: 0; border-bottom: 0; }
  .capability-bar span { display: inline-block; min-width: 82px; margin: 0; }
  .how h2, .section-heading h2, .boundary h2 { font-size: clamp(31px, 8vw, 40px); }
  .simulator { padding-top: 70px; padding-bottom: 80px; }
  .scenario-panel { padding: 16px; }
  .scenario-button { min-height: 77px; padding: 10px 24px 10px 10px; }
  .scenario-button::after { right: 8px; }
  .scenario-button strong { font-size: 11px; }
  .stage { padding: 0 17px 20px; }
  .stage-header span:last-child { display: none; }
  .stage-top { display: block; }
  .state { display: inline-block; margin-top: 15px; }
  .metrics > div { padding: 10px; }
  .metrics strong { font-size: 21px; }
  .boundary-links { display: grid; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
