/* Geode — post-quantum vault on Robinhood Chain */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #151513;
  --ink-2: #3d3c38;
  --muted: #6d6b64;
  --paper: #eeede5;
  --paper-2: #e6e4da;
  --card: #f6f5ef;
  --line: rgba(21, 21, 19, 0.14);
  --line-2: rgba(21, 21, 19, 0.08);
  --night: #07070c;
  --night-2: #10101a;
  --night-line: rgba(255, 255, 255, 0.12);
  --amethyst: #7c5cff;
  --amethyst-2: #a993ff;
  --amethyst-3: #ddd5ff;
  --violet-deep: #3a2393;
  --ok: #1f8a4c;
  --warn: #b5541d;
  --bad: #c0362c;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amethyst-3); color: var(--ink); }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, color .3s; border-bottom: 1px solid transparent; color: #fff; }
.nav.light, .page-light .nav { color: var(--ink); background: rgba(238, 237, 229, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.dark-solid { background: rgba(7, 7, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--night-line); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 2px; margin-left: 14px; padding: 3px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.nav-links a { text-decoration: none; font-size: 13px; padding: 5px 12px; border-radius: 999px; opacity: 0.82; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-family: var(--mono); font-size: 12px; background: transparent; color: inherit; white-space: nowrap; }
.ca-chip .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--amethyst-2); }
.ca-chip.soon { opacity: 0.85; }
.ca-chip.copied { border-color: var(--amethyst-2); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); color: inherit; text-decoration: none; }
.icon-btn svg { width: 15px; height: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 9px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ece9ff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2a35; }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 26%, transparent); }
.btn-ghost:hover { border-color: currentColor; }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-violet { background: var(--amethyst); color: #fff; }
.btn-violet:hover { background: #6a48ff; }
.btn[disabled], .btn.disabled { opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: max(720px, 100svh); background: radial-gradient(120% 90% at 50% 48%, #1c1636 0%, #0d0b18 45%, #050508 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.2px); background-size: 3px 3px; opacity: .035; z-index: -1; }
.hero canvas.geode-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fallback { position: absolute; inset: 0; background: center 60% / min(900px, 120%) auto no-repeat url("/assets/geode-hero.jpg"); opacity: 0; transition: opacity .6s; }
.hero.no-gl .hero-fallback { opacity: 1; }
.hero-copy { position: relative; z-index: 2; padding-top: 118px; text-align: center; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: 0.01em; opacity: 0.86; }
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--amethyst); border-radius: 1.5px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; margin: 18px auto 0; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, #c8b9ff 55%, #8e74ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 600px; margin: 18px auto 0; font-size: 16.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.74); }
.hero-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.hero-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.glabel { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -50%); transition: opacity .4s; will-change: transform; }
.glabel .pin { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.35), 0 0 18px rgba(169, 147, 255, 0.9); flex: none; }
.glabel .tag { padding: 6px 10px; border-radius: 8px; background: rgba(12, 11, 22, 0.62); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.glabel .tag b { font-weight: 600; }
.glabel .tag span { opacity: .62; margin-left: 6px; font-family: var(--mono); font-size: 11px; }
.glabel.left { flex-direction: row-reverse; }
.glabel .stem { width: 34px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,.1)); }
.glabel.left .stem { background: linear-gradient(270deg, rgba(255,255,255,.65), rgba(255,255,255,.1)); }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid var(--night-line); background: rgba(5, 5, 9, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-strip .wrap { display: flex; align-items: center; gap: 22px; height: 52px; font-size: 12.5px; overflow-x: auto; scrollbar-width: none; }
.hero-strip .wrap::-webkit-scrollbar { display: none; }
.strip-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: rgba(255, 255, 255, 0.78); }
.strip-item b { color: #fff; font-weight: 600; }
.strip-sep { width: 1px; height: 18px; background: var(--night-line); flex: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7cf2a5; box-shadow: 0 0 0 3px rgba(124, 242, 165, .18); }
.live-dot.off { background: #f2c27c; box-shadow: 0 0 0 3px rgba(242, 194, 124, .18); }
.chain-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--night-line); }
.scroll-hint { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 3; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 26px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ------------------------------------------------------------ sections */
.sec { padding: 112px 0; border-top: 1px solid var(--line); position: relative; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head .kicker { opacity: 1; color: var(--ink-2); }
.sec h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; margin: 14px 0 0; }
.sec h2 .soft { color: var(--muted); }
.sec .sub { font-size: 16.5px; color: var(--ink-2); margin: 16px 0 0; max-width: 640px; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }
.dark { background: var(--night); color: #fff; border-top-color: var(--night-line); }
.dark .sec-head .kicker { color: rgba(255, 255, 255, .8); }
.dark .sub { color: rgba(255, 255, 255, .7); }
.dark h2 .soft { color: rgba(255, 255, 255, .5); }
.tag-src { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.tag-src.live { color: var(--ok); border-color: rgba(31, 138, 76, .35); }
.tag-src.local { color: var(--violet-deep); border-color: rgba(58, 35, 147, .3); }
.dark .tag-src { border-color: var(--night-line); color: rgba(255,255,255,.6); }

/* standards */
.std-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.std { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.std-visual { height: 220px; background: #0b0a14 center / cover no-repeat; position: relative; }
.std-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(transparent, rgba(11,10,20,.7)); }
.std-visual .badge { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--mono); font-size: 11.5px; padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.std-body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.std-body h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.std-body h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.std-body p { margin: 0; color: var(--ink-2); }
.specs { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px dashed var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-family: var(--mono); font-size: 12.5px; text-align: right; }

/* demo key */
.demo { margin-top: 18px; display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.demo-crystal { background: radial-gradient(90% 90% at 50% 40%, #241b49, #0b0a14 70%); position: relative; min-height: 280px; }
.demo-crystal canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-crystal .hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.55); font-family: var(--mono); }
.demo-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.demo-body h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.demo-body p { margin: 0; color: var(--ink-2); }
.demo-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kv { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.kv span { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; margin-top: 2px; }
.hexline { font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; line-height: 1.5; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 84px; overflow: hidden; position: relative; }
.hexline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(transparent, #fff); }
.hexline b { color: var(--ink); font-weight: 500; }

/* layers */
.layers { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 56px; margin-top: 52px; align-items: center; }
.xsec { position: relative; aspect-ratio: 1; }
.xsec svg { width: 100%; height: 100%; overflow: visible; }
.xsec .ring { transition: opacity .25s, transform .35s; transform-origin: 50% 50%; cursor: pointer; }
.xsec.focus .ring { opacity: .28; }
.xsec.focus .ring.on { opacity: 1; transform: scale(1.025); }
.layer-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.layer { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--line); cursor: default; transition: background .2s; border-radius: 0; }
.layer:hover, .layer.on { background: rgba(124, 92, 255, 0.06); }
.layer .sw { width: 22px; height: 22px; border-radius: 6px; margin-top: 2px; border: 1px solid rgba(0,0,0,.15); }
.layer h4 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.layer h4 span { font-weight: 400; color: var(--muted); }
.layer p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.layer .alg { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 3px; white-space: nowrap; }

.perm { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--card); }
.perm table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.perm th, .perm td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: center; }
.perm th { font-weight: 500; font-size: 12.5px; color: var(--muted); background: var(--paper-2); }
.perm td:first-child, .perm th:first-child { text-align: left; }
.perm td:first-child b { display: block; font-weight: 600; }
.perm td:first-child small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.perm tr:last-child td { border-bottom: 0; }
.y { color: var(--ok); font-weight: 600; }
.n { color: rgba(21,21,19,.28); }
.p { color: var(--violet-deep); font-size: 12.5px; font-weight: 500; }

/* how */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; position: relative; overflow: hidden; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step h3 { margin: 6px 0 0; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-2); }
.step .glyph { margin-top: auto; height: 64px; display: flex; align-items: flex-end; gap: 6px; }
.step .glyph i { display: block; width: 10px; border-radius: 3px 3px 1px 1px; background: linear-gradient(var(--amethyst-2), var(--amethyst)); opacity: .9; }

/* shor */
.shor { margin-top: 48px; border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; background: #0a0912; }
.shor canvas { width: 100%; height: 420px; }
.shor-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--night-line); flex-wrap: wrap; }
.shor-bar .note { font-size: 12.5px; color: rgba(255,255,255,.55); margin-left: auto; max-width: 560px; }
.shor-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.shor-explain div { border: 1px solid var(--night-line); border-radius: var(--radius); padding: 20px 22px; color: rgba(255,255,255,.72); font-size: 14.5px; }
.shor-explain b { color: #fff; font-weight: 600; display: block; margin-bottom: 6px; }

/* scanner */
.scan-box { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.scan-form { display: flex; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }
.scan-form input { flex: 1; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font-family: var(--mono); font-size: 14px; outline: none; min-width: 0; }
.scan-form input:focus { border-color: var(--amethyst); box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.scan-out { padding: 6px 18px 18px; }
.scan-empty { padding: 26px 4px 14px; color: var(--muted); font-size: 14px; }
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.verdict .big { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; }
.verdict.exposed .big { background: var(--bad); }
.verdict.hidden .big { background: var(--ok); }
.verdict.contract .big, .verdict.unknown .big { background: #77746b; }
.verdict h4 { margin: 0; font-size: 17px; font-weight: 600; }
.verdict p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.scan-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; padding-top: 16px; }
.scan-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.scan-row .net { font-size: 12.5px; color: var(--muted); }
.scan-row .st { font-weight: 600; margin-top: 3px; }
.scan-row .st.exposed { color: var(--bad); } .scan-row .st.hidden { color: var(--ok); } .scan-row .st.contract { color: var(--ink-2); } .scan-row .st.error { color: var(--warn); }
.scan-row .det { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.scan-legend { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* measured */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.stat { padding: 24px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-height: 168px; }
.stat:nth-child(4n) { border-right: 0; }
.stat .v { font-size: 34px; letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.stat .v small { font-size: 15px; letter-spacing: 0; color: var(--muted); margin-left: 4px; font-weight: 400; }
.stat .l { color: var(--ink-2); font-size: 13.5px; }
.stat .tag-src { margin-top: auto; align-self: flex-start; }

/* token */
.token-card { margin-top: 44px; display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.token-main { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.token-main .ca-big { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.token-main .ca-big .lbl { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap; }
.token-side { background: linear-gradient(180deg, rgba(8,7,14,.1), rgba(8,7,14,.85)), center / cover no-repeat url("/assets/card-core.jpg"), #0b0a14; position: relative; min-height: 260px; color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.token-side .t { font-size: 42px; letter-spacing: -0.04em; font-weight: 500; }
.token-side .s { opacity: .7; font-size: 13.5px; }
.token-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* code */
.code-list { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.code-row { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.code-row:last-child { border-bottom: 0; }
.code-row b { font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.code-row .what { color: var(--ink-2); }
.code-row .addr { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.code-row .addr a { color: var(--violet-deep); }

/* final CTA */
.final { position: relative; overflow: hidden; text-align: center; padding: 150px 0 140px; }
.final .bg { position: absolute; inset: 0; background: center / cover no-repeat url("/assets/geode-wide.jpg"); opacity: .55; }
.final .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, transparent, var(--night) 80%); }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(36px, 5vw, 62px); }

footer { background: var(--night); color: rgba(255,255,255,.6); border-top: 1px solid var(--night-line); font-size: 13px; }
footer .wrap { display: flex; align-items: center; gap: 18px; padding: 26px 0; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; font-size: 15px; }
footer .sp { margin-left: auto; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13.5px; opacity: 0; transition: .3s; z-index: 100; pointer-events: none; max-width: calc(100% - 40px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ app & code pages */
.page-light { background: var(--paper); }
.app-main { padding: 100px 0 80px; min-height: 100vh; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.app-head h1 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; }
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); gap: 4px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.tabs button.on { background: var(--ink); color: #fff; }
.notice { margin-top: 24px; border: 1px solid rgba(181, 84, 29, .35); background: #f7ead9; color: #5d3410; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.notice.info { border-color: rgba(58,35,147,.25); background: #ece8fb; color: #2b1f6b; }
.notice.ok { border-color: rgba(31,138,76,.3); background: #e3f2e8; color: #14532d; }
.notice b { font-weight: 600; }
.app-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; margin-top: 26px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.panel-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.panel-h .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.panel-b { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.step-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.step-card + .step-card { margin-top: 14px; }
.step-card .sh { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.step-card .sh .no { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--paper-2); color: var(--ink-2); flex: none; }
.step-card.done .sh .no { background: var(--ok); color: #fff; }
.step-card.active .sh .no { background: var(--ink); color: #fff; }
.step-card .sh h3 { margin: 0; font-size: 15px; font-weight: 600; }
.step-card .sh .st { margin-left: auto; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.step-card .sb { padding: 0 18px 18px 56px; display: flex; flex-direction: column; gap: 12px; }
.step-card.locked .sb { opacity: .5; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field .help { font-size: 12px; color: var(--muted); }
.field input, .field select { height: 42px; border-radius: 9px; border: 1px solid var(--line); background: #fff; padding: 0 12px; outline: none; min-width: 0; }
.field input.mono { font-family: var(--mono); font-size: 13px; }
.field input:focus, .field select:focus { border-color: var(--amethyst); box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--amethyst); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.small { font-size: 12.5px; color: var(--muted); }
.addr-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; word-break: break-all; }
.side-crystal { border-radius: var(--radius); overflow: hidden; background: radial-gradient(90% 90% at 50% 35%, #2a1f58, #0b0a14 72%); height: 300px; position: relative; color: #fff; }
.side-crystal canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.side-crystal .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; font-size: 12px; color: rgba(255,255,255,.7); display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); }
.side-crystal .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: rgba(255,255,255,.55); font-size: 13px; }
.kvs { display: flex; flex-direction: column; }
.kvs div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kvs div:last-child { border-bottom: 0; }
.kvs span:first-child { color: var(--muted); }
.kvs span:last-child { font-family: var(--mono); font-size: 12.5px; text-align: right; word-break: break-all; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: rgba(31,138,76,.35); background: #e8f4ec; }
.pill.bad { color: var(--bad); border-color: rgba(192,54,44,.35); background: #f9e7e5; }
.pill.warn { color: var(--warn); border-color: rgba(181,84,29,.35); background: #f8ece0; }
.balance-big { font-size: 40px; letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.balance-big small { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 0 22px; }
.subtabs button { border: 0; background: none; padding: 12px 6px; margin-right: 12px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; }
.subtabs button.on { color: var(--ink); border-color: var(--ink); }
.log { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto; }
.log:empty { display: none; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.file-drop { border: 1.5px dashed var(--line); border-radius: 11px; padding: 14px; text-align: center; font-size: 13.5px; color: var(--ink-2); background: #fff; cursor: pointer; }
.file-drop.ok { border-color: var(--ok); color: var(--ok); border-style: solid; }
.file-drop input { display: none; }

.codepage { padding: 100px 0 80px; }
.src-list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.src { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.src summary { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 20px; cursor: pointer; align-items: center; }
.src summary::-webkit-details-marker { display: none; }
.src summary b { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.src summary .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.src summary .desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; margin-top: -6px; }
.src pre { margin: 0; padding: 18px 20px; background: #101018; color: #e5e3f0; font-family: var(--mono); font-size: 12px; line-height: 1.6; overflow: auto; max-height: 560px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(4n) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .std-grid, .steps, .shor-explain, .token-card, .layers { grid-template-columns: 1fr; }
  .layers { gap: 30px; }
  .xsec { max-width: 360px; margin: 0 auto; width: 100%; }
  .demo { grid-template-columns: 1fr; }
  .demo-out { grid-template-columns: repeat(2, 1fr); }
  .code-row { grid-template-columns: 1fr; gap: 4px; }
  .code-row .addr { text-align: left; }
  .sec { padding: 84px 0; }
  .shor canvas { height: 360px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .step-card .sb { padding-left: 18px; }
}
@media (max-width: 560px) {
  .nav-in { gap: 10px; }
  .nav-right .btn { display: none; }
  .ca-chip { padding: 0 9px; font-size: 11px; }
  .hero { min-height: max(980px, 100svh); }
  .hero-copy { padding-top: 100px; }
  .hero p.lead { font-size: 15px; }
  .glabel .tag span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; min-height: 0; }
  .scan-form { flex-direction: column; }
  .scan-form input { flex: none; }
  .shor canvas { height: 440px; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================ motion layer */
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #7c5cff, #c8b9ff 60%, #fff); z-index: 70; pointer-events: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.wi { display: inline-block; transform: translateY(108%) rotate(4deg); opacity: 0; filter: blur(8px); transition: transform 1s cubic-bezier(.16,.8,.2,1), opacity .9s ease, filter .9s ease; transform-origin: 0 100%; }
.words-in .wi { transform: none; opacity: 1; filter: none; }
.hero h1 em .wi { background: linear-gradient(100deg, #fff 0%, #d8ccff 40%, #8e74ff 80%, #fff 120%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shim 6s linear infinite; }
.hero h1 em { background: none; color: inherit; }
@keyframes shim { from { background-position: 0% 0 } to { background-position: -220% 0 } }
.hero .kicker, .hero p.lead, .hero .hero-ctas { animation: rise 1.1s cubic-bezier(.16,.8,.2,1) backwards; }
.hero .kicker { animation-delay: .05s } .hero p.lead { animation-delay: .55s } .hero .hero-ctas { animation-delay: .75s }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px) } }
.hero-strip { animation: rise 1s .9s cubic-bezier(.16,.8,.2,1) backwards; }
.hero-copy .btn { position: relative; overflow: hidden; }
.hero-copy .btn-white::after, .final .btn-white::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(124,92,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 4.5s 2s ease-in-out infinite; }
@keyframes sweep { 0%, 70% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }
.kicker::before { animation: kick 3.4s ease-in-out infinite; }
@keyframes kick { 0%, 100% { transform: rotate(0) scale(1) } 50% { transform: rotate(45deg) scale(.8); box-shadow: 0 0 0 4px rgba(124,92,255,.2) } }
.nav-links a { transition: background .25s, opacity .25s; }
.nav-links a.cur { opacity: 1; background: color-mix(in srgb, currentColor 13%, transparent); }
.glabel .pin { animation: pinp 2.2s ease-in-out infinite; }
@keyframes pinp { 50% { box-shadow: 0 0 0 7px rgba(124, 92, 255, 0.12), 0 0 26px rgba(169, 147, 255, 1) } }
.hero { cursor: crosshair; }
.hero .hero-copy, .hero .hero-strip { cursor: auto; }
.hero-hint { position: absolute; left: 50%; bottom: 68px; transform: translateX(-50%); z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.45); pointer-events: none; animation: rise 1s 2.4s backwards, blink 3s 3.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35 } }

/* marquee */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper-2); position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: flex; align-items: center; gap: 34px; padding: 15px 17px; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }
.ticker-track i { width: 6px; height: 6px; background: var(--amethyst); border-radius: 1.5px; transform: rotate(45deg); display: inline-block; }
.ticker-track b { color: var(--violet-deep); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }

/* tilt + shine */
.tilt { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .45s; will-change: transform; position: relative; }
.tilt:hover { box-shadow: 0 30px 70px -36px rgba(46, 24, 140, .45); transition: opacity .8s, transform .12s linear, box-shadow .45s; }
.tilt .shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.28), transparent 42%); opacity: 0; transition: opacity .4s; z-index: 4; mix-blend-mode: soft-light; }
.tilt:hover .shine { opacity: 1; }
.std-visual { overflow: hidden; }
.std-visual::before { content: ""; position: absolute; inset: 0; background: inherit; transform: scale(1); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.std:hover .std-visual::before { transform: scale(1.07); }
.magnet { transition: transform .4s cubic-bezier(.2,.7,.2,1), background .2s, border-color .2s !important; }

/* lattice that shows around the cursor */
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(124, 92, 255, .6) 1.15px, transparent 1.6px); background-size: 24px 21px; background-position: 0 0, 12px 10px; -webkit-mask-image: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 72%); mask-image: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 72%); opacity: 0; transition: opacity .5s; z-index: 0; transform: skewX(-12deg); transform-origin: 0 0; }
.dark.spot::after { background-image: radial-gradient(rgba(200, 185, 255, .5) 1.1px, transparent 1.6px); }
.dark.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(460px circle at var(--mx, -999px) var(--my, -999px), rgba(124,92,255,.16), transparent 60%); opacity: 0; transition: opacity .5s; z-index: 0; }
.spot.spot-on::after, .spot.spot-on::before { opacity: 1; }
.spot > .wrap { position: relative; z-index: 1; }

/* standards numbers, demo */
.demo-body .kv b { transition: color .3s; }
.demo.grown .kv b { animation: flash 1.2s ease; }
@keyframes flash { 0% { color: var(--amethyst) } 100% { color: var(--ink) } }
.hexline b { color: var(--violet-deep); }

/* layers */
.xsec .ring { opacity: 0; transform: scale(.72) rotate(-10deg); transition: opacity 1s ease, transform 1.3s cubic-bezier(.16,.8,.2,1); transform-box: view-box; transform-origin: 200px 200px; }
.xsec.drawn .ring { opacity: 1; transform: none; }
.xsec.drawn .ring:nth-child(1) { transition-delay: 0s } .xsec.drawn .ring:nth-child(2) { transition-delay: .15s } .xsec.drawn .ring:nth-child(3) { transition-delay: .3s } .xsec.drawn .ring:nth-child(4) { transition-delay: .45s }
.xsec.drawn.focus .ring { opacity: .26; transition-delay: 0s; }
.xsec.drawn.focus .ring.on { opacity: 1; transform: scale(1.03); }
#facets { transform-box: view-box; transform-origin: 200px 200px; animation: rot 120s linear infinite; }
#coreSpark circle { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes rot { to { transform: rotate(360deg) } }
@keyframes twinkle { 0%, 100% { opacity: .15 } 50% { opacity: 1 } }
.xsec .orbit { fill: none; stroke: rgba(124,92,255,.35); stroke-width: 1; stroke-dasharray: 2 6; transform-box: view-box; transform-origin: 200px 200px; animation: rot 60s linear infinite reverse; }
.layer { position: relative; overflow: hidden; }
.layer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amethyst); transform: scaleY(0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.layer.on::before { transform: scaleY(1); }

/* permissions */
.perm tbody tr { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .7s cubic-bezier(.16,.8,.2,1); }
.perm.in tbody tr { opacity: 1; transform: none; }
.perm.in tbody tr:nth-child(2) { transition-delay: .1s } .perm.in tbody tr:nth-child(3) { transition-delay: .2s } .perm.in tbody tr:nth-child(4) { transition-delay: .3s }
.perm.in td.y, .perm.in td.p { animation: pop .7s cubic-bezier(.3,1.7,.5,1) .45s backwards; }
@keyframes pop { from { transform: scale(.2); opacity: 0 } }
.perm tbody tr:hover td { background: rgba(124, 92, 255, .05); }

/* steps */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: -22px; height: 2px; background: linear-gradient(90deg, var(--amethyst), var(--amethyst-2)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.16,.8,.2,1) .2s; border-radius: 2px; }
.steps.in::before { transform: scaleX(1); }
.step .num { display: inline-flex; align-items: center; gap: 8px; }
.step .num::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .4s, box-shadow .4s; }
.steps.in .step .num::before { background: var(--amethyst); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.steps.in .step:nth-child(2) .num::before { transition-delay: .55s } .steps.in .step:nth-child(3) .num::before { transition-delay: 1.1s }
.step .glyph i { transform-origin: 50% 100%; animation: eq 1.5s ease-in-out infinite alternate; }
.step .glyph i:nth-child(2) { animation-delay: -.35s } .step .glyph i:nth-child(3) { animation-delay: -.7s } .step .glyph i:nth-child(4) { animation-delay: -1.05s } .step .glyph i:nth-child(5) { animation-delay: -1.4s }
@keyframes eq { from { transform: scaleY(.3) } to { transform: scaleY(1) } }

/* dark sections: drifting lattice */
.sec.dark { overflow: hidden; }
.drift { position: absolute; inset: -10%; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 34px 30px; transform: skewX(-14deg); animation: drift 40s linear infinite; opacity: .6; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
@keyframes drift { to { background-position: 340px 300px; } }

/* scanner */
.scan-try { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 18px 16px; margin-top: -4px; font-size: 12.5px; color: var(--muted); }
.scan-try button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); transition: border-color .2s, transform .2s; }
.scan-try button:hover { border-color: var(--amethyst); transform: translateY(-1px); }
.scan-anim { display: flex; gap: 10px; padding: 26px 4px 18px; flex-wrap: wrap; }
.scan-anim span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink-2); animation: ping 1.2s ease-in-out infinite; }
.scan-anim span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amethyst); }
.scan-anim span:nth-child(2) { animation-delay: .15s } .scan-anim span:nth-child(3) { animation-delay: .3s } .scan-anim span:nth-child(4) { animation-delay: .45s } .scan-anim span:nth-child(5) { animation-delay: .6s }
@keyframes ping { 50% { border-color: var(--amethyst); box-shadow: 0 0 0 4px rgba(124,92,255,.12); transform: translateY(-2px) } }
.verdict, .scan-row { animation: rise .7s cubic-bezier(.16,.8,.2,1) backwards; }
.scan-row:nth-child(2) { animation-delay: .08s } .scan-row:nth-child(3) { animation-delay: .16s } .scan-row:nth-child(4) { animation-delay: .24s }
.verdict.exposed .big { animation: alarm 1.6s ease-in-out 2; }
@keyframes alarm { 50% { box-shadow: 0 0 0 8px rgba(192,54,44,.18) } }
.scan-form input { transition: border-color .2s, box-shadow .2s; }

/* measured */
.stat { position: relative; overflow: hidden; transition: background .3s; }
.stat:hover { background: #fbfaf6; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--amethyst), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stat:hover::after { transform: scaleX(1); }
.tick-flash { animation: tflash 1s ease; }
@keyframes tflash { 0% { color: var(--amethyst); text-shadow: 0 0 18px rgba(124,92,255,.5) } }

/* token */
.token-main .ca-big { border: 0 !important; background: linear-gradient(90deg, rgba(21,21,19,.32) 50%, transparent 0) repeat-x 0 0 / 12px 1px, linear-gradient(90deg, rgba(21,21,19,.32) 50%, transparent 0) repeat-x 0 100% / 12px 1px, linear-gradient(0deg, rgba(21,21,19,.32) 50%, transparent 0) repeat-y 0 0 / 1px 12px, linear-gradient(0deg, rgba(21,21,19,.32) 50%, transparent 0) repeat-y 100% 0 / 1px 12px, #fff; animation: ants 1.2s linear infinite; }
@keyframes ants { to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px, 0 0; } }
.token-side { overflow: hidden; }
.token-side .t { background: linear-gradient(100deg, #fff 30%, #cbbcff 50%, #fff 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shim 5s linear infinite; position: relative; }
.token-side { background-size: auto, 110% auto, auto; transition: background-size 1.2s cubic-bezier(.2,.7,.2,1); }
.token-card:hover .token-side { background-size: auto, 122% auto, auto; }

/* code list */
.code-row { transition: background .25s, padding-left .25s; }
.code-row:hover { background: rgba(124, 92, 255, .05); padding-left: 26px; }

/* final */
.final .bg { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02) } to { transform: scale(1.14) translateY(-2%) } }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floaters i { position: absolute; width: 6px; height: 6px; background: linear-gradient(135deg, #e7defc, #7c5cff); transform: rotate(45deg); border-radius: 1px; opacity: .0; animation: floatup linear infinite; box-shadow: 0 0 12px rgba(150,120,255,.8); }
@keyframes floatup { 0% { transform: translateY(40px) rotate(45deg); opacity: 0 } 15% { opacity: .9 } 85% { opacity: .7 } 100% { transform: translateY(-420px) rotate(225deg); opacity: 0 } }

/* shards (bursts) */
.shard { position: fixed; z-index: 200; width: 7px; height: 11px; pointer-events: none; clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); animation: shard 1.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes shard { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0 } }

/* app motion */
.step-card { transition: box-shadow .4s, border-color .4s, opacity .4s; }
.step-card.active { border-color: rgba(124, 92, 255, .45); box-shadow: 0 0 0 4px rgba(124, 92, 255, .08), 0 18px 40px -28px rgba(46,24,140,.4); }
.step-card.done .sh .no { animation: pop .6s cubic-bezier(.3,1.7,.5,1); }
.step-card .sb { animation: rise .6s cubic-bezier(.16,.8,.2,1); }
.subtabs { position: relative; }
.subtabs .ink { position: absolute; bottom: -1px; height: 2px; background: var(--ink); transition: left .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1); }
.subtabs button.on { border-color: transparent; }
#actBody > * { animation: rise .5s cubic-bezier(.16,.8,.2,1) backwards; }
#actBody > *:nth-child(2) { animation-delay: .04s } #actBody > *:nth-child(3) { animation-delay: .08s } #actBody > *:nth-child(4) { animation-delay: .12s }
.notice { animation: rise .6s cubic-bezier(.16,.8,.2,1) backwards; }
.notice.ok { position: relative; overflow: hidden; }
.notice.ok::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3s .3s ease-in-out 2; pointer-events: none; }
.balance-big { transition: color .4s; }

@media (prefers-reduced-motion: reduce) {
  .wi { transform: none !important; opacity: 1 !important; filter: none !important; }
  .ticker-track, .kicker::before, .glabel .pin, .step .glyph i, .drift, .final .bg, .floaters, #facets, .xsec .orbit, .token-main .ca-big, .token-side .t, .hero h1 em .wi { animation: none !important; }
  .xsec .ring, .perm tbody tr { opacity: 1 !important; transform: none !important; }
}

/* ---------- app: confirm sheet, kit copy / paste ---------- */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-deep); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkish:hover { color: var(--amethyst); }
.kit-alt { margin: 0; }
.kit-paste { display: none; width: 100%; min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; background: #fff; resize: vertical; }
.kit-paste.on { display: block; }
.sheet-back { position: fixed; inset: 0; z-index: 120; background: rgba(10, 9, 18, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.sheet-back.on { opacity: 1; }
.sheet { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.16, .8, .2, 1); }
.sheet-back.on .sheet { transform: none; }
.sheet h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.sheet p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.sheet .btns { justify-content: flex-end; margin-top: 6px; }
