/* =====================================================================
   quorum — styles
   ===================================================================== */

/* Heading font: drop your font file in /public/fonts and keep this name,
   or change the url() below. Falls back to Unbounded if the file is missing. */
/* Heading font: Oblata Display (public/fonts/oblata-display-font), SIL Open Font Licence. */
@font-face {
  font-family: 'QuorumHead';
  src: url('/fonts/oblata-display-font/OblataDisplayRegular-Zp8o8.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #101216;
  --ink: #ecebe6;
  --ink-2: #b9b9b4;
  --muted: #84868b;
  --line: rgba(236, 235, 230, .10);
  --line-2: rgba(236, 235, 230, .18);
  --glass: rgba(18, 20, 24, .50);
  --glass-2: rgba(24, 27, 32, .62);
  --stat: #060708;
  --accent: #ff6a2b;
  --accent-soft: rgba(255, 106, 43, .14);
  --up: #2fe0a0;
  --down: #ff4f6d;

  --font-head: 'QuorumHead', 'Unbounded', 'IBM Plex Sans', system-ui, sans-serif;
  --font-num: 'QuorumHead', 'Unbounded', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --max: 1780px;
  --gutter: clamp(16px, 3vw, 40px);
  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: #0a0b0d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; font-style: normal; font-synthesis: none; margin: 0; letter-spacing: .005em; line-height: .98; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: .02em; }
.muted { color: var(--muted); }
.acc { color: var(--accent); }
.up { color: var(--up); }
.down { color: var(--down); }
kbd {
  font-family: var(--font-mono); font-size: 12px; line-height: 1;
  padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.dotstop { color: var(--accent); }

/* ---------- background layers ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) } 75% { transform: translate(-2%,-1%) } }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 72% 18%, rgba(255,106,43,.08), transparent 60%),
    radial-gradient(900px 900px at 10% 90%, rgba(80,110,160,.08), transparent 60%);
}

/* ---------- scroll progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--accent); }

/* ---------- header ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.brand__mark { width: 50px; height: 50px; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg); }
.brand__word { font-family: var(--font-head); font-size: 34px; font-weight: 400; letter-spacing: .01em; line-height: 1; }
.brand__word b { color: var(--accent); }
.topbar__right { display: flex; align-items: center; gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono); font-size: 15px; transition: border-color .3s, background .3s;
}
.chip:hover { border-color: var(--accent); }
.chip__k { color: var(--accent); font-weight: 500; }
.chip__v { color: var(--ink-2); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--muted); }

.iconbtn {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, transform .3s var(--ease);
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 62px; padding: 0 30px; border-radius: 999px; font-size: 18px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { border-color: var(--accent); color: #0a0b0d; }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--primary { background: var(--accent); color: #0a0b0d; border-color: var(--accent); }
.btn--primary::after { background: var(--ink); }
.btn--ghost { background: transparent; }
.btn--sm { height: 46px; padding: 0 20px; font-size: 16px; }
.btn--wallet { height: 54px; }
.btn--wallet .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); transition: background .3s; }
.btn--wallet.is-on .dot { background: var(--up); box-shadow: 0 0 10px var(--up); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- layout ---------- */
.view { position: relative; z-index: 5; min-height: 100vh; padding: 120px 0 80px; outline: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(48px, 5.2vw, 104px); }
.section__head p { color: var(--ink-2); max-width: 54ch; margin: 0; justify-self: end; }
.h-page { font-size: clamp(56px, 6.6vw, 140px); margin: 18px 0 26px; }
.lede { font-size: clamp(22px, 1.7vw, 30px); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }

.panel {
  position: relative; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 44px);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.panel--edge::before {
  content: ''; position: absolute; left: -1px; top: 34px; bottom: 34px; width: 3px;
  background: var(--accent); border-radius: 3px;
}
.panel--tight { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- reveal animations ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }

/* ---------- landing ---------- */
.hero { position: relative; min-height: calc(100vh - 120px); display: grid; align-items: center; padding-bottom: 60px; }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1fr; width: fit-content; max-width: 100%;
  margin-left: clamp(0px, 5vw, 100px); padding: clamp(26px, 3vw, 54px) clamp(28px, 3.4vw, 64px);
  border-radius: 36px; background: rgba(12, 13, 16, .34); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 40px 100px -50px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}
.hero__inner::before { content: ''; position: absolute; left: -1px; top: 40px; bottom: 40px; width: 3px; border-radius: 3px; background: var(--accent); }
.hero__kicker { margin-bottom: 30px; }
.hero__title { font-size: clamp(60px, 7.6vw, 160px); line-height: 1.05; font-weight: 400; letter-spacing: .005em; }
.hero__title .ln { display: block; }
.hero__title .ln .w > span { transition-duration: 1.3s; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 46px; }
.hero__ca {
  display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 10px 0 22px;
  border-radius: 999px; border: 1px dashed var(--line-2); font-family: var(--font-mono); font-size: 15px; color: var(--ink-2);
  background: rgba(10,11,13,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__ca b { color: var(--accent); font-weight: 500; }
.hero__ca span { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__ca button { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #0a0b0d; font-family: var(--font-body); font-weight: 600; font-size: 15px; transition: background .3s; }
.hero__ca button:hover { background: var(--accent); }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }
.hero__meta { position: absolute; right: var(--gutter); bottom: 24px; text-align: right; color: var(--muted); font-family: var(--font-mono); font-size: 14px; line-height: 1.8; }
.hero__meta b { color: var(--ink); font-weight: 500; }

/* three motions strip */
.motions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.motion { min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .6s var(--ease), border-color .4s; }
.motion:hover { transform: translateY(-8px); border-color: var(--line-2); }
.motion__n { font-family: var(--font-mono); color: var(--accent); font-size: 15px; }
.motion svg.ico { width: 64px; height: 64px; margin: 30px 0 26px; }
.motion h3 { font-size: 52px; margin-bottom: 14px; }
.motion p { color: var(--ink-2); margin: 0; }
.motion__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--ink); font-weight: 600; }
.motion__link::after { content: '→'; color: var(--accent); transition: transform .3s var(--ease); }
.motion:hover .motion__link::after { transform: translateX(6px); }

.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico .a { stroke: var(--accent); }

/* ticker */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__row { display: flex; gap: 52px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 16px; white-space: nowrap; }
.ticker__item img { width: 26px; height: 26px; border-radius: 50%; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- stat boxes ---------- */
.stat {
  position: relative; background: var(--stat); border-radius: var(--r-md); padding: 26px 26px 22px;
  border: 1px solid rgba(255,255,255,.05); overflow: hidden;
}
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stat__n { font-family: var(--font-num); font-size: clamp(40px, 4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__c { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.stat__src { position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.stat__src::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3 } }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- feature accordion beside visual ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.feature__visual { position: sticky; top: 120px; aspect-ratio: 1 / 1.02; display: grid; place-items: center; overflow: hidden; }
.feature__visual svg { width: 100%; height: 100%; }
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-row { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: border-color .4s, background .4s; overflow: hidden; }
.acc-row.is-open { border-color: rgba(255,106,43,.5); background: var(--glass-2); }
.acc-row__head { width: 100%; display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 18px; padding: 26px 28px; text-align: left; }
.acc-row__n { font-family: var(--font-mono); color: var(--muted); font-size: 15px; transition: color .3s; }
.acc-row.is-open .acc-row__n { color: var(--accent); }
.acc-row__t { font-family: var(--font-head); font-size: clamp(30px, 2.8vw, 48px); font-weight: 400; line-height: 1.05; }
.acc-row__ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.acc-row__ic::before, .acc-row__ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.acc-row__ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.acc-row.is-open .acc-row__ic { background: var(--accent); border-color: var(--accent); color: #0a0b0d; transform: rotate(180deg); }
.acc-row.is-open .acc-row__ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc-row.is-open .acc-row__body { grid-template-rows: 1fr; }
.acc-row__inner { overflow: hidden; }
.acc-row__content { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 0 28px 28px 100px; }
.acc-row__content p { color: var(--ink-2); margin: 0 0 12px; }
.acc-row__content ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 16px; }
.acc-row__content li { padding: 6px 0 6px 22px; position: relative; }
.acc-row__content li::before { content: ''; position: absolute; left: 0; top: 17px; width: 10px; height: 2px; background: var(--accent); }

/* diagram svg (vault + agents visuals) */
.dg { --s: rgba(236,235,230,.55); }
.dg * { vector-effect: non-scaling-stroke; }
.dg .l { fill: none; stroke: var(--s); stroke-width: 1.3; }
.dg .l2 { fill: none; stroke: rgba(236,235,230,.16); stroke-width: 1; stroke-dasharray: 4 6; }
.dg .fx { fill: none; stroke: var(--accent); stroke-width: 2.4; opacity: .18; transition: opacity .6s var(--ease); }
.dg .fx-fill { fill: var(--accent); opacity: .12; transition: opacity .6s var(--ease); }
.dg text { font-family: var(--font-mono); font-size: 13px; fill: var(--muted); letter-spacing: .1em; transition: fill .4s; }
.dg [data-part].on .fx, .dg [data-part].on.fx { opacity: 1; }
.dg [data-part].on .fx-fill { opacity: .55; }
.dg [data-part].on text { fill: var(--ink); }
.dg .spin { transform-origin: 0 0; animation: spin 14s linear infinite; }
.dg .spin-r { transform-origin: 0 0; animation: spin 22s linear infinite reverse; }
.dg .flow { stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* ---------- agents ---------- */
.agent-ring { position: relative; }
.agent-ring .node { cursor: pointer; }
.agent-ring .node circle.bg { fill: #0b0c0f; stroke: var(--line-2); stroke-width: 1.2; transition: stroke .3s, fill .3s; }
.agent-ring .node.on circle.bg { stroke: var(--accent); fill: #15100d; }
.agent-ring .node path, .agent-ring .node line, .agent-ring .node circle.ic, .agent-ring .node polyline, .agent-ring .node rect { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.agent-ring .node.on path, .agent-ring .node.on polyline, .agent-ring .node.on line, .agent-ring .node.on circle.ic, .agent-ring .node.on rect { stroke: var(--accent); }
.agent-ring .spoke { stroke: var(--line-2); stroke-width: 1; transition: stroke .3s; }
.agent-ring .spoke.on { stroke: var(--accent); stroke-width: 2; }

.console { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.picker { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow: auto; padding-right: 6px; }
.picker::-webkit-scrollbar { width: 6px; } .picker::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.pick { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,11,13,.35); text-align: left; transition: border-color .3s, background .3s; }
.pick:hover { border-color: var(--line-2); }
.pick.is-on { border-color: var(--accent); background: var(--accent-soft); }
.pick img, .pick .ph { width: 40px; height: 40px; border-radius: 50%; background: #1a1c21; object-fit: cover; }
.pick b { display: block; font-size: 17px; }
.pick small { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }

.votes { display: flex; flex-direction: column; gap: 12px; }
.vote { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(6,7,8,.6); border: 1px solid var(--line); opacity: 0; transform: translateX(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .3s; }
.vote.in { opacity: 1; transform: none; }
.vote svg { width: 40px; height: 40px; }
.vote b { display: block; font-size: 17px; }
.vote small { color: var(--muted); font-size: 15px; }
.vote__v { font-family: var(--font-mono); font-size: 14px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.vote__v.long { color: var(--up); border-color: rgba(47,224,160,.4); }
.vote__v.short { color: var(--down); border-color: rgba(255,79,109,.4); }
.vote__v.abstain { color: var(--muted); }
.verdict { margin-top: 18px; padding: 22px 24px; border-radius: 16px; background: var(--stat); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-left: 3px solid var(--accent); }
.verdict h4 { font-size: 26px; }
.tally { display: flex; gap: 6px; }
.tally i { width: 14px; height: 30px; border-radius: 4px; background: #1d2026; transition: background .4s; }
.tally i.long { background: var(--up); } .tally i.short { background: var(--down); }

/* ---------- tenure ---------- */
.tenure { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve .axis { stroke: var(--line-2); stroke-width: 1; }
.curve .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.curve .path { fill: none; stroke: var(--accent); stroke-width: 3; }
.curve .area { fill: url(#curveGrad); }
.curve text { fill: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.curve .knob { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.curve .guide { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; }

.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.field label { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.field label output, .field label .mono { color: var(--accent); }
.field small { color: var(--muted); font-size: 15px; }
.field .err { color: var(--down); font-size: 15px; min-height: 0; }
.input, .textarea, .select {
  width: 100%; height: 62px; padding: 0 20px; border-radius: 14px; font-size: 18px;
  background: rgba(6,7,8,.55); border: 1px solid var(--line-2); transition: border-color .3s, background .3s; outline: none;
}
.textarea { height: auto; min-height: 140px; padding: 16px 20px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); background: rgba(6,7,8,.8); }
.input.bad, .textarea.bad { border-color: var(--down); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), #262930 var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #262930; }
input[type=range]::-moz-range-progress { height: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }

/* ---------- board ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.toolbar .input { max-width: 380px; height: 56px; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.seg button { height: 46px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s; }
.seg button.is-on { background: var(--accent); color: #0a0b0d; }
.seg button:not(.is-on):hover { color: var(--ink); }
.live-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 1.6s infinite; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .5s var(--ease), border-color .4s; cursor: pointer;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card__top { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; }
.card__top img, .card__top .ph { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: #1a1c21; }
.card__sym { font-family: var(--font-num); font-size: 22px; font-weight: 600; line-height: 1.1; }
.card__name { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18ch; }
.card__chg { font-family: var(--font-mono); font-size: 15px; padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.04); }
.spark { width: 100%; height: 74px; }
.card__kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kv small { display: block; color: var(--muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.kv b { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.card__act { display: flex; gap: 10px; }
.card__act button { flex: 1; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 16px; font-weight: 600; transition: border-color .3s, background .3s, color .3s; }
.card__act .save:hover, .card__act .save.is-on { background: var(--accent); border-color: var(--accent); color: #0a0b0d; }
.card__act .pass:hover, .card__act .pass.is-on { border-color: var(--muted); background: rgba(255,255,255,.06); }
.card.is-passed { opacity: .45; }
.card .badge { position: absolute; top: -10px; right: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #0a0b0d; }
.skeleton { height: 330px; border-radius: 24px; background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { padding: 60px; text-align: center; color: var(--muted); }

/* ---------- coin page ---------- */
.coin-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-bottom: 28px; }
.coin-head img, .coin-head .ph { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; background: #1a1c21; }
.coin-head h1 { font-size: clamp(40px, 5vw, 76px); }
.coin-price { text-align: right; }
.coin-price b { font-family: var(--font-num); font-size: clamp(34px, 3.4vw, 54px); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.coin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.chart { position: relative; height: 440px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .hover-line { stroke: var(--line-2); stroke-dasharray: 3 4; }
.chart__tip { position: absolute; pointer-events: none; padding: 10px 14px; border-radius: 10px; background: rgba(6,7,8,.92); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .2s; }
.chart__note { position: absolute; left: 0; bottom: -2px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv-grid .kv { padding: 18px; border-radius: 14px; background: rgba(6,7,8,.55); border: 1px solid var(--line); }
.kv-grid .kv b { font-size: 21px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.links a { height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 16px; transition: border-color .3s, color .3s; }
.links a:hover { border-color: var(--accent); color: var(--accent); }
.tfs { display: flex; gap: 6px; }
.tfs button { height: 40px; padding: 0 14px; border-radius: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); border: 1px solid transparent; }
.tfs button.is-on { color: var(--ink); border-color: var(--accent); }
.addr { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.addr button { color: var(--accent); }

/* ---------- pulse ---------- */
.pulse { position: relative; height: min(76vh, 820px); padding: 0; overflow: hidden; }
.pulse canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pulse__legend { position: absolute; left: 24px; top: 22px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); pointer-events: none; }
.pulse__legend b { color: var(--ink); font-weight: 500; }
.pulse__tip { position: absolute; pointer-events: none; min-width: 220px; padding: 16px; border-radius: 14px; background: rgba(6,7,8,.94); border: 1px solid var(--line-2); opacity: 0; transition: opacity .2s; font-size: 15px; z-index: 2; }
.pulse__tip b { font-family: var(--font-head); font-size: 20px; }
.pulse__tip .row { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
.pulse__tip .row span:last-child { color: var(--ink); font-family: var(--font-mono); }
.pulse__axes { position: absolute; inset: auto 24px 18px 24px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--muted); pointer-events: none; }

/* ---------- forge ---------- */
.forge { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.forge__stage { position: sticky; top: 110px; height: min(74vh, 760px); padding: 0; overflow: hidden; }
.forge__stage canvas { width: 100%; height: 100%; }
.forge__hud { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--muted); pointer-events: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line-2); outline-offset: 3px; transition: transform .3s var(--ease); }
.swatches button.is-on { outline-color: var(--ink); transform: scale(1.08); }
.out { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; padding: 18px; border-radius: 14px; background: var(--stat); border: 1px solid var(--line); max-height: 260px; overflow: auto; white-space: pre; color: var(--ink-2); margin-top: 16px; }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 30px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: #23262c; transition: background .5s; }
.steps span.on { background: var(--accent); }
.drop { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(6,7,8,.4); cursor: pointer; transition: border-color .3s; }
.drop:hover, .drop.drag { border-color: var(--accent); }
.drop .thumb { width: 96px; height: 96px; border-radius: 16px; background: #15171b center/cover; display: grid; place-items: center; color: var(--muted); }
.alloc { display: grid; gap: 14px; }
.alloc__row { display: grid; grid-template-columns: 36px 140px 1fr 58px; gap: 14px; align-items: center; }
.alloc__row svg { width: 32px; height: 32px; }
.alloc__sum { font-family: var(--font-mono); font-size: 14px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); margin-top: 3px; flex: none; }
.preview-card { position: sticky; top: 110px; }
.preview-card .pc-top { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.preview-card .pc-img { width: 80px; height: 80px; border-radius: 18px; background: #15171b center/cover; }
.confirm { text-align: left; }
.confirm__seal { width: 120px; height: 120px; margin-bottom: 24px; }
.confirm__seal circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 380; stroke-dashoffset: 380; animation: draw 1.2s var(--ease) forwards; }
.confirm__seal path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .8s var(--ease) forwards; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- shortlist ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.list__row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(6,7,8,.4); }
.list__row img, .list__row .ph { width: 48px; height: 48px; border-radius: 12px; background: #1a1c21; object-fit: cover; }

/* ---------- bottom rail nav ---------- */
.rail {
  position: fixed; left: 50%; bottom: 22px; z-index: 55; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 10px;
  border-radius: 999px; background: rgba(14,16,19,.68); border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  max-width: calc(100vw - 24px);
}
.rail__track { position: absolute; left: 34px; right: 160px; top: -26px; height: 20px; pointer-events: none; }
.rail__ticks { position: absolute; left: 0; right: 0; bottom: 4px; height: 6px; background: repeating-linear-gradient(90deg, rgba(236,235,230,.22) 0 1px, transparent 1px 12px); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.rail__spinner { position: absolute; left: 0; bottom: 0; width: 34px; height: 34px; margin-left: -17px; transition: transform .9s var(--ease); }
.rail__spinner svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; animation: wob 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.rail__spinner .ax { stroke: var(--accent); stroke-linecap: round; }
@keyframes wob { 0%,100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) } }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rail__list::-webkit-scrollbar { display: none; }
.rail__list a {
  position: relative; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; border-radius: 999px;
  font-size: 17px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .3s, background .3s;
}
.rail__list a svg { width: 22px; height: 22px; flex: none; }
.rail__list a span { max-width: 0; opacity: 0; overflow: hidden; transition: max-width .5s var(--ease), opacity .3s; }
.rail__list a.is-on span, .rail__list a:hover span, .rail__list a:focus-visible span { max-width: 160px; opacity: 1; }
.rail__list a:not(.is-on) { gap: 0; }
.rail__list a:not(.is-on):hover { gap: 10px; }
.stat-slot { height: 100%; }
.stat-slot .stat { height: 100%; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.rail__list a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.rail__list a.is-on { color: #0a0b0d; background: var(--ink); }
.rail__list a.is-on svg .a { stroke: var(--accent); }
.rail__menu { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--accent); color: #0a0b0d; font-weight: 600; font-size: 17px; flex: none; transition: transform .3s var(--ease); }
.rail__menu:hover { transform: scale(1.04); }
.rail__menu kbd { border-color: rgba(10,11,13,.3); color: #0a0b0d; }
.rail__menuicon { display: grid; gap: 5px; width: 20px; }
.rail__menuicon i { height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.rail__menuicon i:last-child { width: 60%; }
.rail__menu:hover .rail__menuicon i:last-child { transform: translateX(8px); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 900; display: grid;
  background: rgba(8,9,11,.84); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  visibility: hidden; opacity: 0; pointer-events: none;
  clip-path: circle(0% at var(--mx, 50%) var(--my, 100%));
  transition: clip-path .9s var(--ease-io), opacity .4s, visibility 0s linear .9s;
}
.menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); transition: clip-path .9s var(--ease-io), opacity .2s, visibility 0s; }
.menu__bg { position: absolute; inset: 0; display: grid; place-items: center end; padding-right: 4vw; pointer-events: none; overflow: hidden; }
.menu__gyro { width: min(70vh, 640px); height: auto; fill: none; stroke: rgba(236,235,230,.12); stroke-width: 1; }
.menu__gyro .axis { stroke: var(--accent); stroke-width: 1.4; opacity: .6; }
.menu__gyro .g1 { animation: spin 18s linear infinite; }
.menu__gyro .g2 { animation: gx 9s ease-in-out infinite; transform-origin: center; }
.menu__gyro .g3 { animation: spin 26s linear infinite reverse; }
@keyframes gx { 50% { transform: scaleX(.2); } }
.menu__inner { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; min-height: 100%; overflow: auto; }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.menu__list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu__list li { border-top: 1px solid var(--line); opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 40ms); }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 40px; align-items: center; gap: 20px; padding: 14px 0; transition: padding .5s var(--ease), color .3s; }
.menu__list .n { font-family: var(--font-mono); color: var(--muted); font-size: 15px; }
.menu__list .t { font-family: var(--font-head); font-size: clamp(40px, 4.6vw, 72px); font-weight: 400; line-height: 1; }
.menu__list .d { color: var(--muted); font-size: 17px; max-width: 44ch; }
.menu__list .ar { color: var(--accent); font-size: 26px; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease); }
.menu__list a:hover { padding-left: 18px; }
.menu__list a:hover .t, .menu__list a.is-on .t { color: var(--accent); }
.menu__list a:hover .ar { opacity: 1; transform: none; }
.menu__foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; color: var(--muted); }
.menu__foot a:hover { color: var(--accent); }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: radial-gradient(900px 600px at 50% 40%, #14161a, #08090b 70%);
  transition: clip-path 1.1s var(--ease-io), visibility 0s linear 1.1s;
  clip-path: inset(0 0 0 0);
}
.intro.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
.intro.is-gone { display: none; }
.intro__stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro__draw { width: min(42vh, 360px); height: auto; overflow: visible; }
.intro__draw .dims line { stroke: rgba(236,235,230,.14); stroke-width: 1; stroke-dasharray: 2 5; }
.intro__draw .axis { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .2s var(--ease) forwards; }
.intro__draw .p { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s .5s var(--ease) forwards; }
.intro__draw .rim { stroke: var(--accent); animation-delay: 1s; }
.intro__draw .stripes line { stroke: rgba(236,235,230,.5); stroke-width: 1.2; }
.intro__draw .labels text { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; opacity: 0; animation: fadein .6s 1.4s forwards; }
.intro__draw #introTop { transform-origin: 0 160px; }
@keyframes fadein { to { opacity: 1; } }
.intro__word { font-family: var(--font-head); font-size: clamp(56px, 7vw, 110px); font-weight: 400; letter-spacing: .01em; line-height: 1; height: 1.05em; display: flex; overflow: hidden; }
.intro__word span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.intro__word span.in { transform: none; }
.intro__word span.stop { color: var(--accent); }
.intro__line { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
.intro__line i { display: block; width: 180px; height: 2px; background: #25282e; position: relative; overflow: hidden; }
.intro__line i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.btn--enter { height: 70px; padding: 0 40px; font-size: 20px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s, color .3s; }
.btn--enter.is-ready { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- cursor ---------- */
.cursor-top, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; will-change: transform; }
.cursor-top { width: 96px; height: 96px; opacity: 0; transition: opacity .4s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
body.has-cursor .cursor-top, body.has-cursor .cursor-dot { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor label, body.has-cursor select, body.has-cursor .card { cursor: none; }
body.has-cursor textarea, body.has-cursor input[type=text], body.has-cursor input[type=url], body.has-cursor input[type=number], body.has-cursor input[type=search] { cursor: text; }
body.cursor-hover .cursor-dot { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255,106,43,.16); border: 1px solid var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 120px; z-index: 1500; transform: translate(-50%, 20px);
  padding: 16px 24px; border-radius: 999px; background: var(--ink); color: #0a0b0d; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* page transition */
.view.is-leaving { opacity: 0; transform: translateY(-14px); transition: opacity .35s, transform .35s var(--ease); }
.view.is-entering { animation: enter .7s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }


/* ---------- header pod: CA · X · wallet ---------- */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pod {
  position: relative; display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(12,13,16,.62); isolation: isolate;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.9);
}
.pod::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg, transparent 250deg, var(--accent) 320deg, transparent 360deg), var(--line-2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: podspin 7s linear infinite;
}
@keyframes podspin { to { --ang: 360deg; } }
.pod__ca {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px 0 7px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 15px; color: var(--ink-2); transition: background .3s, color .3s;
}
.pod__ca:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.pod__k { height: 38px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; letter-spacing: .08em; }
.pod__v { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod__ic { position: relative; width: 18px; height: 18px; }
.pod__ic svg { position: absolute; inset: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, transform .4s var(--ease); }
.pod__ic .i-ok { opacity: 0; transform: scale(.5); stroke: var(--up); stroke-width: 2.4; }
.pod__ca.is-copied .i-copy { opacity: 0; transform: scale(.5); }
.pod__ca.is-copied .i-ok { opacity: 1; transform: none; }
.pod__x {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); transition: background .35s, color .35s, transform .5s var(--ease), border-color .3s;
}
.pod__x svg { width: 19px; height: 19px; fill: currentColor; transition: transform .5s var(--ease); }
.pod__x:hover { background: var(--ink); color: #0a0b0d; border-color: var(--ink); }
.pod__x:hover svg { transform: rotate(-12deg) scale(1.1); }
.pod__wallet {
  position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 7px; border-radius: 999px;
  background: var(--accent); color: #0a0b0d; font-weight: 600; font-size: 17px; overflow: hidden; isolation: isolate;
  transition: background .35s, color .35s, box-shadow .35s;
}
.pod__wallet::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.pod__wallet:hover::after { transform: translateX(120%); }
.pod__wallet:hover { box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px -8px rgba(255,106,43,.6); }
.pod__orb { width: 38px; height: 38px; border-radius: 50%; background: #0a0b0d; display: grid; place-items: center; transition: transform .6s var(--ease); }
.pod__orb svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pod__wallet:hover .pod__orb { transform: rotate(-14deg) scale(1.06); }
.pod__label { white-space: nowrap; }
.pod__wallet.is-on { background: rgba(47,224,160,.1); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(47,224,160,.35); }
.pod__wallet.is-on .pod__orb { background: rgba(47,224,160,.14); }
.pod__wallet.is-on .pod__orb svg { stroke: var(--up); }
.pod__wallet.is-on .pod__orb::after { content: ''; position: absolute; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(47,224,160,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47,224,160,0); } 100% { box-shadow: 0 0 0 0 rgba(47,224,160,0); } }
.pod__wallet.is-on:hover { background: rgba(255,79,109,.12); box-shadow: inset 0 0 0 1px rgba(255,79,109,.4); }
.pod__wallet.is-on:hover .pod__label::after { content: ' · Disconnect'; color: var(--down); }

/* hero CA pill */
.hero__ca { cursor: pointer; gap: 14px; padding: 0 22px 0 8px; transition: border-color .3s, background .3s; }
.hero__ca b { height: 46px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); }
.hero__ca svg { width: 18px; height: 18px; color: var(--muted); transition: color .3s; }
.hero__ca:hover { border-color: var(--accent); background: rgba(10,11,13,.7); }
.hero__ca:hover svg { color: var(--accent); }
.hero__ca.is-copied svg { color: var(--up); }

/* ---------- home chapters ---------- */
.chap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 70px); align-items: center; min-height: 0; padding-block: clamp(50px, 6vw, 100px); }
.chap[data-side="right"] .chap__text { order: 2; }
.chap__n { display: inline-block; font-family: var(--font-mono); font-size: 20px; color: var(--accent); letter-spacing: .14em; margin-bottom: 22px; }
.chap__h { font-size: clamp(60px, 7.4vw, 160px); line-height: 1.05; }
.chap__p { font-size: clamp(24px, 2.3vw, 40px); line-height: 1.3; color: var(--ink-2); max-width: 22ch; margin: 30px 0 38px; }
.chap__vis { aspect-ratio: 1; width: 100%; max-width: 860px; justify-self: stretch; display: grid; place-items: center; padding: clamp(20px, 2.5vw, 44px); }
.chap__vis .dg text { font-size: 20px; }
.chap__vis svg { width: 100%; height: 100%; }
.chap--wide { display: block; min-height: auto; padding-block: clamp(50px, 6vw, 100px); }
.chap--wide .chap__p { margin-bottom: 0; }
.dg text.big { font-family: var(--font-num); font-size: 40px; fill: var(--ink); letter-spacing: 0; }
.dg text.acc-t { fill: var(--accent); }
.vault-fill { animation: fill 4.5s var(--ease) infinite; }
@keyframes fill { 0% { transform: translateY(240px); } 80%, 100% { transform: translateY(0); } }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.mini { display: flex; flex-direction: column; gap: 22px; padding: 34px; transition: transform .5s var(--ease), border-color .3s; }
.mini:hover { transform: translateY(-6px); border-color: var(--line-2); }
.mini__top { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.mini__top img, .mini__top .ph { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: #1a1c21; }
.mini__top b { font-family: var(--font-num); font-size: 40px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__chg { font-family: var(--font-mono); font-size: 17px; }
.mini .spark { height: 160px; }
.mini__px { font-family: var(--font-num); font-size: 34px; color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .6s var(--ease), border-color .4s, background .4s; }
.tile h3 { font-size: clamp(48px, 4.6vw, 96px); line-height: 1.05; }
.tile__ar { position: absolute; right: 34px; top: 30px; font-size: 34px; color: var(--accent); transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-8px); border-color: rgba(255,106,43,.5); background: var(--glass-2); }
.tile:hover .tile__ar { transform: translate(6px, -6px) rotate(-45deg); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 5; padding: 60px 0 150px; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(6,7,8,.85) 30%); }
.foot__word {
  display: block; font-family: var(--font-head); font-size: clamp(90px, 14vw, 260px); line-height: 1; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px rgba(236,235,230,.22);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  transition: background-position 1.2s var(--ease), -webkit-text-stroke-color .6s;
}
.foot__word span { -webkit-text-stroke-color: var(--accent); }
.foot__word:hover { background-position: 0 0; -webkit-text-stroke-color: transparent; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: 50px; }
.foot__links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 30px; }
.foot__links a { font-family: var(--font-head); font-size: 36px; line-height: 1.2; transition: color .3s, padding .4s var(--ease); }
.foot__links a:hover { color: var(--accent); padding-left: 8px; }
.foot__ca { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 20px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); font-family: var(--font-mono); font-size: 15px; color: var(--ink-2); transition: border-color .3s; }
.foot__ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot__ca b { color: var(--accent); font-weight: 500; }
.foot__ca:hover { border-color: var(--accent); }
.foot__x { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 20px; font-weight: 600; }
.foot__x span { color: var(--accent); transition: transform .4s var(--ease); }
.foot__x:hover span { transform: translate(4px, -4px); }
.foot__note { color: var(--muted); margin: 20px 0 0; font-size: 17px; }
.foot__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 14px; }

#scene { transition: opacity 1s var(--ease); }
body.is-scrolled #scene { opacity: .5; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .rail__list a { padding: 0 16px; }
  .rail__list a.is-on span { max-width: 0; opacity: 0; }
  .rail__list a.is-on { gap: 0; }
  .feature, .console, .tenure, .coin-grid, .forge, .launch { grid-template-columns: 1fr; }
  .feature__visual, .forge__stage, .preview-card { position: relative; top: 0; }
  .feature__visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .section__head { grid-template-columns: 1fr; }
  .section__head p { justify-self: start; }
  .motions, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero__inner { padding-left: 0; }
  .hero__meta { display: none; }
  .pod__v, .pod__ic { display: none; }
  .pod__ca { padding-right: 7px; }
  .chap, .chap[data-side] { grid-template-columns: 1fr; min-height: auto; }
  .chap[data-side="right"] .chap__text { order: 0; }
  .minis, .tiles, .foot__grid { grid-template-columns: 1fr; }
  .acc-row__content { grid-template-columns: 1fr; padding: 0 22px 24px; }
  .menu__list a { grid-template-columns: 44px 1fr; }
  .menu__list .d, .menu__list .ar { display: none; }
  .coin-head { grid-template-columns: auto 1fr; }
  .coin-price { grid-column: 1 / -1; text-align: left; }
  .rail__menu kbd, .rail__track { display: none; }
}
@media (max-width: 600px) {
  .brand__word { font-size: 26px; }
  .brand__mark { width: 40px; height: 40px; }
  .pod__label { display: none; }
  .pod__wallet { padding: 0 7px; }
  .stats-row { grid-template-columns: 1fr; }
  .alloc__row { grid-template-columns: 30px 1fr 52px; }
  .alloc__row input { grid-column: 1 / -1; }
}
@media (hover: none) { .cursor-top, .cursor-dot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
