:root {
  color-scheme: dark;
  --background: #08090d;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f3f9;
  --muted: #aaa6b4;
  --accent: #9a78ff;
  --accent-soft: rgba(154, 120, 255, 0.16);
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 5%, rgba(88, 54, 166, 0.25), transparent 31rem),
    radial-gradient(circle at 20% 95%, rgba(46, 89, 155, 0.12), transparent 30rem),
    var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mark {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.45), 0 0 28px var(--accent);
}

.links { display: flex; gap: 24px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--text); }

main { padding: 84px 0 96px; }

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
}

.button.primary { background: var(--accent); color: #0a0710; border-color: transparent; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 78px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card h2 { margin: 0 0 7px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); }

.document { max-width: 760px; }
.document h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
.document h2 { margin: 44px 0 8px; font-size: 1.2rem; }
.document p, .document li { color: var(--muted); }
.document strong { color: var(--text); }
.document .updated { color: var(--muted); margin-bottom: 42px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .links { gap: 14px; font-size: 0.9rem; }
  main { padding-top: 56px; }
  .grid { grid-template-columns: 1fr; margin-top: 52px; }
  footer { flex-direction: column; }
}
