@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(31, 41, 55, .6);
  --panel-hover: rgba(31, 41, 55, .85);
  --text: #e2e8f0;
  --muted: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .4);
  --violet: #7c3aed;
  --violet-hover: #8b5cf6;
  --indigo: #818cf8;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(148,163,184,.2) transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.7); backdrop-filter: blur(12px); }
.nav-inner { display: flex; height: 56px; max-width: 64rem; margin: 0 auto; padding: 0 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; transition: opacity .15s; }
.brand:hover { opacity: .8; }
.brand img { width: 24px; height: 24px; }
.brand span { color: var(--indigo); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 6px 10px; border-radius: 5px; font-size: 13px; color: rgba(255,255,255,.7); transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

main { max-width: 42rem; margin: 0 auto; padding: 72px 24px 96px; }

.hero { text-align: center; }
.kicker { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; color: #fff; }
.lede { margin: 16px auto 0; max-width: 34rem; font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 5px; background: var(--violet); color: #fff; font-size: 13px; font-weight: 500; transition: background .15s; }
.btn:hover { background: var(--violet-hover); }
.btn.ghost { background: var(--panel); color: rgba(255,255,255,.85); }
.btn.ghost:hover { background: var(--panel-hover); color: #fff; }
.note { margin: 14px 0 0; font-size: 12px; color: var(--faint); }

.scene { margin: 44px auto 0; border-radius: 5px; overflow: hidden; background: rgba(31,41,55,.35); }
.scene svg { display: block; width: 100%; height: auto; }

.block { margin-top: 64px; }
.block h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff; }
.block > p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }

.list { display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 5px; background: var(--panel); }
.row i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; background: var(--violet); color: #fff; font-style: normal; font-size: 10px; font-weight: 600; }
.row b { display: block; font-size: 13px; font-weight: 500; color: #fff; }
.row span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }

.steps { display: grid; gap: 4px; counter-reset: step; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 5px; background: var(--panel); font-size: 13px; color: rgba(255,255,255,.85); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 11px; font-weight: 600; color: var(--indigo); }

pre { margin: 8px 0 0; padding: 12px 14px; border-radius: 5px; background: #000; color: #c4b5fd; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }

details { border-radius: 5px; background: var(--panel); margin-bottom: 4px; }
summary { padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 500; color: #fff; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 12px 12px; font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.tile { padding: 12px; border-radius: 5px; background: var(--panel); transition: background .15s; }
.tile:hover { background: var(--panel-hover); }
.tile b { display: block; font-size: 13px; font-weight: 500; color: #fff; }
.tile span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.end { margin-top: 72px; text-align: center; }
.end h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.end p { margin: 8px auto 0; max-width: 30rem; font-size: 13px; color: var(--muted); }

footer { padding: 8px 24px 28px; }
.foot { display: flex; max-width: 64rem; margin: 0 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 12px; color: rgba(255,255,255,.5); }
.foot div { display: flex; align-items: center; gap: 8px; }
.foot img { width: 16px; height: 16px; }
.foot nav { display: flex; gap: 16px; }
.foot a:hover { color: #fff; }

@media (max-width: 560px) {
  main { padding-top: 48px; }
  .grid { grid-template-columns: 1fr; }
  .nav-links a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene svg * { animation: none !important; }
}
