:root {
  --ink: #0A1628;
  --ink-2: #1A2B40;
  --ink-soft: #4A5D73;
  --muted: #6B7C90;
  --line: #D7E0EA;
  --line-soft: #E8EEF4;
  --surface: #FFFFFF;
  --bg: #EEF3F7;
  --bg-deep: #E2EBF2;
  --teal: #0D9488;
  --teal-bright: #14B8A6;
  --teal-soft: #CCFBF1;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --rose: #E11D48;
  --ok: #059669;
  --warn: #D97706;
  --crit: #DC2626;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --pad: clamp(18px, 4.5vw, 48px);
  --radius: 4px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(238, 243, 247, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(238, 243, 247, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav__links {
  display: none;
  gap: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.nav__links a {
  position: relative;
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: none;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover { background: var(--teal); transform: translateY(-1px); }

.nav__burger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s;
}

.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__burger.is-open span::after { top: 0; transform: rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 auto;
  z-index: 49;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--pad) 28px;
  box-shadow: var(--shadow);
}

.nav-drawer.is-open { display: block; animation: drawerIn 0.35s var(--ease); }

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.nav-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 500;
}

.nav-drawer .btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger, .nav-drawer { display: none !important; }
  .nav { height: 72px; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--teal {
  background: var(--teal);
  color: #fff;
}

.btn--teal:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 100px 0 clamp(40px, 7vw, 72px);
  overflow: hidden;
  color: #F4F7FA;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 70% at 85% 15%, rgba(20, 184, 166, 0.28) 0%, transparent 55%),
    radial-gradient(70% 60% at 10% 90%, rgba(217, 119, 6, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #07101C 0%, #0A1628 45%, #12253A 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-48px, -48px); }
}

.hero__orb {
  position: absolute;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  right: -5%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(20, 184, 166, 0.45), transparent 65%);
  filter: blur(8px);
  animation: orbPulse 7s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero__console {
  position: absolute;
  right: max(4%, calc(50% - 520px));
  top: 18%;
  width: min(42vw, 380px);
  aspect-ratio: 4/3;
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 12px;
  opacity: 0;
  animation: consoleIn 1.1s var(--ease) 0.35s forwards;
  display: none;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero__console { display: block; }
}

@keyframes consoleIn {
  from { opacity: 0; transform: translateY(24px) rotate(-1deg); }
  to { opacity: 0.9; transform: none; }
}

.hero__console-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.hero__console-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hero__console-bar i:nth-child(1) { background: #F87171; }
.hero__console-bar i:nth-child(2) { background: #FBBF24; }
.hero__console-bar i:nth-child(3) { background: #34D399; }

.hero__console-rows {
  display: grid;
  gap: 6px;
}

.hero__console-rows span {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: rgba(20, 184, 166, 0.15);
  animation: rowPulse 2.4s ease-in-out infinite;
}

.hero__console-rows span:nth-child(1) { width: 88%; animation-delay: 0s; }
.hero__console-rows span:nth-child(2) { width: 64%; animation-delay: 0.2s; background: rgba(217, 119, 6, 0.25); }
.hero__console-rows span:nth-child(3) { width: 76%; animation-delay: 0.4s; }
.hero__console-rows span:nth-child(4) { width: 42%; animation-delay: 0.6s; }
.hero__console-rows span:nth-child(5) { width: 70%; animation-delay: 0.8s; height: 28px; margin-top: 6px; }

@keyframes rowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__brand-signal {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 28px;
  color: #fff;
}

.hero__brand-signal span {
  color: var(--teal-bright);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 5.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 18px;
}

.hero__lede {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(244, 247, 250, 0.78);
  max-width: 36ch;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, 0.5);
}

.hero__meta b {
  display: block;
  color: rgba(244, 247, 250, 0.9);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--sans);
  font-size: 14px;
}

/* —— Sections common —— */
section {
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
}

.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.sec-label::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--teal);
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 20ch;
}

.sec-lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.65;
}

.sec-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* —— Problems —— */
.problems {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.problem-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}

.problem {
  background: var(--surface);
  padding: clamp(22px, 3vw, 32px);
  transition: background 0.25s;
}

.problem:hover { background: var(--bg); }

.problem__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.problem h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.problem p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* —— Solution —— */
.solution {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(20, 184, 166, 0.08), transparent),
    var(--bg);
}

.twin {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .twin { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.twin__card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.twin__card:hover {
  border-color: var(--teal-bright);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.twin__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.twin__card--b::before {
  background: linear-gradient(90deg, var(--amber), #FBBF24);
}

.twin__code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.twin__card--b .twin__code { color: var(--amber); }

.twin__card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.twin__card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.twin__list {
  display: grid;
  gap: 10px;
}

.twin__list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  align-items: flex-start;
}

.twin__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  flex: none;
  background: var(--teal-bright);
  border-radius: 1px;
}

.twin__card--b .twin__list li::before { background: var(--amber); }

.bridge {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--ink);
  color: #E8EEF4;
  display: grid;
  gap: 12px;
}

@media (min-width: 700px) {
  .bridge {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
  }
}

.bridge__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.bridge p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(232, 238, 244, 0.88);
}

/* —— Demo simulator —— */
.demo-sec {
  background: var(--ink);
  color: #E8EEF4;
  overflow: hidden;
}

.demo-sec .sec-label { color: var(--teal-bright); }
.demo-sec .sec-label::before { background: var(--teal-bright); }
.demo-sec .sec-title { color: #fff; max-width: 22ch; }
.demo-sec .sec-lede { color: rgba(232, 238, 244, 0.72); }

.sim {
  margin-top: 8px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  background: #0D1A2B;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.sim__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #111F32;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.sim__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.sim__modes {
  display: flex;
  gap: 6px;
}

.sim__mode {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(232, 238, 244, 0.7);
  transition: 0.2s;
}

.sim__mode.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.sim__body {
  display: grid;
}

@media (min-width: 840px) {
  .sim__body { grid-template-columns: 200px 1fr; }
}

.sim__steps {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0A1524;
}

@media (min-width: 840px) {
  .sim__steps {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.sim__steps h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.45);
  margin-bottom: 14px;
}

.sim__step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: rgba(232, 238, 244, 0.55);
}

.sim__step.is-done { color: var(--teal-bright); }
.sim__step.is-current {
  color: #fff;
  font-weight: 600;
}

.sim__step-n {
  font-family: var(--mono);
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex: none;
}

.sim__step.is-done .sim__step-n {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.sim__step.is-current .sim__step-n {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.sim__panel {
  padding: clamp(18px, 3vw, 28px);
}

.sim__guide {
  display: none;
  padding: 12px 14px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: #99F6E4;
  margin-bottom: 18px;
}

.sim.is-training .sim__guide { display: block; }

.sim__form {
  display: grid;
  gap: 14px;
}

.sim__field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(232, 238, 244, 0.65);
  margin-bottom: 6px;
}

.sim__field input,
.sim__field select {
  width: 100%;
  padding: 12px 14px;
  background: #0A1524;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.sim__field input:focus,
.sim__field select:focus {
  border-color: var(--teal-bright);
}

.sim__field input.is-error {
  border-color: var(--crit);
  background: rgba(220, 38, 38, 0.08);
}

.sim__field input.is-ok {
  border-color: var(--ok);
}

.sim__hint {
  font-size: 12.5px;
  margin-top: 6px;
  min-height: 1.2em;
}

.sim__hint.is-error { color: #FCA5A5; }
.sim__hint.is-ok { color: #6EE7B7; }

.sim__row {
  display: grid;
  gap: 14px;
}

@media (min-width: 560px) {
  .sim__row { grid-template-columns: 1fr 1fr; }
}

.sim__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sim__timer {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(232, 238, 244, 0.55);
}

.sim__timer b {
  color: var(--amber);
  font-weight: 500;
}

.sim__result {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.35);
}

.sim__result.is-show { display: block; animation: drawerIn 0.4s var(--ease); }

.sim__result h4 {
  font-family: var(--display);
  font-size: 18px;
  color: #6EE7B7;
  margin-bottom: 8px;
}

.sim__result p {
  font-size: 14px;
  color: rgba(232, 238, 244, 0.75);
  margin-bottom: 12px;
}

.sim__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sim__metric {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
}

.sim__metric b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 2px;
}

.sim__metric span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.45);
}

/* —— Skill Matrix —— */
.matrix-sec {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.levels {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
}

.level-chip {
  flex: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.level-chip strong {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 2px;
}

.heatmap {
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

.heatmap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.heatmap th,
.heatmap td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.heatmap th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  position: sticky;
  top: 0;
}

.heatmap th:first-child,
.heatmap td:first-child {
  text-align: left;
  font-weight: 600;
  padding-left: 16px;
  white-space: nowrap;
}

.heatmap td:first-child {
  color: var(--ink);
  background: var(--surface);
}

.cell {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.cell--ok { background: #A7F3D0; color: #065F46; }
.cell--mid { background: #FDE68A; color: #92400E; }
.cell--no { background: #FECACA; color: #991B1B; }
.cell--pend { background: var(--line-soft); color: var(--muted); }

.matrix-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.matrix-note strong { color: var(--ink); }

/* —— Roadmap —— */
.roadmap {
  background:
    radial-gradient(50% 40% at 0% 100%, rgba(217, 119, 6, 0.07), transparent),
    var(--bg);
}

.phases {
  display: grid;
  gap: 0;
  position: relative;
}

.phase {
  display: grid;
  gap: 8px;
  padding: 24px 0 24px 28px;
  border-left: 2px solid var(--line);
  position: relative;
}

.phase::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
}

.phase:last-child { padding-bottom: 0; }

.phase__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.phase h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phase p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 56ch;
}

.phase__time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 800px) {
  .phases {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .phase {
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 24px;
    background: var(--surface);
  }
  .phase::before { display: none; }
}

/* —— Next steps —— */
.next {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.checklist {
  display: grid;
  gap: 12px;
}

@media (min-width: 700px) {
  .checklist { grid-template-columns: 1fr 1fr; }
}

.check {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14.5px;
  color: var(--ink-2);
  align-items: flex-start;
}

.check__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--teal);
  border-radius: 3px;
  flex: none;
  margin-top: 2px;
}

.docs-links {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.docs-links h3 {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 14px;
}

.docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-grid a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: 0.2s;
}

.docs-grid a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* —— CTA final —— */
.cta-final {
  background: var(--ink);
  color: #E8EEF4;
  text-align: center;
  padding: clamp(72px, 10vw, 120px) 0;
}

.cta-final .sec-label {
  justify-content: center;
  color: var(--teal-bright);
}

.cta-final .sec-label::before { display: none; }

.cta-final h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
  margin: 0 auto 16px;
}

.cta-final p {
  color: rgba(232, 238, 244, 0.7);
  max-width: 42ch;
  margin: 0 auto 28px;
  font-size: 17px;
}

.cta-final .hero__cta {
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  background: #07101C;
  color: rgba(232, 238, 244, 0.55);
  padding: 36px 0;
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}

.footer-inner strong {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}

.footer-inner a:hover { color: var(--teal-bright); }

/* —— Mobile polish —— */
@media (max-width: 559px) {
  .hero h1 { max-width: 14ch; }
  .sim__metrics { grid-template-columns: 1fr; }
  .sim__metrics .sim__metric { display: grid; grid-template-columns: auto 1fr; gap: 8px; text-align: left; align-items: center; }
  .sim__metrics .sim__metric b { margin: 0; }
}
