:root {
  --ink: #171b17;
  --paper: #f2f0e8;
  --cream: #faf8f1;
  --green: #ccff3b;
  --deep-green: #294a24;
  --red: #e54332;
  --amber: #f1ae2f;
  --line: rgba(23, 27, 23, .15);
  --muted: #696e68;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 72px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center;
  position: sticky; top: 0; z-index: 20; color: var(--cream); background: rgba(23, 27, 23, .96);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; color: var(--ink); background: var(--green); border-radius: 5px 5px 14px 5px; font-family: serif; font-weight: 900; }
.brand-mark.small { width: 28px; height: 28px; }
.topbar nav { margin-left: auto; display: flex; gap: 32px; }
.topbar nav a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: var(--green); }
.prototype-tag { margin-left: 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 12px; font-size: 12px; }

.hero { min-height: 650px; padding: 94px clamp(22px, 7vw, 112px) 70px; color: var(--cream); background: var(--ink); position: relative; overflow: hidden; }
.hero::after { content: "STOP"; position: absolute; right: -2vw; bottom: -12vh; font-weight: 900; font-size: clamp(140px, 22vw, 360px); line-height: .8; letter-spacing: -.08em; color: rgba(204,255,59,.055); pointer-events: none; }
.eyebrow, .section-kicker { color: var(--deep-green); font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--green); }
.hero h1 { max-width: 1050px; margin: 22px 0; font-size: clamp(42px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: var(--green); }
.hero-copy { max-width: 760px; color: rgba(255,255,255,.63); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.primary-button, .ghost-button { min-height: 48px; padding: 0 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-weight: 750; }
.primary-button { color: var(--ink); background: var(--green); border: 1px solid var(--green); }
.ghost-button { color: white; background: transparent; border: 1px solid rgba(255,255,255,.35); }
.hero-proof { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(120px, 180px)); gap: 22px; margin-top: 68px; }
.hero-proof div { border-left: 1px solid rgba(255,255,255,.2); padding-left: 16px; }
.hero-proof strong { display: block; color: var(--green); font-size: 28px; }
.hero-proof span { display: block; margin-top: 5px; color: rgba(255,255,255,.5); font-size: 12px; }

.principle-strip { min-height: 68px; padding: 18px clamp(22px,5vw,76px); display: flex; align-items: center; justify-content: center; gap: 24px; background: var(--green); font-weight: 750; }
.principle-strip i { width: 4px; height: 4px; background: var(--ink); border-radius: 50%; }

.workspace, .evidence-section, .competition-section, .demo-story { padding: 96px clamp(22px, 5vw, 76px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 54px); letter-spacing: -.04em; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.7; }
.case-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.case-buttons button { padding: 9px 12px; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 999px; cursor: pointer; }
.case-buttons button:hover { background: white; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 20px; align-items: start; }
.input-panel, .result-panel { border-radius: 7px; }
.input-panel { padding: 8px 28px; background: var(--cream); border: 1px solid var(--line); }
.form-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section-title { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; font-weight: 800; }
.form-section-title span { color: var(--deep-green); font-family: ui-monospace, monospace; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { min-height: 46px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; text-align: center; font-size: 13px; }
.segmented input:checked + span { background: var(--ink); color: white; border-color: var(--ink); }
.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid label { color: var(--muted); font-size: 12px; }
.field-grid input { width: 100%; height: 43px; margin-top: 7px; padding: 0 11px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 4px; outline: none; }
.field-grid input:focus { border-color: var(--deep-green); box-shadow: 0 0 0 3px rgba(41,74,36,.1); }
.range-field { margin-top: 17px; }
.range-field label { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }
.range-field output { color: var(--ink); font-weight: 750; }
.range-field input { width: 100%; margin-top: 10px; accent-color: var(--deep-green); }

.result-panel { position: sticky; top: 88px; display: grid; gap: 12px; }
.decision-card { padding: 26px; color: white; background: var(--ink); border-radius: 7px; }
.decision-topline { display: flex; justify-content: space-between; color: rgba(255,255,255,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.decision-word { margin-top: 16px; font-size: 64px; line-height: 1; font-weight: 950; letter-spacing: -.06em; }
.decision-word.go { color: var(--green); }
.decision-word.test { color: var(--amber); }
.decision-word.stop, .decision-word.exit { color: #ff6859; }
.decision-word.evidence { color: #91b8ff; font-size: 42px; }
.decision-card h3 { margin: 12px 0 7px; font-size: 19px; }
.decision-card p { margin: 0; color: rgba(255,255,255,.58); line-height: 1.65; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); border-radius: 7px; }
.metric-grid article { padding: 18px; background: var(--cream); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 11px; }
.metric-grid strong { display: block; margin: 7px 0; font-size: 24px; letter-spacing: -.03em; }
.scenario-card { padding: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 7px; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; }
.card-heading h3 { margin: 0; font-size: 15px; }
.card-heading span { color: var(--muted); font-size: 11px; }
.scenario-rows { margin-top: 18px; display: grid; gap: 13px; }
.scenario-row { display: grid; grid-template-columns: 58px 1fr 76px; gap: 10px; align-items: center; font-size: 11px; }
.scenario-row .bar { height: 7px; overflow: hidden; background: #e1e0d9; border-radius: 99px; }
.scenario-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--deep-green); }
.scenario-row.negative .bar i { background: var(--red); }
.scenario-row strong { text-align: right; font-size: 12px; }
.next-question-card { display: flex; gap: 13px; align-items: flex-start; padding: 18px; background: #e7edff; border: 1px solid #cdd8f6; border-radius: 7px; }
.pulse-dot { width: 9px; height: 9px; margin-top: 4px; flex: 0 0 auto; background: #4263c7; border-radius: 50%; box-shadow: 0 0 0 5px rgba(66,99,199,.12); }
.next-question-card span { display: block; color: #5b6a93; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.next-question-card strong { display: block; margin-top: 5px; color: #263b74; font-size: 12px; line-height: 1.55; }
.risk-list { display: grid; gap: 7px; }
.risk-item { display: flex; justify-content: space-between; padding: 10px 12px; color: var(--muted); background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.risk-item strong.high { color: var(--red); }
.risk-item strong.medium { color: #aa6a00; }
.risk-item strong.low { color: var(--deep-green); }
.disclaimer { margin: 0; color: #8b8e88; font-size: 10px; line-height: 1.5; }

.evidence-section { color: var(--cream); background: var(--ink); }
.section-heading.light .section-kicker { color: var(--green); }
.section-heading.light p { color: rgba(255,255,255,.55); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.evidence-grid article { min-height: 210px; padding: 28px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.evidence-grid strong { display: block; color: var(--green); font-size: 40px; }
.evidence-grid span { display: block; margin-top: 28px; font-weight: 800; }
.evidence-grid p { color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.6; }
.pipeline { margin-top: 54px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.pipeline div { min-height: 125px; padding: 16px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; }
.pipeline b { color: var(--green); font-family: ui-monospace, monospace; }
.pipeline span, .pipeline small { display: block; }
.pipeline span { margin-top: 19px; font-size: 13px; font-weight: 750; }
.pipeline small { margin-top: 5px; color: rgba(255,255,255,.42); line-height: 1.5; }
.pipeline em { color: var(--green); font-style: normal; }

.competition-section { display: grid; grid-template-columns: 1fr minmax(430px, .8fr); gap: 70px; align-items: center; background: var(--green); }
.competition-copy h2 { margin: 14px 0 20px; font-size: clamp(34px, 4.5vw, 64px); line-height: 1.06; letter-spacing: -.045em; }
.competition-copy p { max-width: 680px; line-height: 1.75; }
.scorecard { background: var(--ink); color: white; padding: 18px 24px; border-radius: 7px; box-shadow: 18px 18px 0 rgba(23,27,23,.13); }
.scorecard div, .scorecard footer { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 13px; }
.scorecard strong { color: var(--green); font: 800 20px ui-monospace, monospace; }
.scorecard footer { border: 0; color: rgba(255,255,255,.52); }
.scorecard footer strong { font-size: 28px; }

.demo-story { text-align: center; background: var(--cream); }
.demo-story h2 { margin: 12px 0 45px; font-size: clamp(32px, 4.5vw, 58px); letter-spacing: -.045em; }
.story-line { display: flex; justify-content: center; align-items: center; gap: 13px; flex-wrap: wrap; }
.story-line span { padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; }
.story-line i { color: var(--deep-green); font-style: normal; }
.demo-story > p { margin: 35px auto 0; color: var(--deep-green); font-weight: 800; }
.page-footer { padding: 38px clamp(22px,5vw,76px); display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: center; color: rgba(255,255,255,.48); background: var(--ink); font-size: 11px; }
.page-footer div { display: flex; align-items: center; gap: 9px; color: white; font-size: 15px; }
.page-footer p { text-align: center; }

@media (max-width: 980px) {
  .topbar nav { display: none; }
  .prototype-tag { margin-left: auto; }
  .hero-proof { grid-template-columns: repeat(2, minmax(120px, 180px)); }
  .principle-strip { flex-wrap: wrap; gap: 11px 18px; font-size: 13px; }
  .workbench-grid, .competition-section { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline em { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 620px) {
  .topbar { height: 62px; }
  .hero { padding-top: 68px; min-height: 610px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .field-grid.two, .field-grid.three, .segmented { grid-template-columns: 1fr; }
  .input-panel { padding: 6px 18px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .competition-section { gap: 40px; }
  .page-footer { grid-template-columns: 1fr; text-align: center; }
  .page-footer div { justify-content: center; }
  .page-footer p { margin: 0; }
}
