:root {
  color-scheme: dark;
  --bg: #0c0715;
  --surface: #171023;
  --surface-soft: #21162f;
  --text: #f5f0ff;
  --muted: #c7bbd9;
  --accent: #c7a2ff;
  --accent-strong: #9a62ef;
  --border: #3e2c55;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(154, 98, 239, .18), transparent 32rem),
    var(--bg);
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #e1ceff; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: .2rem; }

.site-header,
main,
footer {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-strong), #6430ae);
  box-shadow: 0 0 2rem rgba(154, 98, 239, .25);
}

nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding-block: clamp(3rem, 8vw, 7rem); }

.hero { max-width: 58rem; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.15; text-wrap: balance; }
h1 { margin: 0; max-width: 18ch; font-size: clamp(2.4rem, 7vw, 5.4rem); letter-spacing: -.045em; }
h2 { margin-top: 0; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.lead { max-width: 52rem; color: var(--muted); font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

.panel {
  margin-top: 3rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(33, 22, 47, .95), rgba(23, 16, 35, .95));
}

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

.facts article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(23, 16, 35, .72);
}

.facts p, .panel p, .document p, .document li { color: var(--muted); }

.document { max-width: 52rem; }
.document h1 { max-width: none; font-size: clamp(2.3rem, 6vw, 4.3rem); }
.document section { padding-top: 2rem; border-top: 1px solid var(--border); margin-top: 2rem; }
.document ul { padding-left: 1.3rem; }
.document li + li { margin-top: .55rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: .8rem 1.1rem; }
  main { padding-block: 3.5rem; }
  .facts { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
