@font-face { font-family: "Inter"; src: url(assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0c0b0b;
  --panel: #151413;
  --line: rgba(255, 255, 255, .12);
  --ink: #f4f1ea;
  --soft: #c2bcb2;
  --muted: #9a948b;
  --ring: #ff2626;      /* the ring visual-mode draws around the cursor */
  --done: #35c46a;
  --orange: #ff9f0a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  background-image: radial-gradient(1200px 700px at 18% 0%, #211c1a 0%, transparent 70%);
  background-repeat: no-repeat;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
b { font-weight: 600; color: var(--ink); }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
.said { font-family: var(--serif); font-style: italic; font-weight: 400; }
.deix { color: var(--ring); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 650 26px/1 var(--sans); letter-spacing: -.035em; text-decoration: none; color: var(--ink); }
.mark.small { font-size: 20px; gap: 9px; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-size: 16px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: #fff; }
.top nav .pill { color: var(--ink); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.top nav .pill:hover { border-color: rgba(255, 255, 255, .4); }
.top nav .pill.primary { background: var(--ink); color: #121110; border-color: var(--ink); font-weight: 600; }
.top nav .pill.primary:hover { background: #fff; color: #000; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 6vw, 84px); }
.hero h1 { font-size: clamp(56px, 9.4vw, 140px); line-height: .96; letter-spacing: -.012em; margin-left: -.04em; text-wrap: balance; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 56px; flex-wrap: wrap; margin-top: clamp(26px, 3.6vw, 48px); }
.lede { flex: 1 1 520px; max-width: 700px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.36; letter-spacing: -.014em; color: var(--soft); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 14px;
  font: 600 17px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); transition: background .15s, border-color .15s;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.btn.primary { background: var(--ink); color: #121110; border-color: var(--ink); }
.btn.primary:hover { background: #fff; color: #000; }

.demo { margin-top: clamp(36px, 5vw, 68px); }
.demo video { width: 100%; border-radius: clamp(10px, 1.4vw, 18px); background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.file figcaption, .cmd figcaption { font: 500 14px/1.4 var(--mono); color: var(--muted); }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 132px) 0; }
h2 { font: 650 clamp(34px, 4.6vw, 60px)/1.04 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
h2 .said { font-size: 1.18em; letter-spacing: -.01em; }
h3 { font: 650 clamp(21px, 2vw, 26px)/1.2 var(--sans); letter-spacing: -.025em; }
section p { color: var(--soft); }

.how .demo { margin-top: clamp(24px, 3.4vw, 44px); }


.steps { margin-top: clamp(30px, 4vw, 56px); display: grid; gap: clamp(40px, 6vw, 88px); }
.steps li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.steps li:nth-child(even) .step-text { order: 2; }
.steps li:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.steps .n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ring); color: #fff;
  border: 3px solid #fff; font: 800 21px/1 var(--sans); margin-bottom: 20px;
}
.steps p { margin-top: 12px; max-width: 30em; }
.steps img { width: 100%; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.steps code, .gets code { color: var(--ink); }

.eyebrow { font: 600 14px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ring) !important; margin-bottom: 18px; }
.cards { margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; }
.cards p { margin-top: 12px; flex: 1; }
.chip { align-self: flex-start; margin-top: 24px; padding: 8px 12px; border-radius: 9px; background: rgba(255, 255, 255, .07); font: 500 13.5px/1.2 var(--mono); color: var(--soft); }
.warning { margin-top: 18px; border: 2px solid #ffd60a; border-radius: 22px; background: #16140f; overflow: hidden; padding-bottom: clamp(26px, 3.4vw, 44px); }
.warning .stripe { height: 22px; background: repeating-linear-gradient(-45deg, #ffd60a 0 22px, #16140f 22px 44px); }
.warning > :not(.stripe) { margin-inline: clamp(22px, 3.6vw, 48px); }
.warning .label { margin-top: clamp(22px, 3vw, 36px); display: flex; align-items: center; gap: 12px; font: 700 15px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #ffd60a; }
.warning .label svg { width: 26px; height: 26px; }
.warning h3 { margin-top: 18px; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.warning h3 .said { display: block; font-size: 1.22em; letter-spacing: -.012em; color: #ffd60a; }
.warning p:last-child { margin-top: 18px; font-size: clamp(18px, 1.7vw, 22px); max-width: 36em; }

.gets { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gets-text p { margin-top: 20px; max-width: 30em; }
.file, .cmd { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; }
.file figcaption, .cmd figcaption { padding: 14px 22px; border-bottom: 1px solid var(--line); }
pre { padding: 20px 22px 24px; overflow-x: auto; font: 400 14.5px/1.62 var(--mono); color: #b9b3a9; tab-size: 2; }
pre code { font-size: inherit; }
pre .h { color: var(--ink); font-weight: 700; }
pre b { color: var(--ink); }
pre .s { color: #ffb3a8; }

.grid { margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.grid li { background: var(--bg); padding: clamp(22px, 2.6vw, 34px); }
.grid p { margin-top: 10px; font-size: 16.5px; }

.grid code { font: 500 .9em var(--mono); color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 901px) { .faq .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.install { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.install-text p { margin-top: 20px; max-width: 30em; }
.install-text .said { font-size: 1.3em; color: var(--ink); }
.blocks { display: grid; gap: 18px; }
.fine { font-size: 15.5px; color: var(--muted) !important; padding: 0 4px; }
.copy {
  position: absolute; right: 10px; top: 8px; height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  font: 500 13px/1 var(--mono); color: var(--soft); background: transparent; border: 1px solid var(--line);
}
.copy:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }

.foot { margin-top: clamp(72px, 10vw, 140px); padding-block: 34px 56px; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: 15px; color: var(--muted); }
.foot p { max-width: 60em; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .gets, .install { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .steps li:nth-child(even) .step-text { order: 0; }
  .grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .top nav a:not(.pill) { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 600px) {
  .hero h1 { font-size: min(13.6vw, 56px); white-space: nowrap; }
  .steps .step-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .steps .n { margin-bottom: 0; width: 40px; height: 40px; font-size: 19px; }
  .steps p { grid-column: 1 / -1; margin-top: 14px; }
  .cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; padding-bottom: 14px; }
  .cmd .copy { position: static; display: block; margin: 0 22px 20px; }
}
