:root {
  color-scheme: dark;
  --void: #070611;
  --panel: #100d20;
  --panel-soft: #151129;
  --ink: #f7f6ff;
  --muted: #aaa4c2;
  --dim: #7d7697;
  --pink: #8067ff;
  --pink-soft: #d7d0ff;
  --lime: #8deaff;
  --line: rgba(144,124,255,.22);
  --line-soft: rgba(210,204,255,.1);
  --max: 1240px;
  font-family: Geist, Inter, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--void); font-size: 17px; line-height: 1.68; }
body:before { z-index: -1; content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .34; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 220px 220px; mask-image: linear-gradient(180deg, #000, transparent 78%); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
code { padding: .18em .44em; overflow-wrap: anywhere; color: #d6d1e7; border: 1px solid var(--line); border-radius: 3px; background: rgba(128,103,255,.07); font: 500 .86em Geist Mono, Consolas, monospace; }

.topbar { z-index: 20; position: sticky; top: 20px; width: min(1120px, calc(100% - 48px)); height: 68px; margin: 20px auto 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(6,5,15,.78); box-shadow: 0 18px 45px rgba(0,0,0,.28); backdrop-filter: blur(22px); }
.topbar-inner { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 10px 0 19px; margin: auto; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.docs-mark, .brand > img { width: 29px; height: 29px; display: inline-block; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(128,103,255,.28)); }
.step > img { width: 34px; height: 34px; object-fit: contain; }
.brand small { padding-left: 11px; color: #8b84a4; border-left: 1px solid var(--line); font: 560 11px Geist Mono, monospace; letter-spacing: .08em; text-transform: uppercase; }
.top-links { height: 100%; display: flex; align-items: center; justify-self: center; gap: 28px; color: #aaa4c2; font-size: 14px; font-weight: 500; }
.top-links > a:hover { color: var(--pink-soft); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 7px; }
.x-link { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #cbc6dd; background: rgba(255,255,255,.025); transition: color .2s,border-color .2s,background .2s; }
.x-link:hover { border-color: rgba(169,156,255,.5); color: #fff; background: rgba(128,103,255,.08); }
.x-link svg { width: 15px; height: 15px; fill: currentColor; }
.open-app { min-height: 44px; display: inline-flex; align-items: center; gap: 17px; padding: 0 8px 0 15px; border-radius: 11px; color: #0c0920; background: var(--pink-soft); font-size: 13px; font-weight: 650; }
.open-app span { width: 25px; height: 25px; display: grid; place-items: center; color: #160d13; border: 1px solid rgba(22,13,19,.14); transition: transform .18s ease; }
.open-app:hover span { transform: translateX(2px); }

.layout { width: min(var(--max), calc(100% - 48px)); display: grid; grid-template-columns: 205px minmax(0,790px) 170px; gap: clamp(30px,4vw,56px); margin: 0 auto; }
.sidebar, .toc { position: sticky; top: 105px; height: max-content; padding-top: 48px; }
.sidebar small, .toc small { display: block; margin: 0 0 9px; color: #7f7897; font: 600 10px/1.3 Geist Mono, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.sidebar nav, .toc nav { display: grid; gap: 1px; margin-bottom: 28px; }
.sidebar a, .toc a { padding: 8px 0; color: #9992b1; font-size: 14px; line-height: 1.4; transition: color .16s, padding .16s; }
.sidebar a:hover, .toc a:hover, .sidebar a.active, .toc a.active { color: var(--pink-soft); }
.sidebar a.active { padding-left: 11px; border-left: 1px solid var(--pink); }

.content { min-width: 0; padding: 76px 0 120px; }
.breadcrumbs { margin-bottom: 40px; color: #7d7697; font: 560 10px/1.3 Geist Mono, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumbs span, .eyebrow { color: var(--pink); }
.eyebrow { margin: 0 0 20px; font: 600 11px/1.2 Geist Mono, Consolas, monospace; letter-spacing: .14em; }
h1, h2, h3 { color: var(--ink); line-height: .98; letter-spacing: -.058em; }
h1 { max-width: 720px; margin: 0 0 28px; font-size: clamp(52px,5.4vw,78px); font-weight: 430; }
h2 { margin: 0 0 22px; font-size: clamp(38px,3.5vw,51px); font-weight: 430; }
h3 { margin: 38px 0 13px; font-size: 22px; font-weight: 500; letter-spacing: -.04em; }
.lede { max-width: 700px; margin: 0 0 38px; color: #b5a9b0; font-size: 18px; line-height: 1.58; }
.content p, .content li { color: var(--muted); }
.content strong { color: var(--ink); }
.content ul { padding-left: 21px; }
.content li { margin: 9px 0; padding-left: 5px; }
.content li::marker { color: var(--pink); }

.notice { position: relative; margin: 30px 0; padding: 22px 24px; border: 1px solid rgba(128,103,255,.3); background: linear-gradient(120deg, rgba(128,103,255,.12), rgba(128,103,255,.035)); }
.notice:before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -1px; width: 2px; background: var(--pink); }
.notice b { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--pink-soft); font: 600 11px/1.3 Geist Mono, monospace; letter-spacing: .1em; text-transform: uppercase; }
.notice p { margin: 0; color: #bbb5ce; font-size: 15px; }

.section { margin-top: 76px; padding-top: 57px; border-top: 1px solid var(--line); }
.steps { display: grid; gap: 0; margin: 28px 0; border: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line-soft); background: rgba(128,103,255,.025); transition: background .16s; }
.step:last-child { border: 0; }
.step:hover { background: rgba(128,103,255,.075); }
.step-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--pink); border: 1px solid var(--line); background: rgba(128,103,255,.07); }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.step b, .step small { display: block; }
.step b { color: #e2dfed; font-size: 15px; font-weight: 560; }
.step small { margin-top: 4px; color: #918aa9; font-size: 14px; line-height: 1.55; }

.permission-table { margin: 25px 0; overflow: hidden; border: 1px solid var(--line); background: rgba(128,103,255,.025); }
.permission-table > div { display: grid; grid-template-columns: minmax(170px,.95fr) minmax(0,1.8fr); gap: 24px; padding: 14px 17px; border-bottom: 1px solid var(--line-soft); }
.permission-table > div:last-child { border-bottom: 0; }
.permission-table b { color: var(--pink-soft); font: 530 12px/1.45 Geist Mono, Consolas, monospace; overflow-wrap: anywhere; }
.permission-table span { color: #9d96b6; font-size: 14px; line-height: 1.55; }
.pool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 28px 0; border: 1px solid var(--line); background: var(--line); }
.pool-grid article { min-height: 285px; display: grid; align-content: start; padding: 24px; background: linear-gradient(150deg,var(--panel),#0d0a1a); }
.pool-grid article:nth-child(2) { background: linear-gradient(150deg,#16112c,#0d0a1a); }
.pool-grid small { color: var(--pink); font: 600 10px Geist Mono,monospace; letter-spacing: .1em; }
.pool-grid h3 { margin: 24px 0 15px; font-size: 26px; }
.pool-grid article > h3:first-child { margin-top: 0; }
.pool-grid p { min-height: 105px; margin: 0; font-size: 15px; line-height: 1.58; }
.pool-grid b { align-self: end; padding-top: 18px; color: var(--pink-soft); font: 560 11px/1.45 Geist Mono,monospace; }

.network-card { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; margin: 25px 0; padding: 20px; border: 1px solid var(--line); background: var(--panel-soft); }
.network-card small, .token-card small { display: block; margin-bottom: 5px; color: #6e6269; font: 600 7px Geist Mono, monospace; letter-spacing: .13em; }
.network-card b { color: #d8ced4; font-size: 12px; font-weight: 540; }
.network-card a { padding: 11px 14px; color: #0c0920; background: var(--pink-soft); font-size: 12px; font-weight: 650; }
.network-card a span { color: #170d14; }

.reward-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 30px 0 36px; border: 1px solid var(--line); background: var(--line); }
.reward-summary article { min-height: 185px; padding: 21px; color: var(--ink); background: var(--panel); }
.reward-summary article:nth-child(2) { background: #171017; }
.reward-summary article:nth-child(3) { background: var(--pink-soft); color: #1b1017; }
.reward-summary small { display: block; margin-bottom: 5px; color: #766971; font: 560 9px/1.3 Geist, sans-serif; letter-spacing: .07em; }
.reward-summary article:nth-child(3) small, .reward-summary article:nth-child(3) p { color: #654653; }
.content .reward-summary strong { display: block; margin: 16px 0 13px; color: inherit; font: 480 38px/1 Geist, sans-serif; letter-spacing: -.055em; }
.reward-summary p { margin: 0; color: #9d96b6; font-size: 13px; line-height: 1.52; }
.token-card { margin: 25px 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel-soft); }
.token-card > div:first-child { padding: 20px; border-bottom: 1px solid var(--line-soft); }
.token-card code { display: block; width: max-content; max-width: 100%; margin-top: 9px; }
.token-card > div:last-child { display: flex; gap: 20px; padding: 13px 20px; }
.token-card a, .text-link { color: var(--pink); font-size: 13px; font-weight: 580; }
.token-card a:hover, .text-link:hover { color: var(--pink-soft); }
.formula { margin: 23px 0; }
.formula code { display: block; padding: 17px 19px; border-left: 2px solid var(--pink); background: rgba(128,103,255,.07); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 11px; padding-bottom: 3px; border-bottom: 1px solid rgba(128,103,255,.48); }

.status-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 26px 0; border: 1px solid var(--line); background: var(--line); }
.status-card { padding: 20px; background: var(--panel); }
.status-card.wide { grid-column: 1 / -1; }
.status-card b, .status-card small { display: block; }
.status-card b { color: #dedbea; font-size: 14px; font-weight: 560; }
.status-card small { margin-top: 6px; color: #8e87a6; font-size: 12px; }
.link-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin-top: 25px; border: 1px solid var(--line); background: var(--line); }
.link-card { padding: 19px; background: var(--void); transition: background .16s; }
.link-card:hover { background: var(--panel-soft); }
.link-card b, .link-card small { display: block; }
.link-card b { font-size: 12px; font-weight: 540; }
.link-card span { float: right; color: var(--pink); font-size: 17px; }
.link-card small { margin-top: 5px; color: #746970; font-size: 10px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 80px; padding: 26px 0; color: #8d86a6; border-top: 1px solid var(--line); font: 500 13px Arial, sans-serif; }

.simple-layout { width: min(820px, calc(100% - 40px)); margin: auto; }
.simple-layout.content { padding-top: 72px; }
.simple-layout ul { padding-left: 21px; }
.security-card { margin: 28px 0; padding: 24px; border: 1px solid var(--line); background: var(--panel-soft); }
.security-card p { margin: 6px 0; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; padding: 14px 16px; overflow-wrap: anywhere; color: #d9cfd5; border: 1px solid var(--line); background: #0e0a0e; font: 500 10px Geist Mono, monospace; }
.copyline span { color: var(--lime); }
.tag { display: inline-flex; margin-bottom: 20px; padding: 6px 10px; color: var(--pink); border: 1px solid rgba(128,103,255,.32); background: rgba(128,103,255,.08); font: 600 11px Geist Mono, monospace; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 1030px) {
  .layout { grid-template-columns: 185px minmax(0,1fr); gap: 36px; }
  .toc { display: none; }
}

@media (max-width: 740px) {
  .topbar { top: 14px; width: calc(100% - 24px); margin-top: 14px; }
  .topbar-inner { width: 100%; grid-template-columns: 1fr auto; padding-left: 13px; }
  .top-links { display: none; }
  .open-app { min-height: 39px; padding-left: 12px; font-size: 12px; }
  .layout { width: min(100% - 32px,790px); display: block; }
  .sidebar { position: static; display: flex; gap: 17px; padding: 22px 0 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .sidebar small, .sidebar nav:not(:first-of-type) { display: none; }
  .sidebar nav { display: flex; gap: 18px; margin: 0; white-space: nowrap; }
  .sidebar a { padding: 8px 0 13px; }
  .sidebar a.active { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--pink); }
  .content { padding: 48px 0 78px; }
  .breadcrumbs { margin-bottom: 31px; }
  h1 { font-size: 47px; }
  h2 { font-size: 37px; }
  .lede { font-size: 17px; }
  .permission-table > div { grid-template-columns: 1fr; gap: 5px; }
  .reward-summary { grid-template-columns: 1fr; }
  .pool-grid { grid-template-columns: 1fr; }
  .pool-grid article { min-height: 230px; }
  .pool-grid p { min-height: 0; }
  .reward-summary article { min-height: 145px; }
  .network-card { grid-template-columns: 1fr 1fr; }
  .network-card a { grid-column: 1 / -1; text-align: center; }
  .status-grid, .link-cards { grid-template-columns: 1fr; }
  .status-card.wide { grid-column: auto; }
  .footer { display: grid; }
}

@media (max-width: 460px) {
  .brand small { display: none; }
  .step { grid-template-columns: 48px 1fr; padding-inline: 14px; }
  .token-card > div:last-child { display: grid; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
