/* TACIT: layout type follows rooq.trade (pill nav, centred hero over a live app panel, alternating dark/light
   bands, big wordmark footer). Our own palette and subject: cobalt light on near-black; the bold moment is the
   "viewing as" switch that shows the same account to you and to everyone else.
   Tokens: 5 colours + 2 gains/loss, Hanken Grotesk (set tight) + IBM Plex Mono for anything read off the chain. */
:root {
  --ink: #0a0c10;
  --ink-2: #12151c;
  --ink-3: #1b1f29;
  --line-d: rgba(255, 255, 255, .09);
  --bone: #f3f4f1;
  --paper: #ffffff;
  --line: #e3e5e8;
  --text: #0d0f14;
  --mute: #5b616e;
  --mute-d: #9aa1b2;
  --cobalt: #3b5bff;
  --ice: #c8d4ff;
  --up: #2fbf86;
  --down: #f0645a;
  --r: 18px;
  --r-s: 12px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- nav (floating pill) */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; }
.nav-in { width: min(1232px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 20px;
  background: rgba(14, 17, 23, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-d); border-radius: 999px; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 24px; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 6px; margin-inline: auto; }
.nav-links a { text-decoration: none; font-size: 15px; color: #d7dbe6; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .16s var(--ease), background .2s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ice); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #20242f; }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn-line { border-color: var(--line); background: var(--paper); color: var(--text); }
.btn-line:hover { border-color: #c4c8cf; }
.nav .btn { padding: 9px 16px; font-size: 14px; background: #23283a; color: #fff; }
.nav .btn:hover { background: #2e3550; }
.burger { display: none; background: none; border: 0; padding: 8px; color: #fff; margin-left: auto; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; background: rgba(14, 17, 23, .97); border: 1px solid var(--line-d); border-radius: 20px; padding: 10px; }
  .nav.open .nav-links { display: flex; }
  .burger { display: block; }
  .nav .btn { display: none; }
}

/* ---------------------------------------------------------------- dark bands */
.dark { background: var(--ink); color: #fff; }
.dark .lede, .dark .mute { color: var(--mute-d); }
.lede { color: var(--mute); font-size: 18px; max-width: 560px; margin: 16px auto 0; }
.center { text-align: center; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .96; letter-spacing: -.055em; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: 20px; letter-spacing: -.02em; }
section { padding: 120px 0; }
@media (max-width: 700px) { section { padding: 80px 0; } .lede { font-size: 16px; } }

/* ---------------------------------------------------------------- footer */
.foot { padding: 64px 0 0; background: var(--paper); }
.foot-note { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; color: var(--mute); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0; }
.foot-cols h4 { margin: 0 0 14px; font-weight: 500; color: var(--mute); font-size: 14px; }
.foot-cols a { display: block; text-decoration: none; padding: 6px 0; }
.foot-cols a:hover { color: var(--cobalt); }
.foot-brand p { color: var(--mute); max-width: 340px; }
.foot-x { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px !important; margin-top: 8px; }
.wordmark { font-weight: 800; letter-spacing: -.07em; line-height: .78; font-size: clamp(76px, 17.5vw, 262px); color: #eceef1; text-align: center; user-select: none; padding-bottom: .06em; overflow: hidden; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .foot-note { flex-direction: column; } }

/* ---------------------------------------------------------------- shared bits */
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.tok { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 700 10px var(--mono); letter-spacing: -.02em; flex: none; }
.up { color: var(--up); }
.down { color: var(--down); }
.masked { letter-spacing: .28em; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.js .rise { opacity: 0; transform: translateY(18px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
[hidden] { display: none !important; }

/* 3D object layer: section backgrounds below it, section content above it */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
main > section > *, .hero > * { position: relative; z-index: 2; }
.tok { overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
