:root {
  color-scheme: dark;
  --page: #090b10;
  --paper: #10141c;
  --ink: #eef2f7;
  --muted: #9aa6b5;
  --line: #283141;
  --accent: #8dbbff;
}

* { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.075rem;
  line-height: 1.65;
}

main, footer {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.intro {
  max-width: 820px;
  padding: clamp(4rem, 10vw, 8rem) 0 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font: 600 0.82rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro > p:last-child {
  max-width: 700px;
  margin: 1.7rem 0 0;
  color: #c5ced9;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.terminal-demo {
  overflow: hidden;
  margin: 1rem 0 clamp(4rem, 9vw, 7rem);
  border: 1px solid #364155;
  border-radius: 13px;
  background: #151a23;
  box-shadow: 0 28px 80px rgb(0 0 0 / 45%);
}

.terminal-demo video { display: block; width: 100%; height: auto; background: #10141c; }
.terminal-demo .demo-still { display: none; width: 100%; height: auto; }
.terminal-demo figcaption { padding: 0.7rem 0.9rem; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

article { max-width: 720px; margin: 0 auto; }
article p { margin: 0 0 1.5rem; }
h2 { margin: 4rem 0 1rem; font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -0.025em; }
h3 { margin: 0 0 0.75rem; font-size: 1.25rem; line-height: 1.3; }
a { color: #9fc4ff; text-underline-offset: 0.18em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0.08em 0.38em;
  border: 1px solid #566276;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #171d27;
  font: 0.82em ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.note {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #111a27;
  color: #d6deea;
}

.note strong { display: block; margin-bottom: 0.2rem; color: var(--ink); }

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.steps[start="5"] { counter-reset: guide-step 4; }

.steps > li {
  position: relative;
  margin: 0 0 3rem;
  padding-left: 3.4rem;
  counter-increment: guide-step;
}

.steps > li::before {
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #101722;
  content: counter(guide-step);
  font: 700 0.95rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.steps .code { margin-top: 1rem; }

.check {
  margin-top: -0.75rem;
  color: #bcc8d7;
  font-size: 0.98rem;
}

details {
  margin: 0 0 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

summary { cursor: pointer; font-weight: 650; }
details p { margin: 0.9rem 0 0; color: #c5ced9; }

.code {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #dce3ee;
  font-size: 0.88rem;
  line-height: 1.65;
}

footer { margin-top: 6rem; padding: 2rem 0 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  main, footer { width: min(100% - 1.25rem, 1040px); }
  .intro { padding-top: 3rem; }
  .steps > li { padding-left: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terminal-demo video { display: none; }
  .terminal-demo .demo-still { display: block; }
}
