@font-face {
  font-family: Inter;
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #f6f5f1;
  --surface: #ffffff;
  --border: #e4e3de;
  --border-soft: #efeee9;
  --border-strong: #cfcec7;
  --text: #1b1b18;
  --text-2: #3d3c37;
  --muted: #6b6a63;
  --link: #8f5300;
  --accent: #f5a524;
  --accent-ui: #e89a1c;
  --accent-ink: #1b1405;
  --night: #090a1a;
  --on-night: #d8d6ea;
  --on-night-muted: #a9a7c4;
  --night-edge: #5a5780;
  --amber: #f5b544;
  --code-bg: #16171b;
  --code-text: #d9dae0;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent-ui);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  line-height: 1.6;
}

pre code {
  font-size: inherit;
}

.logo {
  display: block;
  width: 32px;
  height: 32px;
}

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

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.menu summary {
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #ffb84d;
}

.btn-ghost {
  padding: 12px 21px;
  border: 1px solid var(--night-edge);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: var(--on-night);
}

.btn-dark {
  padding: 12px 20px;
  background: var(--text);
  color: #ffffff;
}

.btn-dark:hover {
  background: #3d3c37;
}

body.home {
  background: var(--night);
  font-size: 16px;
  line-height: 1.55;
}

.mono {
  font-family: var(--mono);
}

.grow {
  flex: 1;
}

.art {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  max-width: none;
}

.art-bottom {
  top: auto;
  bottom: 0;
}

.art-phone {
  display: none;
}

/* Hero */
/* clip, not hidden: a hidden box can still be scrolled sideways by focus and scrollIntoView. */
.hero {
  position: relative;
  min-height: 800px;
  overflow: clip;
  background: var(--night);
  color: #ffffff;
}

.bar {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.nav-wide {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-wide a,
.lang-wide a,
.lang-phone {
  color: var(--on-night);
}

.nav-wide a:hover,
.lang-wide a:hover,
.lang-phone:hover {
  color: #ffffff;
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.lang-wide {
  display: flex;
  gap: 8px;
}

.lang-wide span {
  color: #6f6c92;
}

.lang-phone,
.menu {
  display: none;
}

.btn-small {
  padding: 9px 16px;
  border-radius: 9px;
}

.menu summary {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--night-edge);
  border-radius: 9px;
  color: #ffffff;
}

.nav-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 68px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: #15143a;
  border: 1px solid var(--night-edge);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.nav-panel a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.nav-panel a:hover {
  background: #26244f;
  text-decoration: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--on-night);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

/* The product example over the horizon */
.run-wrap {
  background: var(--ground);
  padding: 0 32px;
}

.run {
  position: relative;
  max-width: 1040px;
  margin: -130px auto 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(9, 10, 26, 0.32);
  font-size: 14px;
}

.run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.run-title {
  font-size: 17px;
}

.status {
  padding: 2px 10px;
  border-radius: 99px;
  background: #fcefd6;
  color: #7a4300;
  font-size: 12.5px;
  font-weight: 600;
}

.run-sha,
.run-address,
.run-note.mono {
  color: var(--muted);
  font-size: 12.5px;
}

.fake-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.fake-btn-plain {
  border: 1px solid var(--border-strong);
}

.fake-btn-accent {
  background: var(--accent-ui);
  color: var(--accent-ink);
}

.run-row {
  display: grid;
  grid-template-columns: 92px 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border-soft);
}

.run-row:last-of-type {
  border-bottom: 0;
}

.badge {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.badge.rep {
  background: #f6e3f5;
  color: #7b1f75;
}

.badge.del {
  background: #fce8e6;
  color: #a61b12;
}

.badge.upd {
  background: #fcefd6;
  color: #7a4300;
}

.badge.new {
  background: #e3f2e8;
  color: #1a6b3c;
}

.run-note.danger {
  color: #a61b12;
  font-size: 13px;
  font-weight: 500;
}

.run-foot {
  display: none;
}

/* Sections */
.band {
  padding: 96px 32px;
}

.band-ground {
  background: var(--ground);
}

.band-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.band-dark {
  background: #111214;
  color: #ececea;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.band h2,
.cta h2 {
  max-width: 720px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.band p {
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--accent-ui);
}

.step-n {
  font-size: 13px;
  color: var(--link);
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
}

.step p,
.feature p {
  color: var(--text-2);
}

.consent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px 48px;
  align-items: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.consent-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-copy h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.consent-copy p {
  color: var(--text-2);
}

.consent-example {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}

.tick.on {
  background: var(--accent-ui);
  border-color: var(--accent-ui);
  color: var(--accent-ink);
}

.consent-row .badge {
  flex: none;
}

.consent-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}

.consent-count {
  color: #7a4300;
  font-size: 13px;
  font-weight: 600;
}

.fake-btn-locked {
  background: #efeee9;
  color: var(--muted);
}

.big-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 20px;
}

.big-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.big-card h3 {
  font-size: 24px;
  font-weight: 700;
}

.big-card p {
  color: var(--text-2);
}

.big-card-dark {
  background: var(--code-bg);
  border-color: var(--code-bg);
  color: #ececea;
}

.big-card-dark p {
  color: #c9c9c4;
}

.big-card pre {
  margin-top: 8px;
  padding: 16px 18px;
  background: #0b0c0e;
  border-radius: 10px;
  color: var(--code-text);
  font-size: 13.5px;
}

.hl {
  color: var(--amber);
}

.drift {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

.drift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 500;
}

.drift-row:last-child {
  border-bottom: 0;
}

.drift-row strong {
  font-size: 13px;
  font-weight: 600;
}

.ok {
  color: #1a6b3c;
}

.warn {
  color: #7a4300;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 36px 40px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature code {
  font-size: 14px;
}

/* Install */
.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.install-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.install-copy p,
.dots {
  color: #c9c9c4;
}

.dots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dots li {
  display: flex;
  gap: 10px;
}

.dots li::before {
  content: "·";
  color: var(--amber);
}

.amber-link {
  color: var(--amber);
  font-weight: 600;
}

.install-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.helm {
  padding: 18px 20px;
  background: #0b0c0e;
  border: 1px solid #2c2d32;
  border-radius: 12px;
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.65;
}

.diagram {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid #2c2d32;
  border-radius: 12px;
  font-size: 13.5px;
}

.diagram-label {
  font-size: 12.5px;
  color: #9a9a93;
}

.diagram-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
}

.box {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  background: #18191c;
  border: 1px solid #45464d;
  border-radius: 9px;
  font-weight: 600;
}

.box span {
  font-weight: 400;
  color: #9a9a93;
}

.box-job {
  border: 1px dashed #8a6420;
}

.line {
  height: 1px;
  background: #45464d;
}

.pull {
  grid-column: 1;
  justify-self: center;
  padding: 10px 0;
  font-size: 12px;
  color: var(--amber);
}

.pull + .box {
  grid-column: 1;
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--amber);
}

.arrow-glyph {
  align-self: stretch;
  height: 1px;
  background: var(--amber);
  position: relative;
}

.arrow-glyph::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 6px solid var(--amber);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}

/* Ways to run */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.plan h3 {
  font-size: 26px;
  font-weight: 700;
}

.plan p {
  font-size: 17px;
  color: var(--text-2);
}

.plan ul {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-2);
}

.plan .btn {
  align-self: flex-start;
}

/* Roadmap */
.roadmap-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmap-head p {
  max-width: 640px;
  font-size: 17px;
  color: var(--text-2);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px;
}

.roadmap h3 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
}

.available {
  color: #1a6b3c;
}

.planned {
  color: var(--muted);
}

.roadmap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap code {
  font-size: 14px;
}

.planned-list {
  color: var(--text-2);
}

/* Closing */
.cta {
  position: relative;
  overflow: clip;
  padding: 96px 32px 120px;
  background: var(--night);
  color: #ffffff;
  text-align: center;
}

.cta-copy {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-copy p {
  margin: 0;
  font-size: 18px;
  color: var(--on-night);
}

.cta-copy p a {
  color: var(--amber);
  font-weight: 600;
}

.cta-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-404 h1 {
  font-size: 42px;
  font-weight: 700;
}

.foot {
  padding: 32px;
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 13.5px;
}

.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.foot a {
  color: var(--on-night);
}

.brand-small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
}

.brand-small .logo {
  width: 22px;
  height: 22px;
}

.legal {
  flex-basis: 100%;
}

/* The menu takes over when the full nav no longer fits */
@media (max-width: 1000px) {
  .nav-wide,
  .lang-wide,
  .bar-end .btn-small {
    display: none;
  }

  .lang-phone {
    display: block;
    padding: 11px 6px;
    font-weight: 500;
  }

  .menu {
    display: block;
  }

  .bar {
    justify-content: space-between;
    padding: 12px 16px;
  }

  .bar-end {
    gap: 10px;
  }

  .logo {
    width: 28px;
    height: 28px;
  }

  .brand {
    font-size: 17px;
  }
}

@media (max-width: 860px) {
  .run-head .run-sha,
  .run-head .fake-btn,
  .run-head .grow {
    display: none;
  }

  .run-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 8px;
    padding: 11px 16px;
  }

  .run-address {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }

  .run-note {
    display: none;
  }

  .badge {
    padding: 1px 8px;
    font-size: 12px;
  }

  .run-row:last-of-type {
    border-bottom: 1px solid var(--border-soft);
  }

  .run-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
  }

  .run-foot .fake-btn {
    text-align: center;
    padding: 9px 10px;
  }

  .run-foot .fake-btn-plain {
    flex: 1;
  }

  .run-foot .fake-btn-accent {
    flex: 2;
  }
}

@media (max-width: 720px) {
  .art-wide {
    display: none;
  }

  .art-phone {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding: 40px 16px 0;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .actions {
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
  }

  .run-wrap {
    padding: 0 16px;
  }

  .run {
    margin-top: -110px;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(9, 10, 26, 0.32);
  }

  .run-head {
    gap: 8px;
    padding: 14px 16px;
  }

  .run-title {
    font-size: 16px;
  }

  .band {
    padding: 64px 16px;
  }

  .inner {
    gap: 26px;
  }

  .band h2,
  .cta h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .steps {
    gap: 22px;
  }

  .step {
    gap: 6px;
    padding-top: 12px;
  }

  .step h3 {
    font-size: 19px;
  }

  .consent {
    gap: 18px;
    padding: 22px;
    border-radius: 14px;
  }

  .consent-copy h3 {
    font-size: 21px;
  }

  .consent-row {
    flex-wrap: wrap;
    padding: 11px 14px;
  }

  .consent-row > span:last-child {
    flex-basis: 100%;
  }

  .consent-foot {
    padding: 11px 14px;
  }

  .big-card {
    gap: 12px;
    padding: 22px;
    border-radius: 14px;
  }

  .big-card h3 {
    font-size: 21px;
  }

  .big-card pre {
    margin-top: 4px;
    padding: 14px 16px;
    font-size: 13px;
  }

  .features {
    gap: 22px;
  }

  .feature {
    gap: 4px;
  }

  .install {
    gap: 22px;
  }

  .install-copy {
    gap: 18px;
  }

  .helm {
    padding: 14px 16px;
    font-size: 12.5px;
  }

  .diagram {
    gap: 10px;
    padding: 16px;
  }

  .diagram-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .line {
    display: none;
  }

  .box {
    padding: 10px 12px;
  }

  .pull {
    padding: 0;
  }

  .arrow-word::before {
    content: "↓ ";
  }

  .arrow-glyph {
    display: none;
  }

  .plan {
    gap: 12px;
    padding: 24px;
    border-radius: 14px;
  }

  .plan h3 {
    font-size: 23px;
  }

  .plan p {
    font-size: 16px;
  }

  .plan .btn {
    align-self: stretch;
  }

  .roadmap {
    gap: 22px;
  }

  .cta {
    padding: 64px 16px 88px;
  }

  .cta-copy {
    gap: 16px;
  }

  .cta-copy p {
    font-size: 16px;
  }

  .cta-copy .actions {
    padding-top: 0;
  }

  .foot {
    padding: 28px 16px;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .foot-inner .grow {
    display: none;
  }

  .foot-inner a {
    padding: 4px 0;
  }

  .legal {
    flex-basis: auto;
  }
}
