/* Arkana website. Dark theme, no external fonts or scripts (see the Content-Security-Policy in Program.cs). */
:root {
  --bg: #0A0C13; --bg2: #0E111B; --surface: #121521; --line: rgba(255,255,255,0.09); --line2: rgba(255,255,255,0.16);
  --ink: #EDEEF3; --muted: #B4B9C9; --dim: #9AA0B3;
  --indigo: #6366F1; --violet: #8B5CF6; --pink: #E879F9; --soft: #A5B4FC;
  --grad: linear-gradient(135deg, #6366F1, #8B5CF6);
  --font: ui-sans-serif, system-ui, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: linear-gradient(90deg, #A5B4FC, #E879F9, #A5B4FC); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.blob.a { width: 620px; height: 620px; top: -220px; left: 8%; background: radial-gradient(closest-side, #4F46E5, transparent); animation: drift1 22s ease-in-out infinite alternate; }
.blob.b { width: 520px; height: 520px; top: 8%; right: 4%; background: radial-gradient(closest-side, #9333EA, transparent); opacity: 0.4; animation: drift2 26s ease-in-out infinite alternate; }
.blob.c { width: 460px; height: 460px; top: 52%; left: -120px; background: radial-gradient(closest-side, #0EA5E9, transparent); opacity: 0.22; animation: drift3 30s ease-in-out infinite alternate; }
.grid-fx { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.35; mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000, transparent 75%); }
.glow { position: fixed; width: 520px; height: 520px; margin: -260px 0 0 -260px; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(closest-side, rgba(129,140,248,0.16), transparent); transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0); }
@keyframes drift1 { to { transform: translate3d(140px, 90px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-120px, 140px, 0) scale(0.92); } }
@keyframes drift3 { to { transform: translate3d(180px, -80px, 0) scale(1.15); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.stuck { background: rgba(10,12,19,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin-right: auto; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(99,102,241,.5); }
.logo svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.links a { position: relative; padding: 6px 0; transition: color .2s; }
.links a:hover { color: var(--ink); }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); transition: right .25s; }
.links a:hover::after { right: 0; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
@media (max-width: 720px) { .links { display: none; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 13px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; transition: transform .2s ease, box-shadow .3s, background .2s, border-color .2s; will-change: transform; }
.btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.btn.primary { border: none; background: var(--grad); color: #fff; box-shadow: 0 10px 40px rgba(99,102,241,.45); overflow: hidden; }
.btn.primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn.primary:hover::before { transform: translateX(120%); }
.btn.primary:hover { box-shadow: 0 14px 54px rgba(139,92,246,.6); background: var(--grad); }
.btn.light { background: var(--ink); color: var(--bg); border: none; height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14px; }
.btn.light:hover { background: #fff; }
.btn.lg { height: 58px; padding: 0 34px; border-radius: 15px; font-size: 17px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #C7CAFF; border: 1px solid rgba(129,140,248,.4); background: rgba(99,102,241,.12); padding: 6px 14px; border-radius: 999px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
h1.title { margin: 0; font-size: clamp(40px, 7vw, 70px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 880px; }
.rotor { display: inline-block; min-width: 1ch; }
.rotor.out { animation: rotOut .35s forwards; }
.rotor.in { animation: rotIn .45s forwards; }
@keyframes rotOut { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
@keyframes rotIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.lead { margin: 0; max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.fine { font-size: 13px; color: var(--dim); }

/* app preview with tilt */
.stage { margin-top: 48px; width: 100%; max-width: 1000px; perspective: 1400px; }
.preview { position: relative; text-align: left; border-radius: 18px; border: 1px solid var(--line2); background: #10131E; box-shadow: 0 50px 140px rgba(79,70,229,.32), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--px, 50%) var(--py, 0%), rgba(255,255,255,.09), transparent 60%); }
.dots { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3F52; }
.dots i:nth-child(1) { background: #FB7185; } .dots i:nth-child(2) { background: #FBBF24; } .dots i:nth-child(3) { background: #34D399; }
.pv { display: flex; flex-wrap: wrap; min-height: 330px; }
.pv-side { flex: 0 0 210px; padding: 18px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pv-side div { padding: 8px 10px; border-radius: 8px; }
.pv-side .on { background: rgba(99,102,241,.22); color: #E0E3FF; font-weight: 600; }
.pv-main { flex: 1 1 340px; padding: 26px 30px; display: flex; flex-direction: column; gap: 14px; }
.chip { align-self: flex-start; font-size: 11px; font-weight: 600; color: #FCD34D; background: rgba(252,211,77,.12); padding: 3px 9px; border-radius: 6px; }
.pv-title { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.secret { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255,255,255,.03); }
.secret .v { flex: 1; min-width: 0; }
.secret small { display: block; font-size: 12px; color: var(--dim); }
.secret code { font-family: var(--mono); letter-spacing: .12em; }
.secret button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-size: 12px; transition: background .2s; }
.secret button:hover { background: rgba(255,255,255,.08); }
.float { position: absolute; padding: 10px 14px; border-radius: 12px; background: rgba(18,21,33,.9); border: 1px solid var(--line2); font-size: 13px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: translateZ(60px); animation: bob 6s ease-in-out infinite; backdrop-filter: blur(8px); }
.float.one { right: 24px; top: 74px; color: #86EFAC; }
.float.two { right: 56px; bottom: 28px; color: var(--soft); animation-delay: -3s; }
@keyframes bob { 50% { transform: translateZ(60px) translateY(-10px); } }
@media (max-width: 760px) { .float { display: none; } .pv-side { flex-basis: 100%; flex-direction: row; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- marquee ---------- */
.marquee { margin: 72px 0 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.tag { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); white-space: nowrap; font-size: 14px; }
.tag b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: 110px 0 20px; }
.sec h2 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; text-align: center; }
.sec .sub { margin: 14px auto 52px; max-width: 580px; text-align: center; color: var(--muted); font-size: 18px; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { position: relative; flex: 1 1 320px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); overflow: hidden; transition: transform .3s, border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(129,140,248,.2), transparent 55%); pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(165,180,252,.9), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card:hover { transform: translateY(-4px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(99,102,241,.16); border: 1px solid rgba(129,140,248,.3); color: var(--soft); }
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* crypto demo */
.demo { border-radius: 26px; border: 1px solid rgba(129,140,248,.28); background: linear-gradient(135deg, rgba(79,70,229,.2), rgba(168,85,247,.08)); padding: clamp(24px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.demo .l { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.demo h2 { text-align: left; }
.demo .r { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.demo input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0,0,0,.35); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.demo input:focus { outline: none; border-color: var(--soft); box-shadow: 0 0 0 4px rgba(129,140,248,.2); }
.cipher { min-height: 92px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.4); font-family: var(--mono); font-size: 13px; color: var(--soft); word-break: break-all; line-height: 1.6; }
.cipher.busy { color: #7C83B8; }
.note { font-size: 13px; color: var(--dim); }

/* steps */
.steps { position: relative; display: flex; flex-wrap: wrap; gap: 16px; counter-reset: s; }
.step { flex: 1 1 300px; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 16px; font-weight: 700; background: var(--grad); box-shadow: 0 8px 30px rgba(99,102,241,.45); }
.step h3 { margin: 0 0 6px; font-size: 18px; } .step p { margin: 0; color: var(--muted); font-size: 15px; }

/* stats */
.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.stat { flex: 1 1 200px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); text-align: center; }
.stat b { display: block; font-size: 40px; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, #A5B4FC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* modes table */
.modes { display: flex; flex-wrap: wrap; gap: 16px; }
.mode { flex: 1 1 420px; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.mode h3 { margin: 0 0 4px; font-size: 22px; } .mode > p { margin: 0 0 16px; color: var(--muted); }
.mode ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #D6D9E6; }
.mode li { display: flex; gap: 10px; } .mode li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(52,211,153,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* download */
.dl { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 56px 24px; border-radius: 28px; border: 1px solid rgba(129,140,248,.3); background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.3), transparent 65%), rgba(255,255,255,.02); }
.dl h2 { margin: 0; }
.dl .meta { font-size: 13px; color: var(--dim); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hash { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.35); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hash code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.hash button { border: 0; background: transparent; color: var(--soft); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.alt { font-size: 14px; color: var(--muted); }
.alt a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); padding: 0 20px; transition: border-color .2s, background .2s; }
details[open] { border-color: rgba(129,140,248,.35); background: rgba(99,102,241,.07); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--soft); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- sign up ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth aside { flex: 1 1 420px; padding: 56px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth h1 { margin: 0; font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -0.03em; max-width: 480px; }
.stepper { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 430px; }
.stepper li { display: flex; gap: 14px; align-items: center; color: var(--dim); transition: color .3s; }
.stepper li span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; flex-shrink: 0; transition: all .3s; }
.stepper li.now { color: var(--ink); } .stepper li.now span { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 0 0 6px rgba(99,102,241,.2); }
.stepper li.done { color: var(--muted); } .stepper li.done span { background: #059669; border-color: #059669; color: #fff; font-size: 0; }
.stepper li.done span::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.panel { width: 100%; max-width: 450px; padding: 38px; border-radius: 24px; border: 1px solid var(--line2); background: rgba(18,21,33,.85); backdrop-filter: blur(16px); box-shadow: 0 30px 100px rgba(79,70,229,.28); display: flex; flex-direction: column; gap: 18px; animation: pop .55s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.panel h2 { margin: 0; font-size: 25px; letter-spacing: -0.02em; }
.panel p { margin: 0; color: var(--muted); font-size: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field input { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus { outline: none; border-color: var(--soft); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(129,140,248,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meter { display: flex; gap: 4px; margin-top: 10px; }
.meter i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); transition: background .3s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: #F87171; } .meter[data-s="2"] i:nth-child(-n+2) { background: #FBBF24; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #A3E635; } .meter[data-s="4"] i { background: #34D399; }
.err { color: #FCA5A5; font-size: 14px; min-height: 0; }
.qr { align-self: center; padding: 12px; border-radius: 16px; background: #fff; width: 212px; height: 212px; }
.qr img { width: 100%; height: 100%; }
.manual { text-align: center; font-size: 13px; color: var(--dim); }
.manual code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.35); font-family: var(--mono); letter-spacing: .08em; color: var(--muted); word-break: break-all; user-select: all; }
.code-in input { text-align: center; letter-spacing: .5em; font-size: 24px; font-family: var(--mono); }
.success { align-items: center; text-align: center; }
.check { width: 72px; height: 72px; border-radius: 50%; background: rgba(52,211,153,.14); display: grid; place-items: center; }
.check svg { width: 38px; height: 38px; fill: none; stroke: #34D399; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.demo-copy { margin: 0; font-size: 16px; color: #C3C7D6; }
.dl-copy { margin: 0; font-size: 17px; color: var(--muted); max-width: 520px; }
.center { text-align: center; }
.ulink { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- private stats page ---------- */
.st-wrap { max-width: 880px; margin: 0 auto; padding: 48px 24px 80px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.st-login { align-self: center; }
.st-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.st-head h1 { margin: 0; font-size: 34px; letter-spacing: -0.03em; }
.st-actions { display: flex; gap: 10px; }
.st-actions .btn { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.st-hero { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.st-big { flex: 1 1 260px; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(79,70,229,.2), rgba(168,85,247,.07)); display: flex; flex-direction: column; gap: 4px; }
.st-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.st-num { font-size: clamp(44px, 8vw, 68px); line-height: 1; letter-spacing: -0.04em; background: linear-gradient(180deg, #fff, #A5B4FC); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.st-card { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); margin-bottom: 16px; }
.st-title { font-weight: 600; margin-bottom: 16px; }
.st-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.st-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px; cursor: default; }
.st-bar i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: var(--grad); transition: height .6s cubic-bezier(.2,.8,.2,1), filter .2s; }
.st-bar i.zero { background: rgba(255,255,255,.12); }
.st-bar:hover i { filter: brightness(1.3); }
.st-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.st-table { display: flex; flex-direction: column; }
.st-row { display: grid; grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.st-row.head { border-top: 0; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 0; }
.st-row span:not(.st-name) { text-align: right; }
.st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.st-empty { padding: 8px 0; }
