:root {
  --bg: #010a33;
  --bg-2: #071450;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text: #e9ecff;
  --muted: #a3abd6;
  --gold: #ffc83d;
  --gold-2: #ffa81e;
  --link: #8fb4ff;
  --radius: 18px;
  --max: 920px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #1b2a8a 0%, transparent 70%), var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #b9d0ff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(1, 10, 51, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

nav.site { display: flex; align-items: center; gap: 22px; font-size: 15px; white-space: nowrap; }
nav.site a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--gold); }

main { padding: 40px 0 64px; }

.hero { text-align: center; padding: 56px 0 24px; }
.hero img.icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 12px 40px rgba(255, 200, 61, 0.25); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 24px 0 8px; line-height: 1.1; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe07a, var(--gold-2));
  color: #3a1a00;
  font-weight: 800;
  text-decoration: none;
}
.btn:hover { color: #3a1a00; filter: brightness(1.05); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 600; }

.notice {
  border: 1px solid rgba(255, 200, 61, 0.45);
  background: rgba(255, 200, 61, 0.07);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text);
  font-size: 15px;
}

article.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 6px; }
article.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
article.doc h2 { font-size: 22px; margin: 36px 0 10px; color: #fff; }
article.doc h3 { font-size: 17px; margin: 22px 0 6px; }
article.doc p, article.doc li { color: #d5daf5; }
article.doc ul, article.doc ol { padding-left: 22px; }
article.doc li { margin: 4px 0; }
article.doc strong { color: #fff; }

.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 8px;
  font-size: 15px;
}
.toc ol { margin: 6px 0 0; }

table.data { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data th { color: var(--gold); font-weight: 700; }
.table-scroll { overflow-x: auto; }

details.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin: 10px 0 0; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 6px 0; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  main { padding: 24px 0 48px; }
  .hero { padding-top: 32px; }
  header.site { position: static; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 10px; }
  nav.site { width: 100%; overflow-x: auto; gap: 18px; font-size: 14px; padding-bottom: 2px; scrollbar-width: none; }
  nav.site::-webkit-scrollbar { display: none; }
}

mark.todo {
  background: rgba(255, 90, 78, 0.18);
  color: #ffb4ae;
  border: 1px dashed rgba(255, 120, 110, 0.7);
  border-radius: 6px;
  padding: 0 4px;
}
