/* ---------- tokens (measured on the template) ---------- */
:root {
  --ink: #121214;
  --ink-2: #1b1b1f;
  --ink-3: #212124;
  --ink-4: #282828;
  --grey: #525252;
  --grey-2: #8f8f8f;
  --line: #d9d9d9;
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --indigo: #381ac9;
  --indigo-2: #6262fe;
  --lav: #9696ff;
  --lav-2: #bebeff;
  --lav-3: #c3c3ff;
  --deep: #2d15cf;
  --up: #16c784;
  --up-ink: #009c68;
  --down: #ff4d5e;
  --display: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --wrap: 1344px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[data-layout="app"] body { background: var(--ink); color: #fff; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 1; }
.h-sec { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 72px; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.sub { font-size: 18px; line-height: 27px; letter-spacing: -0.01em; color: var(--grey); }
.on-dark .h-sec { color: #fff; }
.on-dark .sub { color: rgba(255, 255, 255, .6); }

/* section eyebrow: number chip + tilted tag */
.tag { display: inline-flex; align-items: flex-end; gap: 0; height: 32px; margin-bottom: 12px; position: relative; }
.tag .n { font-family: var(--display); font-weight: 900; font-size: 14px; line-height: 14px; color: var(--grey); background: #efefef; border-radius: 6px; padding: 5px 5px 4px; transform: rotate(-4deg) translate(4px, 2px); z-index: 1; }
.tag .t { font-family: var(--display); font-weight: 900; font-size: 14px; line-height: 14px; letter-spacing: 0; color: var(--line); background: var(--grey); border-radius: 6px; padding: 5px 8px; transform: rotate(-9deg) translateY(-8px); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.on-dark .tag .n { background: #2a2a2e; color: #8f8f8f; }
.on-dark .tag .t { background: #3a3a40; color: #d9d9d9; }

/* ---------- buttons (template: Primary / Secondary / light pill) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding: 0 24px; border-radius: 22px; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; color: #fff; white-space: nowrap; transition: transform .35s var(--spring), filter .25s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(#6d55e2, #28119c); box-shadow: 0 1px 2px rgba(40, 16, 162, .37), 0 3px 3px rgba(40, 16, 162, .32), 0 8px 5px rgba(40, 16, 162, .19), 0 13px 5px rgba(40, 16, 162, .06), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-dark { background: linear-gradient(#282828, #060606); box-shadow: 0 1px 2px rgba(0, 0, 0, .37), 0 3px 3px rgba(0, 0, 0, .32), 0 7px 4px rgba(0, 0, 0, .19), 0 12px 5px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-sm { height: 48px; border-radius: 18px; padding: 0 18px; font-size: 15px; }
.pill-ring { display: inline-flex; padding: 2px; border-radius: 22px; background: linear-gradient(rgba(224, 224, 224, .2), rgba(224, 224, 224, .4)); box-shadow: 0 10px 4px rgba(194, 194, 194, .03), 0 6px 3px rgba(194, 194, 194, .11), 0 2px 2px rgba(194, 194, 194, .19), 0 1px 1px rgba(194, 194, 194, .22); }
.btn-light { height: 48px; border-radius: 20px; padding: 0 18px; background: #fff; color: var(--ink-3); font-weight: 600; box-shadow: inset 0 -2px 1px rgba(26, 20, 51, .25); }
.btn-light:hover { filter: none; background: #f7f7ff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--indigo); }

/* ---------- marketing nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 116px; pointer-events: none; }
.nav-in { position: relative; height: 100%; max-width: 1440px; margin: 0 auto; }
.nav a, .nav button { pointer-events: auto; }
.nav-logo { position: absolute; top: 34px; left: 48px; height: 48px; display: flex; align-items: center; gap: 10px; color: #fff; border-radius: 20px; transition: left .6s var(--ease), background-color .4s, padding .6s var(--ease), width .6s var(--ease); }
.nav-logo .mark { width: 34px; height: 34px; flex: none; }
.nav.compact .nav-logo .mark { width: 30px; height: 30px; }
.nav-logo .word { font-family: var(--sans); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.06em; text-transform: lowercase; transition: opacity .3s, max-width .5s var(--ease); max-width: 200px; overflow: hidden; white-space: nowrap; }
.nav-menu { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); height: 48px; display: flex; align-items: center; padding: 4px; border-radius: 20px; background: rgba(0, 0, 0, .15); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transition: background-color .4s, transform .6s var(--ease), left .6s var(--ease); }
.nav-menu a { position: relative; height: 40px; display: flex; align-items: center; padding: 0 16px; color: #fff; font-size: 16px; border-radius: 16px; transition: background-color .25s; }
.nav-menu a:hover { background: rgba(255, 255, 255, .1); }
.nav-menu a.on { background: rgba(255, 255, 255, .15); padding-left: 26px; }
.nav-menu a.on::before { content: ''; position: absolute; left: 14px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
.nav-cta { position: absolute; top: 32px; right: 48px; transition: right .6s var(--ease), transform .6s var(--ease); }
/* compact state once the hero trigger is passed: logo mark in a black tile, group centred */
.nav.compact .nav-logo { background: #000; padding: 0; gap: 0; width: 48px; justify-content: center; left: var(--nx-logo, 359px); }
.nav.compact .nav-logo .word { max-width: 0; opacity: 0; }
.nav.compact .nav-menu { background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(80px); backdrop-filter: blur(80px); left: var(--nx-menu, 50%); }
.nav.compact .nav-cta { right: var(--nx-cta, 48px); }
.nav-burger { display: none; }

/* ---------- motion primitives (driven by js/anim.js) ---------- */
[data-words] .w, [data-chars] .c { display: inline-block; white-space: pre; will-change: transform, opacity, filter; }
[data-words] .w { opacity: 0; filter: blur(10px); transform: translateY(12px); }
[data-words].in .w { opacity: 1; filter: blur(0); transform: none; transition: opacity .7s var(--ease), filter .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * var(--st, 70ms)); }
[data-chars] .c { opacity: 0; filter: blur(8px); }
[data-chars].in .c { opacity: 1; filter: blur(0); transition: opacity .5s var(--ease), filter .5s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * var(--st, 28ms)); }
[data-rise] { opacity: 0; transform: translateY(var(--rise, 40px)); }
[data-rise].in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-pop] { opacity: 0; transform: scale(.5); }
[data-pop].in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .9s var(--spring); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  [data-words] .w, [data-chars] .c, [data-rise], [data-pop] { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
}

/* ---------- footer (template: flipped blurred glow, glass panel, two indigo link blocks, giant wordmark) ---------- */
.foot { position: relative; background: var(--ink); color: #fff; overflow: hidden; height: 640px; }
.foot-glow { position: absolute; inset: 0; pointer-events: none; filter: blur(10px); -webkit-mask-image: linear-gradient(0deg, #000 81.5%, transparent 100%); mask-image: linear-gradient(0deg, #000 81.5%, transparent 100%); }
.foot-glow::before { content: ""; position: absolute; inset: 0; background: url(/img/footer-glow.png) center / cover no-repeat; transform: rotate(180deg); }
.foot-word { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); width: 1344px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 360px; line-height: .78; letter-spacing: -0.05em; text-align: center; color: rgba(255, 255, 255, .07); white-space: nowrap; pointer-events: none; }
.foot-main { position: absolute; left: 0; right: 0; top: 344px; height: 360px; transition: transform 1s var(--ease); }
.foot.in .foot-main { transform: translateY(-64px); }
.foot-ell { position: absolute; left: 50%; top: 161px; width: 1440px; height: 1419px; margin-left: -720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 30, 255, .9), rgba(36, 30, 255, .6) 60%, rgba(36, 30, 255, 0) 100%); filter: blur(10px); opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
.foot.in .foot-ell { opacity: .55; transform: translateY(-64px); }
.foot-bg { position: absolute; left: 48px; right: 48px; top: 0; height: 360px; border-radius: 120px 120px 0 0; background: linear-gradient(270deg, rgba(178, 178, 255, .2), rgba(255, 255, 255, .6) 50%, rgba(178, 178, 255, .2)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.foot-top { position: absolute; left: 50%; top: -76px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; }
.foot-links { position: relative; display: grid; grid-template-columns: 620px 620px; gap: 8px; justify-content: center; padding-top: 48px; }
.foot-block { position: relative; display: flex; justify-content: space-between; gap: 24px; height: 176px; padding: 48px; border-radius: 72px 72px 0 0; background: rgba(56, 26, 201, .3); }
.foot-block h4 { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 36px; text-transform: uppercase; letter-spacing: 0; width: 242px; }
.foot-cols { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 24px); gap: 4px 24px; align-content: start; font-size: 16px; line-height: 24px; }
.foot-cols a { color: #fff; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1248px; margin: 0 auto; padding: 44px 0 0; font-size: 14px; color: var(--ink-3); }
.foot-legal { position: relative; max-width: 1248px; margin: 10px auto 0; font-size: 12px; line-height: 18px; color: rgba(33, 33, 36, .7); }

/* ---------- small shared bits ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .08); }
.up { color: var(--up); } .down { color: var(--down); }
.coin { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 280px; max-width: 420px; padding: 12px 16px; border-radius: 16px; background: #212124; color: #fff; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); display: flex; align-items: center; gap: 12px; animation: toastIn .5s var(--spring); }
.toast b { font-weight: 600; }
.toast button { margin-left: auto; font-weight: 600; color: var(--lav); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

@media (max-width: 1100px) {
  .nav-menu a { padding: 0 11px; font-size: 15px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .h-sec { font-size: 48px; }
  .nav { height: 96px; }
  .nav-in { position: absolute; left: 16px; right: 16px; top: 16px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); pointer-events: auto; }
  .nav.compact .nav-in { background: rgba(18, 18, 20, .72); }
  .nav-logo, .nav.compact .nav-logo { top: 8px; left: 12px; background: none; padding: 0; }
  .nav.compact .nav-logo .word { max-width: 200px; opacity: 1; }
  .nav-logo .word { font-size: 26px; }
  .nav-cta { display: none; }
  .nav-burger { display: grid; place-content: center; gap: 6px; position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 12px; background: #fff; pointer-events: auto; }
  .nav-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #121214; transition: transform .3s var(--ease); }
  .nav.open .nav-burger i:first-child { transform: translateY(4px) rotate(45deg); } .nav.open .nav-burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-menu, .nav.compact .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 72px; transform: none; height: auto; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 20px; background: rgba(18, 18, 20, .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .nav.open .nav-menu { display: flex; }
  .nav-menu a { height: 48px; font-size: 17px; }
  .nav.open .nav-cta { display: block; position: absolute; top: auto; bottom: -340px; left: 8px; right: 8px; }
  .nav.open .nav-cta .btn { width: 100%; }
  .foot { height: auto; padding-bottom: 32px; }
  .foot-word { font-size: 110px; width: 100%; top: 60px; }
  .foot-main { position: relative; top: auto; height: auto; padding-top: 180px; }
  .foot-bg { left: 8px; right: 8px; border-radius: 48px 48px 0 0; height: 100%; top: 150px; }
  .foot-links { grid-template-columns: 1fr; padding: 48px 16px 0; }
  .foot-block { flex-direction: column; height: auto; border-radius: 40px; padding: 28px; }
  .foot-block h4 { font-size: 28px; line-height: 28px; }
  .foot-cols { grid-template-rows: repeat(4, 24px); }
  .foot-bottom, .foot-legal { padding-left: 24px; padding-right: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.nav { transition: opacity .8s var(--ease), transform .9s var(--ease); }
.nav.pre { opacity: 0; transform: translateY(-24px); }
