:root {
  --bg: #030712;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e5e7eb;
  --muted: #a3a3ad;
  --accent: #a99cff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; color-scheme: dark; }
:focus-visible { outline: 2px solid #a99cff; outline-offset: 5px; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 20; background: white; color: #030712; padding: 10px 18px; border-radius: 20px; }
.skip-link:focus { top: 24px; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(169, 156, 255, 0.11), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #c9c1ff; }

.site-header {
  position: sticky;
  top: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 12px 40px #0004, inset 0 1px 0 #ffffff0a;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 7, 0.86);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.header-links a { color: var(--muted); }
.header-links a:hover { color: #fff; }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: #fff;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 36px 0 12px;
}

h3 { font-size: 1.05rem; color: #fff; margin: 24px 0 8px; }

p, li { color: var(--muted); font-size: 15px; }
strong { color: #f1f5f9; font-weight: 600; }

.updated {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9c1ff;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.lede { font-size: 17px; color: #cbd5e1; max-width: 70ch; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 24px;
}

.card h2 { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0b1220;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover { color: #0b1220; background: #e2e8f0; transform: translateY(-1px); }

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border);
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

.notice {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.site-footer a { color: #94a3b8; margin: 0 8px; }
.site-footer a:hover { color: #fff; }

.page-intro { max-width: 780px; margin-bottom: 48px; }
.eyebrow, .card-index { display: block; font-size: 10px; letter-spacing: .16em; color: #a99cff; font-weight: 600; }
.page-intro .eyebrow { margin-bottom: 20px; }
.page-intro h1 span { color: #a99cff; }
.updated { margin: 8px 0 12px; text-transform: none; letter-spacing: 0; color: #b8c5dd; background: #ffffff05; border-color: #ffffff14; padding: 6px 12px; }
.lede { line-height: 1.85; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(120deg, #a99cff10, #38bdf805); margin-bottom: 64px; overflow: hidden; }
.summary-strip > div { padding: 24px; }
.summary-strip > div + div { border-left: 1px solid var(--border); }
.summary-strip span { display: block; font-size: 9px; letter-spacing: .12em; color: #a99cff; margin-bottom: 12px; }
.summary-strip strong { display: block; font-size: 15px; }
.summary-strip p { font-size: 12px; margin: 6px 0 0; }
.document-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 52px; align-items: start; }
.contents { position: sticky; top: 110px; }
.contents nav { display: grid; gap: 4px; margin-top: 16px; }
.contents nav a { color: #aab7cb; font-size: 13px; padding: 7px 0; }
.contents nav a:hover { color: white; }
.contents-help { display: block; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; font-size: 12px; }
.policy-body section { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.policy-body section.card { margin-top: 0; padding: 28px; }
.policy-body h2 { margin-top: 0; font-size: 22px; letter-spacing: -.025em; }
.policy-body p, .policy-body li { line-height: 1.9; }
.policy-body li { margin-bottom: 14px; }
.policy-body a, .support-notes a { text-decoration: underline; text-underline-offset: 4px; }
code { overflow-wrap: anywhere; color: #a99cff; font-size: .9em; }
.card-grid .card { display: flex; flex-direction: column; padding: 30px; background: linear-gradient(135deg, #ffffff07, #ffffff02); transition: border-color .2s; }
.card-grid .card:hover { border-color: #a99cff55; }
.card-grid h2 { margin: 24px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.card-grid .card p { line-height: 1.8; margin-bottom: 28px; }
.card-grid .button { align-self: flex-start; margin-top: auto; }
.notice { margin: 28px 0 48px; color: #c3cbd8; line-height: 1.8; border-color: #a99cff; background: #a99cff09; }
.support-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; border-block: 1px solid var(--border); padding: 36px 0; }
.support-checklist h2 { font-size: 28px; line-height: 1.3; margin-top: 12px; }
.support-checklist ul { margin: 0; }
.support-notes { max-width: 780px; }
.site-footer { color: #94a3b8; background: radial-gradient(ellipse at 50% 100%, #a99cff14, transparent 70%); }

@media (max-width: 560px) {
  .header-links { gap: 12px; font-size: 13px; }
  main { padding: 48px 20px 64px; }
  .brand { font-size: 14px; gap: 7px; }
  .site-header .inner { padding: 12px; gap: 10px; }
  .card-grid, .summary-strip, .support-checklist { grid-template-columns: 1fr; }
  .summary-strip > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .summary-strip { margin-bottom: 36px; }
  .card-grid .card { padding: 24px; }
  .page-intro { margin-bottom: 32px; }
}
@media (max-width: 850px) {
  .document-layout { grid-template-columns: 1fr; gap: 32px; }
  .contents { position: static; }
  .contents nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Guide pages */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.guide { max-width: 780px; }
.guide h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.guide h2 { font-size: 1.6rem; letter-spacing: -.025em; margin: 56px 0 14px; }
.guide h3 { margin-top: 28px; }
.guide p, .guide li { line-height: 1.85; }
.guide ol { padding-left: 20px; }
.guide a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.guide figure { margin: 28px 0; }
.guide figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.guide pre { overflow-x: auto; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.guide pre code { overflow-wrap: normal; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.guide > .cta-row { margin-top: 56px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
tr:last-child td { border-bottom: 0; }
th { color: #fff; font-weight: 600; background: var(--panel); }
td:first-child { color: #f1f5f9; font-weight: 500; min-width: 170px; }
.fineprint { font-size: 12px; color: #7c8aa0; margin-top: 28px; }
.guide-links { max-width: 780px; margin-top: 64px; padding-top: 12px; border-top: 1px solid var(--border); }
.guide-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.guide-links li { margin: 0; }
.guide-links a { display: inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: #e5e7eb; font-size: 14px; }
.guide-links a:hover { border-color: #a99cff55; color: #fff; }
