@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #141414;
  --ink-deep: #0a1d22;
  --ink-soft: #1e1e1e;
  --paper: #ece7dc;
  --muted: rgba(236, 231, 220, 0.68);
  --faint: rgba(236, 231, 220, 0.52);
  --line: rgba(236, 231, 220, 0.14);
  --line-strong: rgba(236, 231, 220, 0.28);
  --coral: #ef765b;
  --blue: #9ad9eb;
  --yellow: #f5c44e;
  --max: 1460px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

:where([id]) {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 231, 220, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 231, 220, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

a:hover {
  color: var(--paper);
}

img,
video {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.mono {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.84);
  backdrop-filter: blur(12px);
}

.navin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Syne", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark .hl {
  position: relative;
  display: inline-block;
  letter-spacing: 0.03em;
}

.wordmark .front {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.wordmark .back {
  color: var(--paper);
  -webkit-text-stroke: 1.3px var(--paper);
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  font-size: 14px;
}

.navlinks a {
  color: var(--muted);
}

.navlinks a:hover {
  color: var(--paper);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1.5px solid var(--paper);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.button.dark {
  background: var(--paper);
  color: var(--ink);
}

.button:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.button.dark:hover {
  background: transparent;
  color: var(--paper);
}

#page-toc {
  position: fixed;
  top: 50%;
  right: clamp(14px, 1.6vw, 30px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
  font: 500 10px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#page-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  transition: color 0.15s ease;
}

#page-toc a::before {
  content: "";
  width: 10px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  transition: width 0.15s ease;
}

#page-toc a:hover,
#page-toc a.on {
  color: var(--paper);
}

#page-toc a.on::before {
  width: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 11vh, 132px) 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  top: -280px;
  right: -230px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(154, 217, 235, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 88px rgba(245, 196, 78, 0.025),
    0 0 0 176px rgba(239, 118, 91, 0.02);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(48px, 7vw, 110px);
  align-items: end;
}

.crumb {
  display: block;
  margin: 0 0 24px;
  color: var(--muted);
  font: 500 12px "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crumb .sep {
  margin: 0 8px;
  color: var(--faint);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Syne", sans-serif;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 920px;
  margin-top: 14px;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 800;
  line-height: 0.98;
}

.updated {
  margin: 20px 0 0;
  color: var(--faint);
  font: 500 12px "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.43;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.route-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(10, 29, 34, 0.92), rgba(20, 20, 20, 0.98)),
    var(--ink-deep);
}

.route-card::before {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -72px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(236, 231, 220, 0.17);
  border-radius: 50%;
}

.route-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-icon {
  width: 78px;
  height: 78px;
  display: block;
  border: 1px solid var(--line-strong);
}

.route-tag {
  max-width: 170px;
  color: var(--faint);
  font: 500 10px/1.5 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.route-line {
  position: relative;
  z-index: 1;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.route-line::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 6px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 13px);
}

.route-line li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 24px 31px;
}

.route-line li:last-child {
  padding-bottom: 0;
}

.route-line li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--ink-deep);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.route-line li:nth-child(2)::before {
  background: var(--coral);
}

.route-line li:nth-child(3)::before {
  background: var(--yellow);
}

.route-line strong {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  line-height: 1.15;
}

.route-line span {
  color: var(--faint);
  font: 500 10px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary {
  padding: 0 0 82px;
  border-bottom: 1px solid var(--line);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.summary-item {
  min-height: 210px;
  padding: 32px 30px;
  border-right: 1px solid var(--line);
  background: rgba(236, 231, 220, 0.025);
}

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

.summary-item .mono {
  display: block;
  margin-bottom: 42px;
}

.summary-item h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.summary-item p {
  margin: 0;
  color: var(--muted);
}

.section {
  position: relative;
  padding: clamp(72px, 10vh, 118px) 0;
  border-bottom: 1px solid var(--line);
}

.sectionhead {
  max-width: 1050px;
  margin-bottom: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.sectionhead h2 {
  max-width: 980px;
  margin: 12px 0;
  font-size: clamp(34px, 4.7vw, 62px);
  line-height: 1.02;
}

.sectioncopy {
  max-width: 82ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: journey;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey li {
  position: relative;
  min-height: 280px;
  padding: 25px 23px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  counter-increment: journey;
}

.journey li::before {
  content: "0" counter(journey);
  display: block;
  margin-bottom: 60px;
  color: var(--blue);
  font: 500 12px "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
}

.journey li:nth-child(3n + 2)::before {
  color: var(--coral);
}

.journey li:nth-child(3n)::before {
  color: var(--yellow);
}

.journey li::after {
  content: "";
  position: absolute;
  top: 31px;
  right: 22px;
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}

.journey h3 {
  margin-bottom: 16px;
  font-size: 23px;
  line-height: 1.15;
}

.journey p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.demo-slot {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  margin: 0 0 46px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-deep);
}

.demo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(154, 217, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 217, 235, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
}

.demo-placeholder {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 60px 34px;
  text-align: center;
}

.demo-symbol {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--paper);
  font-size: 22px;
}

.demo-placeholder h3 {
  margin: 12px 0 14px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.demo-placeholder p {
  margin: 0;
  color: var(--muted);
}

.demo-placeholder code {
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84em;
}

.demo-player {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  background: #000;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.shot:first-child {
  grid-column: 1 / -1;
}

.shot a {
  display: block;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  transition: transform 0.35s ease;
}

.shot a:hover img {
  transform: scale(1.008);
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 8px 7px;
  color: var(--muted);
  font-size: 14px;
}

.shot figcaption b {
  color: var(--paper);
}

.docsgrid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(48px, 6vw, 86px);
}

.toc {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.toc a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.docbody {
  max-width: 960px;
}

.docbody article {
  margin-bottom: 44px;
  padding: 0 0 58px;
  border-bottom: 1px solid var(--line);
}

.docbody article:last-child {
  margin-bottom: 0;
}

.docbody h3 {
  margin-bottom: 22px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
}

.docbody h4 {
  margin: 32px 0 11px;
  font-size: 21px;
}

.docbody p,
.docbody li {
  color: var(--muted);
}

.docbody p {
  margin: 0 0 18px;
}

.docbody ul,
.docbody ol {
  margin: 0;
  padding-left: 24px;
}

.docbody li + li {
  margin-top: 9px;
}

.docbody strong,
.docbody a {
  color: var(--paper);
}

.callout {
  margin: 28px 0;
  padding: 21px 25px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--blue);
  background: rgba(236, 231, 220, 0.045);
  color: var(--muted);
}

.data {
  width: 100%;
  margin-top: 25px;
  border-collapse: collapse;
}

.data caption {
  padding: 0 0 13px;
  color: var(--muted);
  text-align: left;
}

.data th,
.data td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data thead {
  background: var(--ink-soft);
}

.data th {
  font: 500 11px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data td {
  color: var(--muted);
}

.data td:first-child {
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.legal-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  transition:
    border-color 0.16s ease,
    transform 0.16s ease;
}

.legal-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.legal-card strong {
  font-family: "Syne", sans-serif;
  font-size: 24px;
}

.cta {
  padding: clamp(60px, 8vh, 92px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 231, 220, 0.045);
}

.ctain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.cta h2 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
}

.cta p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.sitefoot {
  position: relative;
  padding: 40px 0 34px;
}

.footlean {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.footbrand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footmark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.footcoords {
  color: var(--muted);
  font: 12px/1.85 "JetBrains Mono", monospace;
}

.footcols {
  display: flex;
  gap: 66px;
}

.footcol {
  display: flex;
  flex-direction: column;
}

.footcol h2 {
  margin: 0 0 12px;
  color: var(--faint);
  font: 500 11px "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footcol a {
  padding: 3px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.footbottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 12px "JetBrains Mono", monospace;
}

.legal-hero {
  padding: clamp(72px, 10vh, 112px) 0 66px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 980px;
}

.legal-intro {
  max-width: 800px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: clamp(48px, 7vw, 110px);
  padding: clamp(64px, 9vh, 108px) 0;
}

.legal-meta {
  align-self: start;
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.legal-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-meta p + p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal-body section {
  padding: 0 0 42px;
}

.legal-body section + section {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-body h2 {
  margin-bottom: 17px;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.1;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul {
  margin: 0;
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body a,
.legal-body strong {
  color: var(--paper);
}

@media (max-width: 1180px) {
  #page-toc {
    display: none;
  }

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

@media (max-width: 900px) {
  .wrap {
    width: min(calc(100% - 36px), var(--max));
  }

  .navlinks a:not(.button) {
    display: none;
  }

  .navlinks .button {
    min-height: 40px;
    padding: 0 16px;
  }

  .hero {
    padding: 62px 0 66px;
  }

  .hero-grid,
  .docsgrid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .route-card {
    min-height: 390px;
  }

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

  .summary-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .summary-item .mono {
    margin-bottom: 24px;
  }

  .section {
    padding: 66px 0;
  }

  .toc {
    position: static;
  }

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

  .shot:first-child {
    grid-column: auto;
  }

  .ctain {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footlean {
    flex-direction: column;
  }

  .legal-meta {
    max-width: 500px;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 17px;
  }

  .topnav {
    height: 62px;
  }

  .wordmark {
    font-size: 18px;
  }

  .navlinks {
    gap: 10px;
  }

  .navlinks .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 60px);
    overflow-wrap: anywhere;
  }

  .lead,
  .sectioncopy,
  .legal-intro {
    font-size: 18px;
  }

  .route-card {
    min-height: 370px;
    padding: 22px;
  }

  .route-tag {
    max-width: 130px;
  }

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

  .journey li {
    min-height: 240px;
  }

  .demo-slot {
    min-height: 330px;
  }

  .demo-placeholder {
    padding: 48px 22px;
  }

  .shot figcaption {
    display: block;
  }

  .shot figcaption span {
    display: block;
    margin-top: 4px;
  }

  .data {
    display: block;
    overflow-x: auto;
  }

  .legal-links {
    grid-template-columns: 1fr;
  }

  .footcols {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
