:root {
  color-scheme: light;
  --ink: oklch(22% 0.045 260);
  --ink-soft: oklch(38% 0.04 260);
  --paper: oklch(97% 0.008 260);
  --paper-warm: oklch(94% 0.018 72);
  --navy: oklch(20% 0.08 260);
  --navy-2: oklch(28% 0.105 255);
  --blue: oklch(57% 0.19 252);
  --cyan: oklch(72% 0.135 218);
  --orange: oklch(72% 0.18 51);
  --red: oklch(58% 0.2 28);
  --green: oklch(62% 0.16 151);
  --line: oklch(84% 0.018 260);
  --muted: oklch(68% 0.025 260);
  --surface: oklch(99% 0.005 260);
  --shadow: 0 24px 80px oklch(20% 0.06 260 / 14%);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Aptos,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: oklch(97% 0.01 260 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 136px;
  text-decoration: none;
}

.brand-lockup img {
  width: 132px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 26px);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.header-nav a {
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.header-nav a:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.hero-section {
  position: relative;
  min-height: clamp(640px, calc(100vh - 72px), 780px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 60px);
  overflow: hidden;
  background:
    linear-gradient(90deg, oklch(14% 0.075 260 / 97%), oklch(21% 0.09 255 / 88%) 52%, oklch(28% 0.1 250 / 68%)),
    var(--navy);
  color: oklch(96% 0.01 250);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

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

.eyebrow,
.section-kicker,
.chart-label {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.1rem, 7.2vw, 6.6rem);
  line-height: 0.9;
  font-weight: 860;
}

.hero-lede {
  max-width: 68ch;
  margin: clamp(22px, 4vw, 34px) 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.36rem);
  color: oklch(91% 0.024 250);
}

.hero-caveat {
  max-width: 70ch;
  margin: 16px 0 0;
  color: oklch(82% 0.035 248);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}

.primary-action {
  color: oklch(18% 0.06 260);
  background: var(--orange);
}

.secondary-action {
  color: oklch(93% 0.01 250);
  border: 1px solid oklch(88% 0.02 250 / 48%);
  background: oklch(25% 0.07 260 / 46%);
}

.primary-action.dark {
  color: oklch(96% 0.01 250);
  background: var(--navy);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 1px;
  background: oklch(96% 0.01 250 / 20%);
  border: 1px solid oklch(92% 0.02 250 / 36%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: clamp(18px, 2.5vw, 26px);
  background: oklch(15% 0.055 260 / 74%);
}

.panel-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
  font-weight: 860;
  color: var(--cyan);
}

.panel-label {
  display: block;
  margin-top: 8px;
  color: oklch(86% 0.02 250);
  font-size: 0.94rem;
}

.intro-band,
.content-section,
.visual-section,
.evolution-section,
.final-band {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.intro-band {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.split-copy {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.split-copy h2,
.section-heading h2,
.final-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.98;
  font-weight: 840;
}

.split-copy p,
.section-heading p,
.roadmap-item p,
.process-step p,
.chart-copy p,
.site-footer p {
  color: var(--ink-soft);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 0.95fr);
  gap: clamp(22px, 5vw, 80px);
  align-items: end;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:last-child {
  max-width: 68ch;
  margin: 0;
}

.insight-showcase {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.insight-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.insight-card.featured {
  grid-column: span 2;
  min-height: 380px;
  color: oklch(96% 0.01 250);
  background: var(--navy);
  overflow: hidden;
}

.insight-card.featured .insight-body {
  max-width: 52ch;
}

.insight-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.insight-card p {
  margin: 0;
  color: var(--ink-soft);
}

.insight-card.featured p {
  color: oklch(86% 0.02 250);
}

.insight-rank {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: oklch(91% 0.02 260);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.insight-card.featured .metric-pill {
  background: oklch(36% 0.09 255);
  color: oklch(94% 0.01 250);
}

.insight-image {
  margin-top: 22px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid oklch(90% 0.02 250 / 35%);
  background: oklch(23% 0.06 260);
}

.visual-section {
  background: oklch(21% 0.07 260);
  color: oklch(96% 0.01 250);
}

.visual-section .section-heading p {
  color: oklch(82% 0.025 250);
}

.process-flow {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid oklch(78% 0.04 250 / 34%);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step {
  position: relative;
  min-height: 260px;
  padding: clamp(20px, 3vw, 32px);
  background: oklch(25% 0.08 258);
}

.process-step + .process-step {
  border-left: 1px solid oklch(78% 0.04 250 / 34%);
}

.step-index {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 850;
}

.process-step h3 {
  margin: 54px 0 14px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.process-step p {
  margin: 0;
  color: oklch(83% 0.025 250);
}

.charts-section {
  background: var(--paper);
}

.chart-stack {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.chart-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(360px, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.chart-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.chart-copy p {
  margin: 0 0 16px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-swatch.severe {
  background: var(--red);
}

.legend-swatch.warm,
.legend-swatch.gate {
  background: var(--orange);
}

.legend-swatch.blue,
.legend-swatch.model {
  background: var(--blue);
}

.legend-swatch.pale {
  background: var(--cyan);
}

.chart-canvas {
  min-height: 320px;
  width: 100%;
  overflow: hidden;
}

.chart-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}

.axis-label,
.bar-label,
.metric-note {
  font-size: 12px;
  fill: var(--ink-soft);
}

.bar-value {
  font-size: 13px;
  font-weight: 800;
  fill: var(--ink);
}

.simulation-section {
  background: oklch(95% 0.014 250);
}

.duel-section {
  background: oklch(98% 0.008 95);
}

.duel-card {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.duel-main h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.95;
}

.duel-main p,
.duel-probabilities p {
  color: var(--ink-soft);
}

.duel-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: oklch(91% 0.04 55);
  color: oklch(33% 0.08 45);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.duel-probabilities {
  display: grid;
  gap: 12px;
}

.probability-row {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.probability-row span,
.probability-row strong {
  font-size: 0.9rem;
  font-weight: 850;
}

.probability-track {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: oklch(90% 0.018 260);
}

.probability-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.duel-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.duel-details div {
  padding: 14px;
  background: oklch(97% 0.008 260);
}

.duel-details dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.duel-details dd {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-weight: 850;
}

.model-section {
  background: var(--paper);
}

.model-report {
  max-width: var(--max);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.model-report div {
  padding: 18px;
  background: var(--surface);
}

.model-report strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  color: var(--navy);
}

.model-report span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.signal-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 760;
}

.coverage-strip {
  max-width: var(--max);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.coverage-item {
  padding: 18px;
  background: var(--surface);
}

.coverage-item strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--navy);
}

.coverage-item span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.standings-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.standing-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.standing-card h3 {
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.2rem;
}

.standing-card h3 span {
  color: var(--orange);
}

.standing-row {
  display: grid;
  grid-template-columns: 34px minmax(60px, 1fr) 42px 42px;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.standing-row.header {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.standing-row strong {
  color: var(--navy);
}

.missing-box {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid oklch(78% 0.09 55);
  background: oklch(94% 0.04 70);
  color: var(--ink);
}

.missing-box p {
  margin: 0;
}

.ready-box {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid oklch(76% 0.08 151);
  background: oklch(94% 0.04 151);
  color: var(--ink);
}

.ready-box p {
  margin: 0;
}

.evolution-section {
  background: var(--navy);
  color: oklch(96% 0.01 250);
}

.evolution-section .section-heading p {
  color: oklch(82% 0.025 250);
}

.roadmap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-item {
  min-height: 220px;
  padding: 22px;
  border: 1px solid oklch(80% 0.035 250 / 34%);
  border-radius: var(--radius);
  background: oklch(25% 0.08 258);
}

.roadmap-item span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 840;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roadmap-item h3 {
  margin: 46px 0 12px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.roadmap-item p {
  margin: 0;
  color: oklch(84% 0.023 250);
}

.final-band {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer img {
  width: 170px;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .hero-section,
  .split-copy,
  .section-heading,
  .chart-panel,
  .duel-card,
  .final-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    align-items: start;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .process-flow,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step + .process-step {
    border-left: 0;
  }

  .process-step:nth-child(2n),
  .roadmap-item:nth-child(2n) {
    border-left: 1px solid oklch(78% 0.04 250 / 34%);
  }
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .insight-card.featured {
    grid-column: span 1;
  }

  .coverage-strip,
  .duel-details,
  .model-report,
  .process-flow,
  .roadmap,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .process-step:nth-child(2n),
  .roadmap-item:nth-child(2n) {
    border-left: 0;
  }

  .chart-canvas {
    min-height: 280px;
  }
}
