:root {
  --bg: #05030a; --raised: #0b0716; --surface: #120b22; --tertiary: #1d1236;
  --border: #2c1d4f; --accent: #9b4dff; --accent-soft: #c9a2ff;
  --text: #b5acd0; --muted: #7f72a6; --white: #fff;
  --sans: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--white); }
code, pre { font-family: var(--mono); }
:not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--tertiary); color: var(--accent-soft); font-size: .88em; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(5,3,10,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.brand img { height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.top nav a { color: var(--text); }
.top nav a:hover { color: var(--white); }

/* layout */
.wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 40px 24px 80px; }
.side, .toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; }
.side h4, .toc h4 { margin: 0 0 10px; color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.side section { margin-bottom: 28px; }
.side a, .toc a { display: block; padding: 6px 14px; border-left: 2px solid transparent; color: var(--text); }
.side a:hover, .toc a:hover { color: var(--white); }
.side a.on, .toc a.on { border-color: var(--accent); background: linear-gradient(90deg, rgba(155,77,255,.12), transparent); color: var(--white); }
.toc a { padding: 4px 12px; font-size: 13px; color: var(--muted); }

/* content */
.doc { min-width: 0; max-width: 820px; }
.crumb { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.crumb b { color: var(--white); font-weight: 500; }
h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase;
  background: linear-gradient(100deg, #fff 20%, #c9a2ff 60%, #9b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 24px; font-size: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.badge { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--tertiary); color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.doc section { margin-bottom: 56px; }
h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--white); font-size: 24px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
h2 span { color: var(--accent); }
h3 { margin: 28px 0 8px; color: var(--white); font-size: 18px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--white); }

pre { position: relative; margin: 16px 0; padding: 20px 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--raised); color: #d7d0ea; font-size: 13.5px; line-height: 1.7; }
pre .copy { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border: 0; border-radius: 6px; background: var(--border); color: var(--white); font: 600 11px var(--sans); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
pre:hover .copy, pre .copy:focus { opacity: 1; }
pre .copy:hover { background: var(--accent); }
.c { color: var(--muted); }

.table { margin: 16px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 14px 20px; background: var(--raised); color: var(--white); text-align: left; }
td { padding: 12px 20px; border-top: 1px solid var(--border); vertical-align: top; }
td:first-child { color: var(--accent-soft); font-family: var(--mono); font-size: 13px; white-space: nowrap; }

.note { margin: 20px 0; padding: 16px 20px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); }
.note b { display: block; margin-bottom: 4px; color: var(--white); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.note p { margin: 0; }

.faq details { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq summary { padding: 16px 20px; color: var(--white); font-weight: 700; cursor: pointer; }
.faq details[open] { border-color: rgba(155,77,255,.45); }
.faq p { margin: 0; padding: 0 20px 16px; }

.foot { border-top: 1px solid var(--border); background: var(--raised); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 32px 24px; font-size: 13px; color: var(--muted); }
.foot img { height: 40px; width: auto; }
.foot nav { display: flex; gap: 20px; }

/* landing */
.hero { position: relative; overflow: hidden; padding: 96px 24px 80px; text-align: center; border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(155,77,255,.28), transparent 65%); }
.hero img { width: 160px; height: auto; filter: drop-shadow(0 0 18px rgba(155,77,255,.5)); }
.hero p { max-width: 560px; margin: 0 auto; font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1100px; margin: 56px auto; padding: 0 24px; }
.card { display: block; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card img { display: block; width: 100%; height: auto; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 10px; }
.shot { margin: 0 0 40px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 60px rgba(155,77,255,.18); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.card h3 { margin: 0 0 8px; color: var(--white); font-size: 20px; }
.card p { margin: 0 0 16px; color: var(--text); }
.card small { color: var(--accent-soft); font-weight: 700; letter-spacing: .1em; }

@media (max-width: 1199px) { .wrap { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 899px) {
  .wrap { grid-template-columns: 1fr; padding-top: 24px; }
  .side { position: static; max-height: none; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .top nav { gap: 16px; }
}
