/* Rolling Start. Dark-first, one accent (the wheel's gold), hierarchy by
   type and luminance steps, hairline borders, motion only on hover and
   focus. */

:root {
  --bg: #0b0b0d;
  --bg-raised: #111114;
  --bg-sunk: #08080a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-1: rgba(255, 255, 255, 0.94);
  --text-2: rgba(255, 255, 255, 0.64);
  --text-3: rgba(255, 255, 255, 0.42);
  --gold: #f3ba41;            /* sampled from the wheel rim in the logo */
  --gold-hover: #f7c966;
  --on-gold: #14100a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 160ms;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(243, 186, 65, 0.28); color: #fff; }

a { color: var(--text-1); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: #fff; }
p a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
p a:hover { text-decoration-color: var(--text-2); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text-1);
}
p code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-raised);
  white-space: nowrap;
}

h1, h2, h3 { color: var(--text-1); font-weight: 600; margin: 0; }
em { font-style: normal; color: var(--text-1); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 12px; background: var(--gold); color: var(--on-gold); border-radius: 6px;
}
.skip:focus { top: 12px; color: var(--on-gold); }

/* Nav */

.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px rgba(243, 186, 65, 0.5);
}
.nav nav { display: flex; gap: 24px; font-size: 13px; }
.nav nav a { color: var(--text-2); }
.nav nav a:hover { color: var(--text-1); }
.nav nav .nav-gh { color: var(--text-1); }

/* Hero */

.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
  padding-top: 88px;
  padding-bottom: 72px;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 24px;
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
}
h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.lede {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.6;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text-1); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.03); }

.hero-art { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-art img {
  display: block; width: 100%; height: auto;
  /* The logo is on pure black; lighten melts it into the near-black canvas. */
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
}

/* Band */

.band { border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.band-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.band p {
  margin: 0; padding: 22px 24px 22px 0;
  font-size: 14px;
}
.band p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.k {
  display: block; margin-bottom: 4px;
  font: 500 11px/1.4 var(--mono);
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Sections */

.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 48px; }
.label {
  margin: 0 0 16px;
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
  letter-spacing: 0.04em;
}
h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.sub { margin: 16px 0 0; font-size: 16px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.split .section-head { margin-bottom: 0; }

.grid3, .grid2 {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg); padding: 28px; transition: background-color var(--fast) var(--ease); }
.card:hover { background: var(--bg-raised); }
.card-k {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.card-k code { font-size: 13px; text-transform: none; letter-spacing: 0; }
.card h3 { font-size: 17px; letter-spacing: -0.012em; line-height: 1.35; }
.card p:not(.card-k) { margin: 10px 0 0; font-size: 14px; }

.state {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--text-3);
}
.state-on { color: var(--text-1); border-color: rgba(243, 186, 65, 0.45); }

/* Terminal */

.term {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-sunk);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.term-bar p { margin: 0 0 0 10px; font: 12px var(--mono); color: var(--text-3); }
.term-body { padding: 8px 0; }
.row {
  display: grid;
  grid-template-columns: 11.5em 1fr;
  gap: 16px;
  padding: 11px 18px;
  transition: background-color var(--fast) var(--ease);
}
.row:hover { background: rgba(255, 255, 255, 0.025); }
.row kbd { font-size: 13px; line-height: 1.6; }
.row kbd::before { content: "›"; color: var(--gold); margin-right: 8px; }
.row p { margin: 0; font-size: 14px; }

/* Rules */

.rules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-top: 1px solid var(--line);
}
.rules li {
  padding: 20px 0 20px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 14px;
}
.rules li::before {
  content: ""; position: absolute; left: 2px; top: 27px;
  width: 8px; height: 8px; border-radius: 2px;
  border: 1px solid var(--text-3);
}
.rules strong { display: block; color: var(--text-1); font-weight: 500; font-size: 15px; margin-bottom: 2px; }

/* Install */

.install { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 16px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-sunk);
}
.cmd code { min-width: 0; font-size: 13.5px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.cmd code::before { content: "›"; color: var(--gold); margin-right: 10px; }
.copy {
  flex: none;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: 500 12px var(--sans);
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.copy:hover { color: var(--text-1); border-color: var(--line-strong); }
.note { margin: 16px 0 0; font-size: 13px; color: var(--text-3); }
.note a { color: var(--text-2); }

/* Footer */

.foot { padding: 32px 0 48px; font-size: 13px; color: var(--text-3); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--text-2); }

/* Narrow */

@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-top: 56px; padding-bottom: 40px; }
  .hero-art { justify-self: center; max-width: 360px; order: -1; margin-bottom: -24px; }
  .grid3 { grid-template-columns: 1fr; }
  .split { gap: 36px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav nav a:not(.nav-gh) { display: none; }
  .band-inner { grid-template-columns: 1fr; }
  .band p, .band p + p { padding: 16px 0; border-left: 0; }
  .band p + p { border-top: 1px solid var(--line); }
  .grid2, .rules { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .row { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
