:root {
  color-scheme: light;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --surface-soft: #f6fafc;
  --ink: #121b2a;
  --muted: #5b6677;
  --line: #d8e2ea;
  --line-strong: #b9cbd8;
  --baseline: #2d9cdb;
  --teal: #007a8a;
  --candidate: #006be6;
  --stable: #2fbf71;
  --watch: #f2b705;
  --alert: #d84535;
  --unknown: #8e55c7;
  --shadow: 0 18px 45px rgba(30, 52, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(251, 252, 253, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #e7f7fa;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nav a:hover {
  color: var(--teal);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(620px, 1.62fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 4vw, 48px) 28px;
}

.hero-copy {
  max-width: 560px;
}

h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: 0;
}

.lead {
  margin: 30px 0 0;
  color: #263247;
  max-width: 500px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

blockquote {
  margin: 28px 0 0;
  padding: 20px 22px;
  max-width: 520px;
  color: #152030;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
}

.truth-note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  margin-top: 34px;
  color: #1c2637;
}

.truth-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.truth-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.sim-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pressure-row {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) 280px;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

label,
.policy strong,
.field-head h2,
.signal-grid h3 {
  display: block;
  color: #0e1728;
  font-size: 13px;
  font-weight: 750;
}

output {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 30px;
  line-height: 1;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.policy {
  min-height: 86px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
}

.policy p {
  margin: 10px 0 0;
  color: #314057;
  font-size: 13px;
  line-height: 1.45;
}

.status-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.status-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 66px;
  padding: 17px 16px;
  border-right: 1px solid var(--line);
  color: #172235;
  font-size: 13px;
  font-weight: 720;
}

.status-item:last-child {
  border-right: 0;
}

.status-item small {
  display: block;
  grid-column: 2;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.status-item span {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: 50%;
  background: currentColor;
}

.status-item.candidate span,
.status-item.unknown span {
  background: transparent;
  border: 2px solid currentColor;
}

.status-item.watch span {
  border-radius: 2px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.status-item.alert span {
  border-radius: 2px;
  transform: rotate(45deg);
}

.status-item.stable {
  color: var(--stable);
}

.status-item.candidate {
  color: var(--candidate);
}

.status-item.watch {
  color: var(--watch);
}

.status-item.alert {
  color: var(--alert);
}

.status-item.unknown {
  color: var(--unknown);
}

.status-item.active {
  background: #f7fbfd;
  box-shadow: inset 0 -3px 0 currentColor;
}

.field-card {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 0;
}

.field-head h2 {
  margin: 0;
}

.field-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.field-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
}

.flow-lines path {
  fill: none;
  stroke: #0e7890;
  stroke-width: 1.6;
  opacity: 0.46;
}

.flow-lines .uncertain {
  stroke: var(--unknown);
  stroke-dasharray: 7 8;
  opacity: 0.45;
}

.ring {
  fill: none;
  stroke: var(--baseline);
  stroke-width: 1;
  opacity: 0.28;
}

.node {
  stroke: #ffffff;
  stroke-width: 6;
}

.node.halo {
  fill: none;
  stroke-width: 2;
  opacity: 0.55;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.25fr;
  gap: 0;
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.metrics > div {
  min-height: 78px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.metrics > div:last-child {
  border-right: 0;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  color: #111c2e;
  font-size: 25px;
  line-height: 1;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.metrics small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.approval {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.approval strong {
  color: var(--alert);
  font-size: 20px;
}

.approval.approved strong {
  color: var(--stable);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
}

.signal-grid article {
  min-height: 126px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-grid h3 {
  margin: 0 0 16px;
}

.signal-grid p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.signal-grid strong {
  color: #142033;
}

.live-evidence {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #f7fbfd;
}

.section-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-top: 14px;
}

.evidence-head h2 {
  margin: 0;
  max-width: 820px;
  color: #101b2e;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.evidence-head p {
  margin: 0;
  color: #334255;
  font-size: 16px;
  line-height: 1.62;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.evidence-strip article {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.evidence-strip article:last-child {
  border-right: 0;
}

.evidence-strip span,
.evidence-grid dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.evidence-strip strong {
  display: block;
  margin-top: 12px;
  color: #087342;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.evidence-strip small {
  display: block;
  margin-top: 9px;
  color: #334255;
  font-size: 13px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.evidence-grid article {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.evidence-grid h3 {
  margin: 0;
  color: #101b2e;
  font-size: 17px;
}

.evidence-grid .big {
  margin: 18px 0 6px;
  color: var(--teal);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.evidence-grid p {
  color: #344154;
  font-size: 14px;
  line-height: 1.5;
}

.evidence-grid code {
  color: #102033;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.evidence-grid dl {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.evidence-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-grid dd {
  margin: 0;
  color: #122033;
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.claim-callout {
  margin-top: 18px;
  padding: 22px 24px;
  color: #142033;
  background: #edf8f4;
  border: 1px solid #bfe0d2;
  border-left: 4px solid var(--stable);
  border-radius: 8px;
}

.claim-callout strong {
  display: block;
  font-size: 14px;
}

.claim-callout p {
  margin: 9px 0 0;
  max-width: 980px;
  font-size: 17px;
  line-height: 1.5;
}

.claim-callout span {
  display: block;
  margin-top: 10px;
  color: #486052;
  font-size: 13px;
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 36px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.method-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.method-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--teal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 800;
}

.method-step strong {
  color: #132035;
  font-size: 15px;
}

.method-step p {
  grid-column: 2;
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.claim-boundary {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(52px, 8vw, 110px) clamp(18px, 4vw, 48px);
}

.claim-boundary h2 {
  margin: 0;
  color: #111c2e;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.claim-boundary p,
.claim-boundary li {
  color: #344154;
  font-size: 17px;
  line-height: 1.6;
}

.claim-boundary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.claim-boundary li {
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.claim-boundary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  h1 {
    max-width: 760px;
  }
}

@media (max-width: 780px) {
  .topbar {
    position: relative;
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  blockquote {
    font-size: 13px;
  }

  .pressure-row,
  .status-rail,
  .metrics,
  .signal-grid,
  .evidence-head,
  .evidence-strip,
  .evidence-grid,
  .method,
  .claim-boundary {
    grid-template-columns: 1fr;
  }

  .evidence-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .evidence-strip article:last-child {
    border-bottom: 0;
  }

  .pressure-row {
    gap: 16px;
  }

  .policy {
    min-height: auto;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .status-item,
  .metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics > div:last-child {
    border-bottom: 0;
  }

  .field-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
