:root {
  color-scheme: dark;
  --void: #030609;
  --graphite: #0d1218;
  --panel: #0a0e12;
  --line: #1c242c;
  --white: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.42);
  --faint: rgba(255, 255, 255, 0.28);
  --cyan: #57d9f5;
  --cyan-soft: #8ad7e8;
  --amber: #dda04b;
  --red: #f05438;
  --steel: #8a959d;
  --ghost: rgba(216, 225, 228, 0.28);
  --sans: -apple-system, "SF Pro Rounded", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 42% 12%, #1b242c 0%, transparent 42%),
    linear-gradient(180deg, #0d1218 0%, #030609 100%);
  color: var(--white);
  font-family: var(--sans);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--cyan);
  color: #031016;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.shell {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
}
.brand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--cyan); }

.hero {
  padding: 56px 0 28px;
  text-align: center;
}
.kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.lede {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--faint);
  font-size: 15px;
  line-height: 1.7;
}

.sheet {
  margin: 28px 0 48px;
  padding: 18px;
  border: 1.2px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}
.sheet img {
  width: 100%;
  border-radius: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tile {
  min-height: 248px;
  padding: 22px 18px 20px;
  border: 1.2px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 8px;
}
.tile.cyan { box-shadow: inset 0 0 0 1.2px rgba(87, 217, 245, 0.22); }
.tile.amber { box-shadow: inset 0 0 0 1.2px rgba(221, 160, 75, 0.38); }
.tile.red { box-shadow: inset 0 0 0 1.2px rgba(240, 84, 56, 0.28); }
.glyph {
  width: 148px;
  height: 128px;
}
.label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.caption {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.anatomy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin: 36px 0 64px;
}
.panel {
  padding: 28px;
  border: 1.2px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}
.panel h2,
.doc h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.swatch {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.parts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 12px 0 72px;
}
.doc-card {
  padding: 24px;
  border: 1.2px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}
.doc-card h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.08em;
}
.doc-card p {
  margin: 0 0 16px;
  color: var(--faint);
  line-height: 1.6;
}
.doc-card a {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.doc {
  padding: 36px 0 80px;
  max-width: 860px;
}
.doc h1 {
  letter-spacing: 0.08em;
  font-size: clamp(28px, 4vw, 40px);
}
.doc h2 {
  margin-top: 36px;
  color: var(--cyan-soft);
}
.doc h3 {
  margin-top: 28px;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.doc p, .doc li {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}
.doc pre, .doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.doc pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070b10;
  color: var(--cyan-soft);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-size: 14px;
}
.doc th, .doc td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.doc th { color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }
.doc a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 40px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(87, 217, 245, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.button:hover { background: rgba(87, 217, 245, 0.1); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.14em;
}
footer a:hover { color: var(--cyan); }

@media (max-width: 980px) {
  .grid, .docs-grid, .anatomy { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1440px); }
  .site-header { flex-direction: column; align-items: flex-start; }
  .grid, .docs-grid, .anatomy { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
