:root {
  --bg: #0b0e13;
  --surface: #11161d;
  --surface-raised: #171d26;
  --line: #222b37;
  --line-strong: #2f3b4b;
  --text: #e3e9f0;
  --text-muted: #8f9cad;
  --text-faint: #5f6c7d;

  --imports: #4c9dff;
  --dependents: #f08c3a;
  --hot: #e5484d;
  --warm: #e9a23b;
  --cold: #4a5a6c;
  --heat: linear-gradient(90deg, #4a5a6c, #66788a 18%, #d8b04a 42%, #ec7f31 68%, #e5383b);

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 7.4vw, 92px);
}

h2 {
  font-size: clamp(30px, 4.2vw, 52px);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

p code,
li code,
span code {
  font-size: 0.86em;
  padding: 0.1em 0.38em;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 5px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--imports);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--warm);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    background-color 200ms,
    border-color 200ms;
}

.nav.is-stuck {
  background: rgb(11 14 19 / 86%);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Three bars of a tiny skyline: cold, hot, warm. */
.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.brand-mark i {
  width: 5px;
  height: 9px;
  background: var(--cold);
}

.brand-mark i:nth-child(2) {
  height: 18px;
  background: var(--hot);
}

.brand-mark i:nth-child(3) {
  height: 13px;
  background: var(--warm);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 120ms,
    border-color 120ms,
    color 120ms;
}

.button:hover {
  background: #fff;
  border-color: #fff;
}

.button-small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-ghost:hover {
  background: var(--surface-raised);
  border-color: var(--text-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(100svh, 720px);
  padding: 128px var(--gutter) 28px;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

/* Keeps the headline readable over the city without hiding the skyline. */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 14 19 / 92%) 0%, rgb(11 14 19 / 62%) 38%, transparent 68%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 24px;
  max-width: 660px;
}

.lead {
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
}

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

.command {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 8px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 15px;
  transition: border-color 120ms;
}

.command:hover {
  border-color: var(--text-muted);
}

.command-prompt {
  color: var(--warm);
}

.command-hint {
  padding: 5px 10px;
  background: var(--surface-raised);
  border-radius: 5px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-muted);
}

.command.is-copied .command-hint {
  background: var(--text);
  color: var(--bg);
}

.command-large {
  height: 60px;
  padding-left: 22px;
  font-size: 19px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-faint);
}

.hero-timeline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 14px;
  width: min(560px, 100%);
  margin-top: auto;
  padding: 12px 16px;
  background: rgb(17 22 29 / 88%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.hero-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.hero-track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.hero-timeline-note {
  grid-column: 2;
  font-size: 12px;
  color: var(--text-faint);
}

input[type='range'] {
  width: 100%;
  height: 20px;
  margin: 0;
  background: none;
  appearance: none;
  cursor: ew-resize;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--heat);
  border-radius: 2px;
}

input[type='range']::-moz-range-track {
  height: 4px;
  background: var(--heat);
  border-radius: 2px;
}

input[type='range']::-webkit-slider-thumb {
  width: 4px;
  height: 20px;
  margin-top: -8px;
  background: #fff;
  border-radius: 2px;
  appearance: none;
}

input[type='range']::-moz-range-thumb {
  width: 4px;
  height: 20px;
  background: #fff;
  border: 0;
  border-radius: 2px;
}

/* ---------- Proof strip ---------- */

.proof {
  display: grid;
  gap: 20px;
  padding: 36px var(--gutter);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.proof-label {
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  font-size: 14px;
  color: var(--text-muted);
}

.proof-label strong {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.proof-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.proof-stats dt {
  font-size: 14px;
  color: var(--text-muted);
}

.proof-stats dd {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* ---------- Sections ---------- */

.section {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) 0;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head > p:not(.eyebrow) {
  font-size: 19px;
  color: var(--text-muted);
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pain {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px;
  background: var(--surface);
}

.pain + .pain {
  border-left: 1px solid var(--line);
}

.pain-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
}

.pain p {
  color: var(--text-muted);
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
}

.shot img,
.travel,
.code {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgb(0 0 0 / 50%);
}

.shot img {
  width: 100%;
}

.shot figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
}

.legend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.encodings {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.encodings li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.encodings p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--text-muted);
}

/* Small diagrams of each encoding, drawn with boxes. */
.glyph {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 44px;
  height: 44px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.glyph i {
  width: 6px;
  background: var(--text-muted);
}

.glyph-height i:nth-child(1) {
  height: 30%;
}

.glyph-height i:nth-child(2) {
  height: 100%;
  background: var(--text);
}

.glyph-height i:nth-child(3) {
  height: 55%;
}

.glyph-width i {
  height: 60%;
}

.glyph-width i:nth-child(2) {
  width: 18px;
  background: var(--text);
}

.glyph-heat {
  background: var(--heat);
  background-clip: content-box;
}

.glyph-district {
  align-items: center;
  background: var(--surface-raised);
}

.glyph-district i {
  width: 70%;
  height: 70%;
  background: none;
  border: 1px solid var(--text-muted);
}

.verdict {
  max-width: 820px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-left: 20px;
  border-left: 3px solid var(--hot);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.01em;
}

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.feature-flip .feature-copy {
  order: 2;
}

.feature-copy {
  display: grid;
  gap: 16px;
}

.feature-copy h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}

.feature-copy > p {
  color: var(--text-muted);
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--warm);
}

.travel {
  position: relative;
  aspect-ratio: 1920 / 1200;
  overflow: hidden;
  background: var(--surface);
}

.travel img,
.lens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.travel img.is-on,
.lens img.is-on {
  opacity: 1;
}

.lens {
  position: relative;
  aspect-ratio: 1920 / 1200;
}

.lens img {
  transition: opacity 260ms;
}

.travel-controls {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.travel-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.callout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-muted);
}

.callout strong {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dependents);
  font-variant-numeric: tabular-nums;
}

.arc-legend {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

.arc-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arc {
  width: 22px;
  height: 0;
  border-top: 2px dashed;
}

.arc-imports {
  border-color: var(--imports);
}

.arc-dependents {
  border-color: var(--dependents);
}

.tabs {
  display: inline-flex;
  justify-self: start;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tabs button {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 15px;
  color: var(--text-muted);
}

.tabs button[aria-selected='true'] {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.lens-note {
  font-size: 15px;
  color: var(--text-faint) !important;
}

.code {
  overflow: hidden;
  background: var(--surface);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}

.code-copy {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: none;
  font-size: 13px;
}

.code-copy:hover {
  border-color: var(--text-muted);
}

.code pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.code pre b {
  font-weight: 500;
  color: var(--text);
}

/* ---------- Pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pipeline li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 20px 0 0;
  border-top: 1px solid var(--line-strong);
}

.step {
  position: absolute;
  top: -13px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--bg);
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
}

.pipeline p {
  font-size: 15px;
  color: var(--text-muted);
}

.languages {
  display: grid;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.languages ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages li {
  display: grid;
  gap: 2px;
}

.languages b {
  font-family: var(--mono);
  font-weight: 500;
}

.languages span,
.languages > p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.roadmap li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.roadmap span {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
  color: var(--text-faint);
}

.roadmap .is-done {
  color: var(--text);
}

.roadmap .is-done span {
  color: var(--warm);
}

/* ---------- CTA and footer ---------- */

.cta {
  display: grid;
  justify-items: center;
  gap: 32px;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  border-block: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  text-align: center;
}

.cta h2 {
  max-width: 760px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 32px var(--gutter);
  font-size: 14px;
  color: var(--text-muted);
}

.footer p {
  margin-right: auto;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav .button-small {
    margin-left: auto;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgb(11 14 19 / 94%) 0%, rgb(11 14 19 / 70%) 46%, transparent 74%),
      linear-gradient(0deg, var(--bg) 0%, transparent 18%);
  }

  .legend-layout,
  .feature {
    grid-template-columns: 1fr;
  }

  .feature-flip .feature-copy {
    order: 0;
  }

  .pains {
    grid-template-columns: 1fr;
  }

  .pain + .pain {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline li {
    padding: 0 0 28px 44px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .step {
    top: 0;
    left: -13px;
  }

  .languages ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 104px;
  }

  .travel-labels span:nth-child(2) {
    display: none;
  }

  .roadmap li {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lens img {
    transition: none;
  }
}
