/* Qloak, on the Hypercash layout (2026-12-03, the user: "use the site layout we did for hypercash, just make the colours match
   the branding"): the brand's cobalt as the ground, white type, white pill buttons with deep cobalt text, an ice highlight for
   the key phrase, eyebrows and the qubit dot. Same structure as Hypercash: a sticky frosted pill header under a thin strip, a
   one-screen hero with silk and the mark, cards on the ground, a slim footer. Motion is gated on <html data-motion>. */
@font-face { font-family: 'Outfit'; src: url(/fonts/outfit.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #1f4cff;
  --bg-2: #1d47f6;
  --card: #1c45ef;
  --card-2: #1a40e4;
  --surface: #183cd8;
  --glass: rgba(27, 68, 240, 0.74);
  --line: rgba(255, 255, 255, 0.2);
  --line-2: rgba(255, 255, 255, 0.32);
  --fg: #ffffff;
  --ink: #ffffff;
  --muted: #e2e9ff;
  --dim: #b9c8ff;
  --btn: #ffffff;
  --on-btn: #0c1d73;
  --acc: #9cecff;
  --acc-2: #7fe0ff;
  --acc-hi: #c9f6ff;
  --acc-ink: #0c1d73;
  --acc-soft: rgba(156, 236, 255, 0.16);
  --acc-line: rgba(156, 236, 255, 0.62);
  --pos: #b6ffd2;
  --pos-soft: rgba(182, 255, 210, 0.16);
  --neg: #ffc6d0;
  --neg-soft: rgba(255, 198, 208, 0.18);
  --deep: rgba(6, 20, 110, 0.5);
  --shadow: 0 1px 2px rgba(6, 20, 110, 0.28), 0 10px 30px -14px rgba(6, 20, 110, 0.6);
  --shadow-lg: 0 2px 4px rgba(6, 20, 110, 0.28), 0 30px 60px -28px rgba(6, 20, 110, 0.8);
  --r: 20px;
  --r-sm: 12px;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html[data-motion='off'] { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.acc { color: var(--acc); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* ── strip + header ── */
.strip { font-size: 12px; text-align: center; padding: 6px 16px; color: var(--dim); }
.strip b { color: var(--acc); font-weight: 600; }
/* the header: a floating frosted pill, sticky, the only blurred surface on the page */
header.top { position: sticky; top: 0; z-index: 40; padding: 12px 16px 0; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative; max-width: 940px; margin: 0 auto; height: 58px; padding: 0 8px 0 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(6, 20, 110, 0.1), 0 12px 32px -18px rgba(6, 20, 110, 0.6);
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 14.5px var(--display); letter-spacing: 0.28em; width: max-content; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 2px; justify-self: center; }
.nav-links a { white-space: nowrap; padding: 7px 14px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { background: rgba(6, 20, 110, 0.18); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-right .btn-light { height: 42px; padding: 0 20px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; color: var(--ink); border: 1px solid var(--line); background: var(--glass); }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface); }
.icon-btn svg { width: 15px; height: 15px; }
.menu-btn { display: none; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 99px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; background: none;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.wallets { display: grid; gap: 8px; margin-top: 14px; }
.wallet-btn { justify-content: flex-start; gap: 12px; padding-left: 18px; }
.wallet-btn img { border-radius: 7px; flex: none; }
.wallet-btn .ar { margin-left: auto; }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: var(--acc-hi); }
.btn-light { background: var(--btn); color: var(--on-btn); box-shadow: 0 8px 20px -10px rgba(6, 20, 110, 0.9); }
.btn-light:hover { background: #eef3ff; }
.btn-ghost { border-color: var(--line-2); background: var(--glass); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); background: var(--surface); }
.btn svg { width: 16px; height: 16px; }
.btn .ar { display: inline-grid; transition: transform 0.18s; }
.btn .ar svg { width: 16px; height: 16px; }
.btn:hover .ar { transform: translateX(3px); }
.btn.busy { pointer-events: none; opacity: 0.8; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; }
html[data-motion='on'] .btn.busy::after { animation: spin 0.8s linear infinite; }
.link { color: var(--acc); font-weight: 600; background: none; border: 0; padding: 0; font-size: inherit; }
.link:hover { color: var(--acc-hi); }

/* ── generic blocks ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--acc); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px;
  color: var(--muted); border: 1px solid var(--line); background: var(--glass);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); flex: none; }
.dot.acc { background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.dot.off { background: var(--neg); box-shadow: 0 0 0 3px var(--neg-soft); }
html[data-motion='on'] .dot.live { animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
section { scroll-margin-top: 90px; }
h1, h2, h3 { margin: 0; font-weight: 600; font-family: var(--display); color: var(--ink); }
h2 { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -0.04em; line-height: 1.04; }
h3 { font-size: 18px; letter-spacing: -0.015em; }
h2 em, h1 em { font-style: normal; color: var(--acc); }
.sec { padding-top: 96px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.sec-head p { margin: 12px 0 0; color: var(--muted); max-width: 600px; }
.link-more { font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { color: var(--ink); }
.link-more svg { width: 14px; height: 14px; }

/* ── home: the hero fills the first screen ── */
.hero { position: relative; overflow: hidden; margin-top: -70px; padding-top: 70px; min-height: calc(100vh - 30px); display: flex; align-items: center; }
/* ice silk ribbons and a few dots, drawn once in SVG (home.js); the whole layer drifts, compositor-only */
.silk {
  position: absolute; top: 0; bottom: 0; left: -48px; width: calc(100% + 96px); height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}
.silk .ln path { fill: none; stroke: #b4f1ff; stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.silk .dt circle { fill: #cfe0ff; }
html[data-motion='on'] .silk { animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { to { transform: translate3d(-24px, 10px, 0); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 40px; align-items: center; width: 100%; padding-top: 40px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(44px, 5.2vw, 74px); letter-spacing: -0.045em; line-height: 1; margin-top: 22px; }
.hero h1 .cu { color: var(--acc); }
.hero .sub { max-width: 500px; margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font: 600 10.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.scroll-cue i { width: 1px; height: 26px; background: linear-gradient(var(--dim), transparent); }
html[data-motion='on'] .scroll-cue i { animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html[data-motion='on'] .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html[data-motion='on'] .rise.d1 { animation-delay: 0.08s; }
html[data-motion='on'] .rise.d2 { animation-delay: 0.16s; }
html[data-motion='on'] .rise.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* the house coin pill: the coin, its CA, copy, chart */
.coin-pill {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 6px 6px 6px 7px; max-width: 100%;
  border-radius: 99px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow);
}
.cp-logo { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0f2fb8; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.cp-logo svg { width: 24px; height: 24px; }
.cp-name { display: grid; line-height: 1.2; margin-right: 6px; }
.cp-name b { font: 600 14px var(--display); }
.cp-name small { font-size: 12px; color: var(--dim); }
.cp-ca { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cp-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card-2); font-size: 13px; font-weight: 600; color: var(--ink);
}
.cp-btn:hover { border-color: var(--line-2); background: var(--surface); }
.cp-btn svg { width: 14px; height: 14px; color: var(--muted); }

/* the hero object: the Q-key mark, flat and exact, in a soft glow with a thin white ring and an ice one. With animations on, the
   rings draw in, the Q draws itself, the key slides home along its tail, the qubit dot lands and pulses, a qubit orbits the inner
   ring, then a slow float; with them off it stands finished. Vector only. */
.orb-wrap { position: relative; justify-self: center; width: min(100%, 540px); aspect-ratio: 1; }
.hero-mark { position: absolute; inset: 0; }
.hero-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hm-ring { fill: none; stroke-width: 1.3; }
.hm-ring.r1 { stroke: rgba(255, 255, 255, 0.34); }
.hm-ring.r2 { stroke: rgba(156, 236, 255, 0.5); }
.hm-q { fill: none; stroke: #fff; stroke-width: 7; }
.hm-tail { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.hm-disc, .hm-hole { transform-box: fill-box; transform-origin: 50% 50%; }
.hm-key, .hm-dot, .hm-pulse { transform-box: fill-box; transform-origin: 50% 50%; }
.hm-orbit { transform-box: view-box; transform-origin: 200px 200px; }
.hm-pulse { fill: none; stroke: #9cecff; stroke-width: 0.8; opacity: 0; }
html[data-motion='on'] .hm-ring { stroke-dasharray: 1; animation: hmDraw 1.5s cubic-bezier(0.65, 0, 0.35, 1) both; }
html[data-motion='on'] .hm-ring.r2 { animation-delay: 0.18s; }
html[data-motion='on'] .hm-disc { animation: hmDot 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 0.3s both; }
html[data-motion='on'] .hm-tail { stroke-dasharray: 1; animation: hmDraw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.95s both; }
html[data-motion='on'] .hm-hole { animation: hmDot 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.4s both; }
html[data-motion='on'] .hm-q { stroke-dasharray: 1; animation: hmDraw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both; }
html[data-motion='on'] .hm-key { animation: hmKey 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.05s both; }
html[data-motion='on'] .hm-dot { animation: hmDot 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.5s both; }
html[data-motion='on'] .hm-pulse { animation: hmPulse 3.2s ease-out 2.1s infinite; }
html[data-motion='on'] .hm-orbit { animation: hmSpin 14s linear infinite; }
html[data-motion='on'] .hm-orbit circle { animation: hmIn 0.6s ease 1.8s both; }
html[data-motion='on'] .hm-float { animation: hmFloat 7s ease-in-out 2.4s infinite; }
html[data-motion='on'] .hm-shade { animation: hmIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
@keyframes hmDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hmKey { from { opacity: 0; transform: translate(9px, 9px); } }
@keyframes hmDot { from { opacity: 0; transform: scale(0.2); } }
@keyframes hmPulse { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes hmSpin { to { transform: rotate(360deg); } }
@keyframes hmIn { from { opacity: 0; } }
@keyframes hmFloat { 50% { transform: translateY(-6px); } }

/* ── stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 20px 22px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font: 600 32px var(--display); letter-spacing: -0.035em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font: 500 15px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat .s { font: 12.5px var(--mono); color: var(--dim); margin-top: 2px; }

/* ── steps (how it works) ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { padding: 22px 20px 24px; position: relative; overflow: hidden; }
.step .n { font: 600 12.5px var(--mono); color: var(--acc); }
.step h3 { margin-top: 30px; font-size: 19px; line-height: 1.25; }
.step h3 em { font-style: normal; color: var(--acc); }
.step p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.step .demo { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); font: 12.5px var(--mono); color: var(--muted); display: grid; gap: 6px; }
.step .demo div { display: flex; justify-content: space-between; gap: 10px; }
.rules { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; padding: 18px 22px; font-size: 14px; color: var(--muted); align-items: center; }
.rules b { color: var(--ink); font-weight: 600; }
.rules .big { font: 700 30px var(--display); letter-spacing: -0.04em; color: var(--acc); margin-right: 4px; }

/* ── products (home): two big cards ── */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.product .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.product .ic svg { width: 24px; height: 24px; color: var(--acc); }
.product .kicker { font: 600 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 22px; }
.product h3 { font-size: 26px; letter-spacing: -0.03em; margin-top: 8px; line-height: 1.15; }
.product > p { color: var(--muted); margin: 10px 0 0; max-width: 460px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); }
.ticks li::before { content: ''; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239cecff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: inset 0 0 0 1px var(--acc-line); }
.ticks li b { color: var(--ink); font-weight: 600; }
.product .foot-cta { margin-top: auto; padding-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* explainer: copy left, interactive card right */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--muted); font-size: 17px; margin: 18px 0 0; max-width: 480px; }
.scenario { padding: 26px; }
.chips { display: flex; gap: 3px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; width: max-content; max-width: 100%; }
.chips button { border: 0; background: none; padding: 0 14px; height: 36px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chips button:hover { color: var(--ink); }
.chips button.on { background: var(--btn); color: var(--on-btn); }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.keyc { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); transition: border-color 0.2s, background 0.2s; }
.keyc .t { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.keyc .nm { font: 600 16px var(--display); margin-top: 6px; }
.keyc .st { font-size: 13px; margin-top: 4px; }
.keyc.bad { border-color: rgba(255, 198, 208, 0.5); background: rgba(255, 198, 208, 0.08); }
.keyc.bad .st { color: var(--neg); }
.keyc.good .st { color: var(--pos); }
.verdict { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.verdict .vh { display: flex; align-items: center; gap: 10px; font: 600 17px var(--display); }
.verdict .vh i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; flex: none; }
.verdict.ok .vh i { background: var(--pos); color: #0b4a2a; }
.verdict.warn .vh i { background: var(--neg); color: #6b1020; }
.verdict p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

/* ── faq ── */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform 0.2s; font-style: normal; color: var(--muted); background: var(--surface); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 720px; }

/* closing band */
.band { margin-top: 96px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: var(--surface); }
.band h2 { font-size: clamp(28px, 3.4vw, 40px); }
.band p { color: var(--muted); margin: 10px 0 0; max-width: 520px; }
.band .ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── page shells ── */
.page { padding-top: 56px; padding-bottom: 40px; }
.page h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.045em; line-height: 1.02; }
.page .lede { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 680px; }

/* ── app pages (wallet, vault) ── */
.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.guide .g { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--muted); line-height: 1.35; transition: border-color 0.2s, background 0.2s; }
.guide .g i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 12px var(--mono); font-style: normal; border: 1px solid var(--line-2); color: var(--muted); }
.guide .g b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.guide .g.on { border-color: var(--acc-line); background: var(--surface); }
.guide .g.on i { border-color: var(--acc); color: var(--acc); }
.guide .g.done i { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.app-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 14px; align-items: start; }
.col { display: grid; gap: 14px; min-width: 0; }
.panel { padding: 22px; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-h h3 { font-size: 17px; }
.panel .note { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.addr { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 8px 8px 12px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line); }
.addr .a { font: 13px var(--mono); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr button, .addr a { background: none; border: 0; color: var(--muted); display: grid; place-items: center; padding: 6px; border-radius: 8px; }
.addr button:hover, .addr a:hover { color: var(--ink); background: var(--surface); }
.addr svg { width: 15px; height: 15px; }
.bal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bal div { padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); }
.bal span { display: block; font-size: 12px; color: var(--dim); }
.bal b { font: 600 18px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.panel .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero-bal { padding: 26px; }
.hero-bal .k { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-bal .big { font: 600 clamp(40px, 5vw, 56px) var(--display); letter-spacing: -0.045em; line-height: 1.05; margin-top: 10px; font-variant-numeric: tabular-nums; }
.hero-bal .big small { font: 500 18px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.hero-bal .sub { font: 12.5px var(--mono); color: var(--dim); margin-top: 6px; }
.assets { display: grid; gap: 8px; margin-top: 16px; }
.asset-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); }
.tkn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--mono); flex: none; color: #fff; }
.tkn.sol { background: linear-gradient(135deg, #9945ff, #14c98a); }
.tkn.usdc { background: #2775ca; }
.asset-row b { font-weight: 600; display: block; }
.asset-row small { color: var(--dim); font-size: 12px; }
.asset-row .amt { text-align: right; font: 600 17px var(--display); font-variant-numeric: tabular-nums; }
.asset-row .amt small { display: block; font: 12px var(--mono); }

/* the action card: tabs + a form */
.tabs { display: flex; gap: 3px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.tabs button { flex: 1; border: 0; background: none; height: 38px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--btn); color: var(--on-btn); }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form .lead { color: var(--muted); font-size: 14px; margin: 0; }
label.f { display: block; font-size: 13.5px; font-weight: 600; }
label.f .hint { font-weight: 400; color: var(--dim); margin-left: 6px; }
.inp { display: block; width: 100%; margin-top: 7px; height: 48px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card-2); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.inp.mono { font-size: 13.5px; }
textarea.inp { height: auto; padding: 12px 16px; resize: vertical; min-height: 84px; font: 13px/1.5 var(--mono); }
.inp:focus { border-color: var(--acc-line); background: var(--surface); box-shadow: 0 0 0 4px var(--acc-soft); }
.inp::placeholder { color: var(--dim); }
.amount { position: relative; display: block; margin-top: 7px; }
.amount .inp { margin-top: 0; padding-right: 130px; font: 600 20px var(--display); letter-spacing: -0.02em; height: 56px; }
.amount .unit { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; align-items: center; }
.amount .unit span { font: 13px var(--mono); color: var(--dim); }
.amount .unit button { height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: 600 11.5px var(--mono); color: var(--muted); }
.amount .unit button:hover { color: var(--ink); }
.seg { display: flex; gap: 6px; margin-top: 7px; }
.seg button { flex: 1; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card-2); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); }
.seg button .tkn { width: 20px; height: 20px; font-size: 7px; }
.seg button.on { border-color: var(--acc-line); color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px var(--acc-soft); }
.review { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--deep); font-size: 13.5px; }
.review div { display: flex; justify-content: space-between; gap: 14px; }
.review span { color: var(--dim); white-space: nowrap; }
.review b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.form .err { color: var(--neg); font-size: 14px; margin: 0; }
.callout { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); font-size: 13.5px; color: var(--muted); }
.callout svg { width: 18px; height: 18px; color: var(--acc); margin-top: 1px; }
.callout b { color: var(--ink); font-weight: 600; }
.callout.warn { border-color: rgba(255, 198, 208, 0.45); background: rgba(255, 198, 208, 0.08); }
.callout.warn svg { color: var(--neg); }
.callout.ok svg { color: var(--pos); }

/* locked / empty states */
.gate { padding: 40px 30px; text-align: center; }
.gate .ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.gate .ic svg { width: 26px; height: 26px; color: var(--acc); }
.gate h3 { font-size: 22px; margin-top: 18px; letter-spacing: -0.02em; }
.gate p { color: var(--muted); margin: 8px auto 22px; max-width: 440px; font-size: 14.5px; }
.gate .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* activity */
.acts { margin-top: 6px; }
.act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act .ai { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.act .ai svg { width: 17px; height: 17px; color: var(--acc); }
.act .w { font-size: 14.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act .d { font: 12px var(--mono); color: var(--dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act .d a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.act .amt { text-align: right; font: 600 15px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.act .amt.in { color: var(--pos); }
.empty { padding: 22px 0 6px; color: var(--dim); font-size: 14px; }
html[data-motion='on'] .act.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgba(156, 236, 255, 0.14); } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font: 600 11px var(--mono); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; background: var(--surface); }
.tag.acc { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.tag.pos { color: var(--pos); border-color: rgba(182, 255, 210, 0.4); background: var(--pos-soft); }
.tag.neg { color: var(--neg); border-color: rgba(255, 198, 208, 0.45); background: var(--neg-soft); }

/* the backup / key box */
.keybox { padding: 16px; border-radius: var(--r-sm); border: 1px dashed var(--acc-line); background: var(--deep); }
.keybox .kl { font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); display: flex; justify-content: space-between; gap: 10px; }
.keybox .kv { font: 13px/1.5 var(--mono); margin-top: 8px; overflow-wrap: anywhere; color: var(--muted); }
.drop { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: var(--card-2); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--acc-line); background: var(--surface); }
.drop .thumb { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--acc); flex: none; }
.drop .thumb svg { width: 22px; height: 22px; }
.drop p { margin: 0; font-size: 13.5px; color: var(--muted); }
.drop p b { color: var(--ink); font-weight: 600; display: block; font-size: 14.5px; }
.or { display: flex; align-items: center; gap: 12px; font: 600 11px var(--mono); letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #9cecff; flex: none; }
.progress { display: grid; gap: 12px; }
.progress .p { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.progress .p i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.progress .p.on { color: var(--ink); }
.progress .p.on i { border-color: var(--acc); border-top-color: transparent; }
html[data-motion='on'] .progress .p.on i { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress .p.done { color: var(--muted); }
.progress .p.done i { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }

/* ── developers ── */
.dev-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; margin-top: 44px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 7px 12px; border-radius: 10px; color: var(--muted); }
.toc a:hover { color: var(--ink); background: var(--card); }
.doc { min-width: 0; }
.doc > section { padding-top: 8px; margin-bottom: 56px; }
.doc h2 { font-size: 30px; letter-spacing: -0.03em; }
.doc h3 { margin-top: 26px; }
.doc p, .doc li { color: var(--muted); }
.doc code { font: 12.5px var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--deep); color: var(--acc-hi); }
pre.code { margin: 14px 0 0; padding: 18px 20px; border-radius: var(--r-sm); background: #0c1d73; border: 1px solid var(--line); overflow-x: auto; font: 13px/1.65 var(--mono); color: #dbe6ff; }
pre.code .c { color: #8fa6ff; }
pre.code .s { color: #9cecff; }
pre.code .k { color: #ffd6a5; }
.tbl-wrap { overflow-x: auto; margin-top: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.mono { font-size: 12.5px; white-space: nowrap; color: var(--ink); }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font: 13px var(--mono); color: var(--dim); margin-top: 12px; }

/* ── footer: slim ── */
footer.foot { margin-top: 96px; padding: 0 0 34px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-links button { background: none; border: 0; padding: 0; font-size: 13.5px; color: var(--muted); }
.foot-links button:hover { color: var(--ink); }
.foot .risk { font-size: 12.5px; color: var(--dim); margin: 12px 0 0; max-width: 680px; }

/* ── toast & sheet ── */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; z-index: 95; max-width: min(560px, calc(100vw - 32px)); padding: 11px 18px; border-radius: 99px; background: var(--btn); color: var(--on-btn); font-size: 14px; font-weight: 600; pointer-events: none; transition: opacity 0.2s, transform 0.2s; text-align: center; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #ffe3e8; color: #7a0f24; border-radius: 16px; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(6, 18, 90, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
html[data-motion='on'] .modal { animation: hmIn 0.18s ease both; }
html[data-motion='on'] .modal .box { animation: rise 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.modal .box { width: 100%; max-width: 440px; padding: 24px; max-height: calc(100vh - 40px); overflow: auto; }
.modal .box.wide { max-width: 540px; }
.modal .mh { display: flex; align-items: center; gap: 12px; }
.modal .mh .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.modal .mh .ic svg { width: 20px; height: 20px; color: var(--acc); }
.modal h3 { font-size: 20px; }
.modal .mh small { display: block; color: var(--dim); font-size: 12.5px; }
.modal p { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.modal .msg { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--deep); font: 12.5px/1.6 var(--mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.modal .review { margin-top: 14px; }
.modal .acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.modal .fine { font-size: 12.5px; color: var(--dim); margin: 12px 0 0; }

/* ── responsive ── */
@media (max-width: 1060px) {
  .hero { min-height: 0; }
  .scroll-cue { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; }
  .orb-wrap { width: min(100%, 440px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .app-grid { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .dev-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 940px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; justify-self: stretch; flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: rgba(24, 60, 216, 0.98); box-shadow: var(--shadow-lg); }
  .nav.open .nav-links a { padding: 12px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .guide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
  .sec { padding-top: 72px; }
  .sec-head { flex-direction: column; align-items: start; }
  .stat .v { font-size: 26px; }
  .nav { padding-left: 16px; height: 56px; }
  .brand { font-size: 13.5px; letter-spacing: 0.18em; gap: 8px; }
  .nav-right .btn-light { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .nav-right .icon-btn:not(.menu-btn) { display: none; }
  .coin-pill { flex-wrap: wrap; border-radius: 22px; }
  .cp-ca { display: none; }
  .coin-pill .cp-btn + .cp-btn { display: none; }
  .foot-row { flex-direction: column; align-items: start; }
  .hero-grid { padding-top: 76px; padding-bottom: 72px; }
  .silk { opacity: 0.5; }
  .product { padding: 24px 22px; }
  .band { padding: 28px 24px; }
  .keys { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .modal .box { padding: 20px; }
  .chips { width: 100%; }
  .chips button { flex: 1; padding: 0 8px; }
}
@media (max-width: 380px) {
  .brand { font-size: 12px; letter-spacing: 0.1em; }
}

input[type='number']::-webkit-outer-spin-button, input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
