:root {
  --bg: #0a0e14;
  --bg2: #10151f;
  --panel: #141b27;
  --panel2: #1a2331;
  --ink: #e8edf5;
  --muted: #92a0b5;
  --line: #243044;
  --accent: #5ea0ff;
  --accent2: #7c5cff;
  --green: #3ddc97;
  --amber: #ffb454;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 75% -8%, #1a2740 0%, transparent 58%),
    radial-gradient(800px 420px at -5% 12%, #1a2038 0%, transparent 52%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  z-index: 1000;
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--panel2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* nav */
.site-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 22px 0 0;
}

.site-nav a {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--panel);
}

.site-nav a:hover { color: var(--ink); text-decoration: none; }

.site-nav a.active {
  color: var(--accent);
  border-color: rgba(94, 160, 255, 0.35);
  background: rgba(94, 160, 255, 0.08);
}

/* hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
  background: rgba(94, 160, 255, 0.06);
}

h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #fff 10%, #a9c6ff 55%, #b9a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 620px;
  margin: 0 auto;
}

.lead strong { color: var(--ink); font-weight: 600; }

/* sections */
section { padding: 36px 0; }

section + section { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

p, li { font-size: 15px; color: var(--muted); }
p + p { margin-top: 10px; }

ul { list-style: none; margin-top: 10px; }

ul li {
  padding: 4px 0 4px 18px;
  position: relative;
}

ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.card h3 { color: var(--ink); }

.card p { font-size: 14px; margin-top: 6px; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}

.stat {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}

.stat .n {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat .l {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* notice */
.notice {
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14px;
  margin: 24px 0;
  border: 1px solid rgba(255, 180, 84, 0.35);
  background: rgba(255, 180, 84, 0.08);
  color: #e8c99a;
}

.notice strong { color: var(--amber); }

.notice.info {
  border-color: rgba(94, 160, 255, 0.35);
  background: rgba(94, 160, 255, 0.08);
  color: #b9cff5;
}

.notice.info strong { color: var(--accent); }

/* tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

.tag {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--panel);
}

.tag b { color: var(--green); font-weight: 600; }

/* table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

th { color: var(--ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

td:first-child { color: var(--ink); }

/* footer */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

footer p + p { margin-top: 8px; }

.doc-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}

.doc-item .name { color: var(--ink); font-weight: 600; font-size: 14px; }
.doc-item .desc { font-size: 13px; color: var(--muted); flex: 1; text-align: right; }

.doc-item-static {
  cursor: default;
}
.doc-item-static:hover { text-decoration: none; }
.doc-item-static .name { color: var(--muted); font-weight: 600; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .doc-item { flex-direction: column; align-items: flex-start; }
  .doc-item .desc { text-align: left; }
}
