:root {
  --bg: #000000;
  --bg2: #07090a;
  --ink: #f4f4f2;
  --ink-soft: rgba(255, 255, 255, .58);
  --rule: rgba(255, 255, 255, .14);
  --card: #0a0a0a;
  --card-2: #111111;
  --card-line: rgba(255, 255, 255, .09);
  --txt: #d9e6f2;
  --dim: #7d93aa;
  --mint: #14f195;
  --cyan: #22d3ee;
  --violet: #9945ff;
  --pink: #ff4d8d;
  --amber: #ffc24b;
  --serif: "Newsreader", Georgia, serif;
  --display: "Instrument Serif", "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 2.2vw, 32px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(153,69,255,.10), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(20,241,149,.06), transparent 60%),
    linear-gradient(120deg, var(--bg), var(--bg2), var(--bg));
  background-size: 100% 100%, 100% 100%, 300% 300%;
  animation: drift 24s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.45;
}
@keyframes drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035; background-size: 160px 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
  mix-blend-mode: screen;
}
@keyframes grain { 0%{background-position:0 0} 25%{background-position:-23px 17px} 50%{background-position:15px -29px} 75%{background-position:-9px 31px} 100%{background-position:0 0} }

a { color: inherit; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0; letter-spacing: -.01em; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 20px;
  padding: 18px var(--pad) 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.18));
  transition: transform .6s cubic-bezier(.2,.9,.3,1.4);
}
.brand:hover .brand-logo { transform: rotate(-14deg) scale(1.08); }
.brand-name { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: -.01em; }

.pulse {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid #fff; border-radius: 999px; padding: 6px 14px; color: #fff;
}
.pulse .slot { opacity: 1; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; position: relative; }

@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes flash { 50% { opacity: 1; } }

.socials { display: flex; gap: 16px; align-items: center; }
.socials a { display: grid; place-items: center; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px) rotate(-6deg); }

/* ---------- layout ---------- */
.layout {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(20px, 3vw, 44px);
  padding: 8px var(--pad) 0;
}
.col { min-height: 0; }
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.scroll::-webkit-scrollbar { width: 5px; }
.scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

.col-left { padding: 6px 18px 40px 0; border-right: 0; }
.col-left p { margin: 0 0 16px; }

.lede { font-size: 19.5px; }
.dropcap {
  float: left; font-family: var(--display); font-size: 96px; line-height: .78;
  margin: 6px 12px 0 -2px; padding-right: 4px; border-right: 4px solid var(--ink);
}

.meta { margin: 26px 0 8px; }
.meta-row { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; }
.meta-k { font-size: 18px; font-weight: 500; }
.meta-v { font-size: 18px; }
.ticker { font-family: var(--mono); font-size: 14px; letter-spacing: .03em; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-size: 16px; }
.addr {
  all: unset; cursor: pointer; font-family: var(--mono); font-size: 12.5px; margin-top: 4px; display: inline-block;
  opacity: .78;
}
.addr:hover { opacity: 1; }
.addr::after { content: " ⧉"; }
.addr.copied::after { content: " ✓ copied"; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badges span {
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 4px;
  background: var(--ink); color: var(--bg);
}
.badges .sol { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); }

.block { margin-top: 30px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.small-link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.cmds { list-style: none; padding: 0; margin: 0; }
.cmds li {
  display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--rule);
}
.cmds li:last-child { border-bottom: 1px solid var(--rule); }
.cmds code { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.cmds span { font-size: 15px; color: var(--ink-soft); }

.nos { list-style: none; padding: 0; margin: 0; }
.nos li { padding: 3px 0 3px 26px; position: relative; font-size: 17px; }
.nos li::before { content: "✕"; position: absolute; left: 0; top: 3px; font-family: var(--mono); font-size: 14px; }

.points { width: 100%; border-collapse: collapse; font-size: 16px; }
.points td { padding: 5px 0; border-top: 1px solid var(--rule); }
.points td:last-child { text-align: right; font-family: var(--mono); font-size: 14px; }
.levels { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lv { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 4px; color: #fff; }
.lv.low { background: #0a7a4d; } .lv.med { background: #a86b00; } .lv.high { background: #c4134f; }

.code {
  background: var(--card); color: var(--txt); padding: 14px 16px; border-radius: 10px;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; overflow-x: auto; margin: 0;
}
.code .c { color: var(--dim); }
.doc { font-size: 16.5px; margin: 0 0 10px !important; }
.doc code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; }
.fine { font-size: 14px; color: var(--ink-soft); margin-top: 26px !important; font-style: italic; }

/* ---------- right ---------- */
.col-right { display: grid; grid-template-rows: minmax(0, 1fr); padding-bottom: 28px; }
.right-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; }
.panel { display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button {
  font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--rule); transition: all .15s;
}
.chips button:hover, .chips button.active { background: var(--ink); color: var(--bg); }
.line.typing::after { content: "▍"; color: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.term {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: var(--card); color: var(--txt); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55), inset 0 0 0 1px var(--card-line);
  position: relative;
}
.term::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--card-line); background: var(--card-2); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3c52; }
.term-bar i:nth-child(1) { background: var(--pink); } .term-bar i:nth-child(2) { background: var(--amber); } .term-bar i:nth-child(3) { background: var(--mint); }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

.term-out {
  flex: 1; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.65;
  scrollbar-color: #2a3c52 transparent;
}
.term-out::-webkit-scrollbar-thumb { background: #2a3c52; }
.line { white-space: pre-wrap; word-break: break-word; }
.line.cmd { color: #fff; margin-top: 10px; }
.line.cmd::before { content: "opensol › "; color: var(--mint); }
.line.dim { color: var(--dim); }
.line.h { color: #fff; font-weight: 600; margin-top: 6px; }
.line.ok { color: var(--mint); }
.line.warn { color: var(--amber); }
.line.bad { color: var(--pink); }
.line.info { color: var(--cyan); }
.line a { color: var(--cyan); }
.spin::after { content: "⠋"; animation: spin .8s steps(8) infinite; display: inline-block; margin-left: 6px; color: var(--mint); }
@keyframes spin {
  0%{content:"⠋"} 12%{content:"⠙"} 25%{content:"⠹"} 37%{content:"⠸"} 50%{content:"⠼"} 62%{content:"⠴"} 75%{content:"⠦"} 87%{content:"⠧"}
}
.bar { display: inline-block; height: 9px; border-radius: 2px; vertical-align: middle; margin-right: 8px; transition: width 1s cubic-bezier(.2,.8,.2,1); }

.term-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--card-line); background: var(--card-2); }
.prompt { font-family: var(--mono); font-size: 13.5px; color: var(--mint); white-space: nowrap; }
.term-in input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff;
  font-family: var(--mono); font-size: 13.5px; caret-color: var(--mint);
}
.term-in input::placeholder { color: #4b6078; }
.term-in button {
  background: var(--mint); color: var(--card); border: 0; border-radius: 6px; width: 32px; height: 28px;
  font-size: 15px; cursor: pointer; font-weight: 700;
}

/* bottom right */
.right-bottom { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 24px; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { padding: 0 14px 0 0; position: relative; display: flex; flex-direction: column; }
.steps li + li { padding-left: 14px; border-left: 1px solid var(--rule); }
.steps b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.st { font-weight: 600; font-size: 17px; margin-top: 4px; }
.sd { font-size: 15px; color: var(--ink-soft); line-height: 1.35; }

.journal-head { display: flex; align-items: center; gap: 10px; }
.jnav { all: unset; cursor: pointer; font-size: 22px; padding: 0 6px; line-height: 1; }
.jnav:disabled { opacity: .3; cursor: default; }
.jentry { margin-top: 10px; animation: fadein .35s; }
.jentry .jt { font-weight: 600; font-size: 17px; }
.jentry .jt span { font-weight: 400; margin-right: 10px; font-family: var(--mono); font-size: 13px; }
.jentry p { margin: 4px 0 0; font-size: 16px; }
.jentry .tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--bg); padding: 2px 6px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }

/* ticker tape */
.ticker-tape {
  position: fixed; left: 0; right: 0; bottom: 0; height: 34px; overflow: hidden; z-index: 5;
  background: #050505; color: var(--ink-soft); border-top: 1px solid var(--rule); display: flex; align-items: center;
}
.tape { display: flex; gap: 48px; white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; animation: tape 60s linear infinite; padding-left: 48px; }
.tape span b { color: #fff; font-weight: 600; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .right-top, .right-bottom { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1100px), (max-height: 700px) {
  body { overflow: auto; height: auto; }
  html, body { height: auto; }
  .layout { grid-template-columns: 1fr; }
  .col-left { overflow: visible; padding-right: 0; }
  .col-right { grid-template-rows: auto auto; }
  .term { height: 480px; flex: none; }
  .layout { padding-bottom: 30px; }
}
@media (min-width: 1101px) and (max-height: 700px) {
  .layout { grid-template-columns: minmax(300px, 400px) 1fr; }
  .col-left { overflow: visible; }
}
@media (max-width: 1100px) {
  .layout { display: flex; flex-direction: column; gap: 26px; }
  .col-left, .col-right { display: contents; }
  .intro { order: 1; }
  .right-top { order: 2; }
  .right-bottom { order: 3; }
  .more { order: 4; }
  .more .block:first-child { margin-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .pulse span:not(.dot):not(.slot) { display: none; }
  .brand-name { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 10px; }
  .term { height: 440px; }
}

/* ---------- wallet connect ---------- */
.docs-btn {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: #fff; border: 1px solid #fff; border-radius: 999px; padding: 8px 16px; transition: background .15s, color .15s;
}
.docs-btn:hover, .docs-btn.active { background: #fff; color: #000; }
.connect {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: #fff; border-radius: 999px; padding: 9px 16px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 55%, rgba(0,0,0,.25)), rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), 0 8px 24px -10px rgba(0,0,0,.8);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.connect:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -10px rgba(153,69,255,.45); }
.connect .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.connect.soon .cdot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.connect.on .cdot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.connect.on:hover #connect-label { font-size: 0; }
.connect.on:hover #connect-label::after { content: "Disconnect"; font-size: 12.5px; }
.connect.big {
  font-size: 14px; padding: 13px 24px; margin-top: 18px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 60%, var(--mint)); color: #04130d; font-weight: 600;
  box-shadow: 0 0 0 0 rgba(20,241,149,.5); animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(20,241,149,0); } }

.lock-ico { font-size: 15px; vertical-align: 2px; }
body:not(.locked) .lock-ico { display: none; }
body:not(.locked) .gate { display: none; }
.gate {
  flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 50% 0%, #1b2f4a 0%, var(--card) 60%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55), inset 0 0 0 1px var(--card-line);
  display: grid; place-items: center; text-align: center; color: var(--txt);
}
.gate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
.gate-inner { position: relative; padding: 30px; max-width: 420px; }
.gate-logo { width: 92px; height: 92px; border-radius: 50%; filter: grayscale(.85) brightness(.7); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); filter: grayscale(.6) brightness(.85); } }
.gate h3 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 14px 0 6px; color: #fff; }
.gate p { font-size: 16px; color: var(--dim); margin: 0; }
.gate-tiers { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.gate-tiers span { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid #2a3c52; border-radius: 999px; padding: 4px 10px; }
.gate-tiers em { font-style: normal; color: var(--amber); }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(400px, 100%); background: var(--card); color: var(--txt); border-radius: 16px; padding: 24px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), inset 0 0 0 1px var(--card-line); animation: fadein .25s;
}
.modal-card h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0; color: #fff; }
.modal-card p { font-size: 15px; color: var(--dim); margin: 4px 0 16px; }
.modal-x { all: unset; position: absolute; top: 12px; right: 16px; font-size: 26px; cursor: pointer; color: var(--dim); }
.wallets { display: grid; gap: 8px; }
.wallets button, .wallets a {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--card-line);
  font-family: var(--serif); font-size: 17px; color: #fff; transition: border-color .15s, transform .15s;
}
.wallets button:hover, .wallets a:hover { border-color: var(--mint); transform: translateX(2px); }
.wallets img { width: 28px; height: 28px; border-radius: 7px; }
.wallets .wi { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: #fff; }
.wallets small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.wallets .det small { color: var(--mint); }
.wallet-err { font-family: var(--mono); font-size: 12px; color: var(--pink); margin-top: 10px; min-height: 1em; }

/* ---------- token section ---------- */
.token-block { margin-top: 26px; }
.tag-planned { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--amber); color: var(--amber); padding: 3px 7px; border-radius: 3px; }
.token-block p { font-size: 17px; }
.sub { font-family: var(--serif); font-weight: 600; font-size: 17px; margin: 22px 0 6px; }
.flowline { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: f; }
.flowline li {
  position: relative; padding: 9px 12px 9px 40px; margin-bottom: 18px; border: 1px solid var(--rule); border-radius: 10px; font-size: 16px;
  counter-increment: f; background: rgba(255,255,255,.03);
}
.flowline li::before { content: counter(f); position: absolute; left: 12px; top: 8px; font-family: var(--display); font-size: 24px; line-height: 1; }
.flowline li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -19px; font-family: var(--mono); font-size: 13px; }
.flowline li:first-child { background: var(--ink); color: var(--bg); }
.tiers td:last-child { font-family: var(--mono); font-size: 13px; }
.tiers .free { font-weight: 600; }
.roles { margin: 0; }
.roles dt { font-weight: 600; font-size: 16px; margin-top: 10px; }
.roles dd { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.honest { font-size: 15px !important; margin-top: 18px !important; padding: 12px 14px; border-left: 3px solid var(--ink); background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; }

@media (max-width: 560px) {
  .connect:not(.big) { padding: 8px 12px; font-size: 11px; }
  .pulse { display: none; }
  .gate { min-height: 440px; }
}
@media (max-width: 1100px) { .gate { min-height: 460px; flex: none; } }


/* ---------- docs page ---------- */
body.docs-page { overflow: auto; height: auto; display: block; }
html:has(body.docs-page) { height: auto; scroll-behavior: smooth; }
.docs-page .top { position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.docs-crumb { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.docs { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: clamp(24px, 5vw, 80px); padding: 40px var(--pad) 120px; justify-content: center; }
.docs-nav { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { text-decoration: none; color: var(--ink-soft); font-size: 16px; padding: 5px 0 5px 14px; border-left: 1px solid var(--rule); transition: color .15s, border-color .15s; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a.active { color: var(--ink); border-left-color: var(--ink); }
.docs-body section { padding-top: 12px; margin-bottom: 56px; scroll-margin-top: 100px; }
.docs-body h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 68px); line-height: 1; margin: 0 0 18px; letter-spacing: -.01em; }
.docs-body h2 { font-family: var(--display); font-weight: 400; font-size: 38px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.docs-body h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 26px 0 8px; }
.docs-body h4 { font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; color: var(--ink-soft); }
.docs-body p { margin: 0 0 14px; font-size: 18px; color: rgba(255,255,255,.86); }
.docs-body code { font-family: var(--mono); font-size: 14px; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; color: #fff; }
.docs-body .code { margin: 10px 0 16px; font-size: 13px; }
.docs-body .code code { background: none; padding: 0; }
.docs-lede { font-size: 21px !important; color: #fff !important; }
.docs-pills { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.docs-pills li { font-family: var(--mono); font-size: 12px; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; color: var(--ink-soft); }
.docs-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16.5px; }
.docs-table th { text-align: left; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 400; padding: 0 12px 8px 0; border-bottom: 1px solid var(--rule); }
.docs-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: rgba(255,255,255,.86); }
.docs-table td:first-child { white-space: nowrap; color: #fff; }
.docs-table .num { font-family: var(--mono); font-size: 14px; text-align: right; white-space: nowrap; }
.docs-steps { padding: 0; margin: 10px 0 18px; list-style: none; counter-reset: s; }
.docs-steps li { counter-increment: s; position: relative; padding: 9px 0 9px 44px; border-bottom: 1px solid var(--rule); font-size: 17px; }
.docs-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.docs-steps b { color: #fff; font-weight: 600; }
.docs-steps-plain { padding-left: 0; list-style: none; margin: 6px 0 16px; }
.docs-steps-plain li { position: relative; padding: 5px 0 5px 22px; font-size: 17px; color: rgba(255,255,255,.86); }
.docs-steps-plain li::before { content: "–"; position: absolute; left: 0; color: var(--ink-soft); }
.docs-list { padding-left: 0; list-style: none; margin: 6px 0 16px; }
.docs-list li { position: relative; padding: 4px 0 4px 24px; font-size: 17px; }
.docs-list li::before { content: "✕"; position: absolute; left: 0; top: 5px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
.docs-grid > div { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.docs-grid p { font-size: 16px !important; margin: 0 !important; }
.docs-note { font-size: 16px !important; padding: 12px 16px; border-left: 2px solid #fff; background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; color: var(--ink-soft) !important; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; padding-top: 24px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-nav a { border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-table td:first-child { white-space: normal; }
  .docs-crumb { display: none; }
}

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

.col-left p .link { font-size: inherit; }

/* liquid glass "coming soon" panel */
.modal { background: rgba(0,0,0,.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-card.glass {
  overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 40%, rgba(0,0,0,.2) 100%), rgba(8,8,8,.55);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.05), inset 0 0 40px rgba(255,255,255,.03), 0 40px 90px -20px rgba(0,0,0,.85);
  border-radius: 22px;
}
.modal-card.glass::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,.16), transparent 60%);
  animation: sheen 7s ease-in-out infinite alternate;
}
.modal-card.glass::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -90px; bottom: -110px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(153,69,255,.35), rgba(34,211,238,.12) 50%, transparent 70%); filter: blur(10px);
}
@keyframes sheen { to { transform: translateX(18%) translateY(6%); } }
.modal-card.glass h3 { color: #fff; }
.modal-card.glass p { color: rgba(255,255,255,.7); }
.modal-card.glass .modal-x { color: rgba(255,255,255,.7); }
.soon-list .wrow {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 17px; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); cursor: not-allowed;
}
.soon-list .wi { opacity: .9; }
.wallets .wi.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.soon-list small { margin-left: auto; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px 8px; background: rgba(255,255,255,.06); }

/* terminal: black with white text only */
.term, .term-bar { background: #000; }
.term { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.term::before { display: none; }
.term-bar i, .term-bar i:nth-child(1), .term-bar i:nth-child(2), .term-bar i:nth-child(3) { background: rgba(255,255,255,.28); }
.term-bar span { color: rgba(255,255,255,.6); }
.term-out, .term-out .line, .line.cmd, .line.h, .line.ok, .line.warn, .line.bad, .line.info { color: #fff; }
.line.dim { color: rgba(255,255,255,.6); }
.line.cmd::before, .spin::after, .line.typing::after { color: #fff; }
.term-out .bar { background: #fff !important; }
.line a { color: #fff; }

/* glass wallet rows */
.modal-card.glass .wallets button, .modal-card.glass .wallets a {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.modal-card.glass .wallets button:hover, .modal-card.glass .wallets a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.modal-card.glass .wallets small {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px 8px; background: rgba(255,255,255,.06);
}
.modal-card.glass .wallets .det small { border-color: rgba(255,255,255,.6); }
.modal-card.glass .wallet-err { color: #fff; opacity: .8; }

/* header buttons never wrap */
.connect, .docs-btn { white-space: nowrap; flex-shrink: 0; }
.top { min-width: 0; }
.brand { min-width: 0; flex-shrink: 1; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .top { gap: 8px; padding: 12px 14px 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 25px; }
  .pulse { display: none; }
  .docs-btn, .connect { font-size: 10.5px; padding: 8px 11px; letter-spacing: .03em; }
  .connect { gap: 6px; }
  .docs-btn { margin-left: auto; }
  .socials svg { width: 22px; height: 22px; }
  .modal-card.glass { padding: 20px; border-radius: 18px; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
  .socials { display: none; }
}

/* docs on phones: no sideways overflow */
html, body { max-width: 100%; }
body.docs-page { overflow-x: hidden; }
.docs > * { min-width: 0; }
.docs-body .code { max-width: 100%; overflow-x: auto; white-space: pre; }
@media (max-width: 860px) {
  .docs { display: block; padding: 18px 16px 80px; }
  .docs-page .docs-crumb { display: none; }
  .docs-page .top .docs-btn[href="index.html"] { margin-left: auto; }
  .docs-nav {
    position: sticky; top: 62px; z-index: 5; margin: 0 -16px 22px; padding: 10px 16px;
    flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none;
    background: rgba(0,0,0,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule);
  }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav a { flex: none; white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
  .docs-nav a.active { background: #fff; color: #000; border-color: #fff; }
  .docs-body section { scroll-margin-top: 130px; margin-bottom: 44px; }
  .docs-body h1 { font-size: 46px; }
  .docs-body h2 { font-size: 32px; }
  .docs-body p, .docs-steps li, .docs-list li, .docs-steps-plain li { font-size: 16.5px; }
  .docs-lede { font-size: 19px !important; }
  .docs-table { font-size: 15px; }
  .docs-table, .docs-table tbody, .docs-table tr, .docs-table td { display: block; width: 100%; }
  .docs-table thead { display: none; }
  .docs-table tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .docs-table td { border: 0; padding: 2px 0; white-space: normal !important; text-align: left !important; }
  .docs-table td:first-child { font-weight: 600; }
  .docs-table .num { display: inline-block; width: auto; font-size: 13px; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 999px; margin: 4px 0; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-pills li { font-size: 11px; }
}

/* terminal lines ease in */
.term-out .line { animation: lineIn .5s cubic-bezier(.2,.7,.2,1) both; }
.term-out .line.cmd { animation: none; }
@keyframes lineIn { from { opacity: 0; transform: translateY(5px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.term-out { scroll-behavior: smooth; }

/* contract address */
.ca {
  display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; padding: 10px 10px 10px 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.03);
}
.ca-k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #000; background: #fff; border-radius: 4px; padding: 2px 6px; flex: none; }
.ca-v { font-family: var(--mono); font-size: 13px; color: #fff; word-break: break-all; line-height: 1.4; min-width: 0; flex: 1; }
.ca-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 11px;
  transition: background .15s, color .15s;
}
.ca-copy:hover { background: rgba(255,255,255,.14); }
.ca-copy.copied { background: #fff; color: #000; }
