:root {
  --bg: #07050e;
  --surface: #110d1f;
  --surface2: #1a1430;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dim: rgba(124,58,237,0.15);
  --text: #e8e0f5;
  --text-muted: #9585b8;
  --border: rgba(124,58,237,0.25);
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,5,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1rem;
}
.nav-brand img { height: 28px; width: auto; }
.nav-back {
  font-size: .85rem; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.nav-back:hover { color: var(--purple-light); }

.hero {
  background: linear-gradient(135deg, #1a0a3d 0%, #0d0820 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 99px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; color: #fff;
  margin-bottom: .75rem;
}
.hero p {
  color: var(--text-muted); font-size: .95rem;
  max-width: 480px; margin: 0 auto;
}

.wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.index {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.index p {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--purple-light); font-weight: 600; margin-bottom: .75rem;
}
.index ol {
  padding-left: 1.2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .5rem;
}
.index li { font-size: .9rem; }
.index a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.index a:hover { color: var(--purple-light); }
@media (max-width: 480px) { .index ol { grid-template-columns: 1fr; } }

section { margin-bottom: 3rem; }
section:target > h2 { color: var(--purple-light); }

h2 {
  font-size: 1.2rem; font-weight: 700;
  color: #fff;
  border-left: 3px solid var(--purple);
  padding-left: .85rem;
  margin-bottom: 1.25rem;
  transition: color .3s;
}
h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--purple-light);
  margin: 1.5rem 0 .5rem;
}
p { color: var(--text); margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: .9rem;
}
li { margin-bottom: .35rem; color: var(--text); }

strong { color: #fff; font-weight: 600; }

a { color: var(--purple-light); }
a:hover { color: #fff; }

.callout {
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: .9rem;
}
.callout strong { display: block; margin-bottom: .25rem; color: var(--purple-light); }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
}
th {
  background: var(--surface2);
  color: var(--purple-light); font-weight: 600;
  text-align: left; padding: .6rem .9rem;
  border-bottom: 1px solid var(--border);
}
td {
  padding: .6rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--purple-light); }

.to-top {
  display: inline-block;
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--text-muted); text-decoration: none;
}
.to-top:hover { color: var(--purple-light); }
