:root {
  --bg: #000;
  --surface: #141414;
  --ink: #f5f5f7;
  --mute: #86868b;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #2997ff;
  --up: #30d158;
  --down: #ff453a;
  --safe: min(980px, calc(100% - 40px));
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 22px;
  --pad: 28px;
  --page: 0;
  --hero-p: 0;
  --hero-y: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0;
}

.wrap { width: var(--safe); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.brand img { width: 18px; height: 18px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  font-size: 13px;
  color: var(--mute);
}
.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
body.home .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}
body.home .brand { justify-self: start; }
body.home .nav-cta {
  justify-self: end;
  margin-left: 0;
}
.ca-chip {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mute);
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.ca-chip .ca-k {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ca-chip .ca-v { font-weight: 500; }
.ca-icon { flex-shrink: 0; opacity: 0.78; }
.ca-chip:hover,
.ca-chip.copied {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 980px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.x-btn:hover { opacity: 0.82; border-color: var(--ink); }
.menu { display: none; background: none; border: 0; color: var(--ink); }

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 1.5px;
  width: 100%;
  transform: scaleX(var(--page));
  transform-origin: left center;
  background: #f3ead4;
  opacity: 0.45;
  pointer-events: none;
}

.label {
  margin: 0 0 8px;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}
.lead, .copy {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: 17px;
}
.head {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 520px;
}
.head .lead { max-width: 36ch; margin-left: auto; margin-right: auto; }

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 980px;
  background: var(--ink);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.action.ghost {
  background: transparent;
  color: var(--ink);
}
.action.full { width: 100%; }
.action:hover { opacity: 0.82; }
.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.surface.pad { padding: var(--pad); }

.hero {
  padding: 120px 0 64px;
  text-align: center;
}
.hero-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  object-fit: contain;
}
.hero h1 { font-size: clamp(48px, 7vw, 68px); }
.hero .lead { max-width: 36ch; margin-left: auto; margin-right: auto; }

body.home {
  min-height: 100svh;
  overflow-x: hidden;
}
.home-stage {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}
.home-stage .hero {
  opacity: clamp(0, calc(1 - var(--hero-p) * 2.1), 1);
  will-change: opacity;
}
.home-stage .ticker {
  opacity: clamp(0, calc(1 - var(--hero-p) * 1.55), 1);
  transform: translate3d(0, calc(var(--hero-p) * 24px), 0);
}
body.home .nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
body.home .nav.solid {
  background: #000;
  border-bottom-color: var(--line);
}
body.home .hero.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.home .hero {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 10vw 64px 50vw;
}
body.home .hero h1 {
  white-space: nowrap;
  font-size: clamp(64px, 8.4vw, 96px);
}
body.home .hero .label {
  font-size: 16px;
  margin-bottom: 12px;
}
body.home .hero .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 34ch;
  font-size: 22px;
  margin-top: 16px;
}
body.home .actions {
  justify-content: flex-start;
  margin-top: 30px;
  gap: 12px;
}
body.home .hero .action {
  min-height: 50px;
  padding: 0 24px;
  font-size: 16px;
}
body.home .ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  border: 0;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #070605;
  will-change: transform, opacity;
  transform: translate3d(0, calc(var(--hero-y) * 1px), 0) scale(calc(1 + var(--hero-p) * 0.08));
  opacity: clamp(0.2, calc(1 - var(--hero-p) * 0.65), 1);
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: 18% 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: glow-breathe 16s ease-in-out infinite;
}
.hero-pulse {
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse 38% 42% at 26% 48%, rgba(252, 242, 220, 0.14), transparent 56%);
  animation: glow-pulse 9s ease-in-out infinite;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.08) 100%),
    radial-gradient(ellipse 80% 90% at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-trades {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(0, calc(var(--hero-p) * -48px), 0);
  opacity: clamp(0, calc(1 - var(--hero-p) * 1.3), 1);
}
.trade-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  background: rgba(12, 12, 12, 0.42);
  color: rgba(245, 245, 247, 0.72);
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.48;
  will-change: transform, opacity;
  animation: trade-drift 22s ease-in-out infinite;
  animation-fill-mode: both;
}
.trade-float em { font-style: normal; font-weight: 500; }
.trade-float.f1 { left: 18%; top: 62%; animation-duration: 24s; animation-delay: -8s; }
.trade-float.f2 { left: 8%; top: 28%; animation-duration: 26s; animation-delay: -16s; }
.trade-float.f3 { left: 32%; top: 74%; animation-duration: 21s; animation-delay: -5s; }
.trade-float.f4 { left: 22%; top: 18%; animation-duration: 28s; animation-delay: -12s; }
.trade-float.f5 { left: 6%; top: 78%; animation-duration: 23s; animation-delay: -19s; }
.trade-float.f6 { left: 38%; top: 36%; animation-duration: 25s; animation-delay: -3s; }
.trade-float.f7 { left: 14%; top: 48%; animation-duration: 27s; animation-delay: -11s; }
.trade-float.f8 { left: 28%; top: 86%; animation-duration: 22s; animation-delay: -7s; }
.trade-float.f9 { left: 4%; top: 40%; animation-duration: 29s; animation-delay: -21s; }

@keyframes trade-drift {
  0%, 100% {
    opacity: 0.36;
    transform: translate3d(0, 10px, 0);
  }
  18% { opacity: 0.55; }
  50% {
    opacity: 0.44;
    transform: translate3d(10px, -28px, 0);
  }
  82% { opacity: 0.32; }
}

@keyframes glow-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-48.5%, -51.5%) scale(1.045);
    opacity: 1;
  }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

.ticker {
  overflow: hidden;
  margin-top: 48px;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 14px 0;
  will-change: transform;
  animation: marquee 56s linear infinite;
}
.tick { color: var(--mute); font-size: 13px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.term.reveal {
  transform: translate3d(0, 56px, 0) scale(0.96);
}
.term.reveal.in { transform: none; }
.about-grid .term:nth-child(1).in { transition-delay: 0.02s; }
.about-grid .term:nth-child(2).in { transition-delay: 0.08s; }
.about-grid .term:nth-child(3).in { transition-delay: 0.14s; }
.about-grid .term:nth-child(4).in { transition-delay: 0.08s; }
.about-grid .term:nth-child(5).in { transition-delay: 0.14s; }
.about-grid .term:nth-child(6).in { transition-delay: 0.2s; }
.d1.in { transition-delay: 0.06s; }
.d2.in { transition-delay: 0.1s; }
.d3.in { transition-delay: 0.14s; }
.d4.in { transition-delay: 0.18s; }

.block { padding: 72px 0 0; }
.block h2, .closer h2 { font-size: clamp(32px, 5vw, 44px); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid h3 { font-size: 21px; margin-top: 18px; }
.grid .copy { min-height: 4.4em; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
}
tr:hover td { background: rgba(255,255,255,.03); }
tr:last-child td { border-bottom: 0; }
.mkt { font-weight: 500; }
.dot { display: none; }
.up { color: var(--up); }
.down { color: var(--down); }
.linkish { color: var(--blue); }

.closer { text-align: center; padding: 56px 28px; }
.closer .lead { max-width: 36ch; margin-left: auto; margin-right: auto; }

.foot {
  padding: 48px 0 64px;
  color: var(--mute);
  font-size: 13px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--ink);
  color: #000;
  padding: 10px 16px;
  border-radius: 980px;
  font-size: 13px;
  animation: none;
}

.about {
  position: relative;
  z-index: 2;
  background: #050505;
  padding: 96px 0 64px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.about-wrap { width: min(1120px, calc(100% - 48px)); }
.about-head {
  max-width: 34em;
  margin: 0 0 36px;
}
.about-head h2 {
  font-size: clamp(36px, 5vw, 52px);
  margin-top: 8px;
}
.about-head .action { margin-top: 20px; }
.about-head .lead {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 18px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.term {
  display: flex;
  flex-direction: column;
  min-height: 268px;
  min-width: 0;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #101010;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.term-dots { display: flex; gap: 5px; }
.term-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 239, 218, 0.22);
}
.term-title {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
  text-transform: lowercase;
}
.term-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mute);
}
.term-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55);
  animation: live-pip 1.8s ease-out infinite;
}
.term-body { flex: 1; min-height: 0; padding: 8px 0 10px; }
.stream {
  height: 210px;
  overflow: hidden;
  mask-image: linear-gradient(#000 0%, #000 78%, transparent);
}
.stream-track { will-change: transform; }
.stream-track p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  font-size: 12px;
  color: var(--mute);
}
.stream-track em { flex: 0 0 46px; }
.stream-track b { flex: 1; min-width: 0; }
.stream-track small { margin-left: auto; }
.stream-track b { color: var(--ink); font-weight: 500; }
.stream-track span { font-variant-numeric: tabular-nums; color: var(--ink); }
.stream-track small { color: var(--mute); font-variant-numeric: tabular-nums; }
.s-slow { animation: stream-up 32s linear infinite; }
.s-mid { animation: stream-up 26s linear infinite; }
@keyframes stream-up { to { transform: translateY(-50%); } }
@keyframes live-pip {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
}

.pump-body { padding: 8px 14px 12px; }
.pump-search {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 980px;
  color: var(--mute);
  font-size: 12px;
}
.caret {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 4px;
  background: var(--ink);
  vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.pump-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pump-row:last-child { border-bottom: 0; }
.pump-row b { color: var(--ink); font-weight: 500; }
.pump-row .live-px { justify-self: end; font-variant-numeric: tabular-nums; }
.pump-row em { grid-column: 3; justify-self: end; font-style: normal; font-size: 11px; }
.pump-row small { grid-column: 1 / 3; color: var(--mute); font-size: 11px; }

.chart-body { padding: 12px 16px 14px; display: flex; flex-direction: column; }
.term-px { display: flex; align-items: baseline; gap: 10px; }
.term-px strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.term-px em { font-style: normal; font-size: 13px; }
.candles {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 118px;
  margin: 16px 0 12px;
}
.candles i {
  flex: 1;
  display: block;
  height: var(--h);
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: candle 3.6s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.12s);
}
.candles i.up { color: var(--up); opacity: 0.85; }
.candles i.down { color: var(--down); opacity: 0.85; }
@keyframes candle {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.72); }
}
.term-meta {
  display: flex;
  gap: 8px;
  color: var(--mute);
  font-size: 11px;
}
.term-meta span {
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 3px 8px;
}

.pos-body { padding: 4px 8px 8px; }
.pos-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pos-row:last-child { border-bottom: 0; }
.pos-row b { font-weight: 500; }
.pos-row em { font-style: normal; }
.pos-row span { color: var(--mute); }
.pos-pnl {
  font-variant-numeric: tabular-nums;
  animation: pnl-tick 4.5s ease-in-out infinite;
}
@keyframes pnl-tick {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

.book-body { padding: 10px 14px 12px; }
.mini-book { font-size: 12px; font-variant-numeric: tabular-nums; }
.ob {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px 8px;
  z-index: 0;
}
.ob::before {
  content: "";
  position: absolute;
  inset: 2px 0;
  width: var(--w);
  z-index: -1;
  opacity: 0.2;
  animation: book-w 5s ease-in-out infinite;
}
.ob.ask { color: var(--down); }
.ob.ask::before { background: var(--down); margin-left: auto; }
.ob.bid { color: var(--up); }
.ob.bid::before { background: var(--up); }
.ob span:last-child { justify-self: end; color: var(--ink); }
.ob-spread {
  text-align: center;
  padding: 8px 0;
  color: var(--mute);
  font-size: 11px;
}
@keyframes book-w {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.82); }
}
.ob.ask::before { transform-origin: right; }
.ob.bid::before { transform-origin: left; }

.how {
  position: relative;
  z-index: 2;
  background: #070707;
  padding: 96px 0 88px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
  overflow: hidden;
  transform: translate3d(0, calc((1 - var(--hero-p)) * 36px), 0);
  will-change: transform;
}
.how-wrap { width: min(1120px, calc(100% - 48px)); }
.how-head {
  max-width: 36em;
  margin: 0 0 40px;
}
.how-head h2 {
  font-size: clamp(36px, 5vw, 52px);
  margin-top: 8px;
}
.how-head .lead {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 18px;
}

.how-journey {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 36px;
}
.how-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: #101010;
  font-size: 12px;
  color: var(--ink);
  animation: how-chip 4.8s ease-in-out infinite;
}
.how-chip:nth-child(1) { animation-delay: 0s; }
.how-chip:nth-child(3) { animation-delay: 1.1s; }
.how-chip:nth-child(5) { animation-delay: 2.2s; }
.how-chip:nth-child(7) { animation-delay: 3.3s; }
.how-journey i {
  width: 18px;
  height: 1px;
  background: rgba(243, 234, 212, 0.28);
  position: relative;
  overflow: hidden;
}
.how-journey i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f3ead4;
  transform: translateX(-100%);
  animation: how-beam 2.4s ease-in-out infinite;
}
.how-journey i:nth-child(2)::after { animation-delay: 0.2s; }
.how-journey i:nth-child(4)::after { animation-delay: 1.3s; }
.how-journey i:nth-child(6)::after { animation-delay: 2.4s; }
@keyframes how-chip {
  0%, 100% { border-color: var(--line); }
  40% { border-color: rgba(243, 234, 212, 0.45); }
}
@keyframes how-beam {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.how-steps::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f3ead4 18%, var(--up) 52%, var(--down) 82%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 0;
}
.how-head.in ~ .how-steps::after {
  animation: how-draw 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes how-draw { to { transform: scaleX(1); } }

.how-step {
  position: relative;
  z-index: 1;
  padding: 0 4px 8px;
}
.how-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070707;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
}
.how-num::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(243, 234, 212, 0.55);
  animation: how-spin 3.6s linear infinite;
}
@keyframes how-spin { to { transform: rotate(360deg); } }
.how-step h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.how-step > p {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 15px;
  min-height: 4.6em;
}
.how-demo {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c0c;
  padding: 14px;
  min-height: 126px;
}

.how-w-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--mute);
}
.how-w-row b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.how-w-row.on {
  color: var(--ink);
  background: rgba(48, 209, 88, 0.08);
  animation: how-on 3.2s ease-in-out infinite;
}
.how-w-row.on b { background: var(--up); box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12); }
.how-w-row small { margin-left: auto; color: var(--up); font-size: 11px; }
@keyframes how-on {
  0%, 100% { background: rgba(48, 209, 88, 0.06); }
  50% { background: rgba(48, 209, 88, 0.14); }
}

.how-mints {
  display: grid;
  gap: 0;
  overflow: hidden;
  height: 98px;
  position: relative;
}
.how-mints span {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateY(calc(-50% + 12px));
  animation: how-mint 12s ease-in-out infinite;
}
.how-mints span:nth-child(1) { animation-delay: 0s; }
.how-mints span:nth-child(2) { animation-delay: 2s; }
.how-mints span:nth-child(3) { animation-delay: 4s; }
.how-mints span:nth-child(4) { animation-delay: 6s; }
.how-mints span:nth-child(5) { animation-delay: 8s; }
.how-mints span:nth-child(6) { animation-delay: 10s; }
@keyframes how-mint {
  0%, 6% { opacity: 0; transform: translateY(calc(-50% + 12px)); }
  10%, 16% { opacity: 1; transform: translateY(-50%); }
  22%, 100% { opacity: 0; transform: translateY(calc(-50% - 16px)); }
}

.how-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how-side {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 980px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.how-side.long {
  animation: how-long 3.6s ease-in-out infinite;
}
.how-side.short {
  animation: how-short 3.6s ease-in-out infinite;
}
.how-lev {
  grid-column: 1 / -1;
  margin-top: 4px;
  text-align: center;
  color: var(--mute);
  font-size: 12px;
}
.how-lev b::after {
  content: "25×";
  color: var(--ink);
  font-weight: 600;
  animation: how-lev-txt 3.6s steps(1) infinite;
}
@keyframes how-long {
  0%, 44%, 100% { background: var(--up); color: #000; border-color: var(--up); }
  50%, 94% { background: transparent; color: var(--mute); border-color: var(--line); }
}
@keyframes how-short {
  0%, 44%, 100% { background: transparent; color: var(--mute); border-color: var(--line); }
  50%, 94% { background: var(--down); color: #fff; border-color: var(--down); }
}
@keyframes how-lev-txt {
  0%, 44% { content: "25×"; }
  50%, 100% { content: "40×"; }
}

.how-pnl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 98px;
}
.how-pnl span { color: var(--mute); font-size: 12px; }
.how-pnl strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  animation: pnl-tick 2.4s ease-in-out infinite;
}
.how-pnl small { color: var(--mute); font-size: 12px; }

.tokenomics {
  position: relative;
  z-index: 2;
  background: #050505;
  padding: 96px 0 88px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.tok-wrap { width: min(1120px, calc(100% - 48px)); }
.tok-head { margin: 0 0 36px; }
.tok-head h2 {
  font-size: clamp(36px, 5vw, 52px);
  margin-top: 8px;
}
.tok-ticker {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #f3ead4;
}
.tok-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tok-stat {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0c0c0c;
  min-width: 0;
}
.tok-stat span {
  display: block;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.tok-stat strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.tok-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tok-actions .action small {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}
.tok-actions .copy-ca.copied {
  border-color: var(--ink);
  opacity: 1;
}

.site-foot {
  position: relative;
  z-index: 2;
  background: #000;
  border-top: 1px solid var(--line);
  padding: 72px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--mute);
  font-size: 14px;
}
.foot-inner { width: min(1120px, calc(100% - 48px)); }
.foot-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.4fr);
  gap: 48px 72px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot-brand .brand {
  display: inline-flex;
  color: var(--ink);
  font-size: 22px;
  gap: 10px;
}
.foot-brand .brand img { width: 28px; height: 28px; }
.foot-brand p {
  margin: 14px 0 0;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.5;
}
.foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-cols .label {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-cols a,
.foot-cols button {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.foot-cols a:hover,
.foot-cols button:hover { color: var(--ink); }
.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 13px;
}
.foot-bar p { margin: 0; }

body.app {
  height: 100dvh;
  overflow: hidden;
  background: #050505;
  font-size: 14px;
}
.app-veil {
  display: none;
}
body.app:not(.is-connected) .app-veil {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}
body.app:not(.is-connected) .app-stage {
  filter: blur(22px);
  transform: scale(1.03);
  pointer-events: none;
  user-select: none;
}
.app-nav {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #000;
}
.app-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.app-pair strong { font-size: 14px; }
.app-pair b { font-size: 15px; font-weight: 600; }
.app-stats {
  display: flex;
  gap: 18px;
  margin: 0;
  flex: 1;
  color: var(--mute);
  font-size: 11px;
}
.app-stats dt { font-weight: 500; }
.app-stats dd { margin: 2px 0 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.app-account { display: flex; align-items: center; gap: 14px; }
.app-account .bal { text-align: right; }
.app-account .bal .label { margin: 0; font-size: 11px; }
.app-account .bal strong { font-size: 13px; font-variant-numeric: tabular-nums; }

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px 300px;
  grid-template-rows: minmax(0, 1fr) 210px;
  height: calc(100dvh - 56px);
  gap: 1px;
  background: var(--line);
}
.panel {
  background: #0c0c0c;
  padding: 16px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.markets { grid-column: 1; grid-row: 1 / -1; }
.chart-panel { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; }
.book-panel { grid-column: 3; grid-row: 1; }
.ticket-panel { grid-column: 4; grid-row: 1 / -1; position: relative; }
.desk-panel { grid-column: 2 / 4; grid-row: 2; }

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
.chart-panel h1 {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.chart-panel canvas {
  width: 100%;
  flex: 1;
  min-height: 180px;
  height: auto;
}
.tf { display: flex; gap: 6px; }
.tf button, .mode button, .chips button, .desk-tabs button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  border-radius: 980px;
  cursor: pointer;
  font-size: 12px;
}
.tf button.on, .mode button.on, .desk-tabs button.on, .chips button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.mkt-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 10px 8px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.mkt-row span { font-size: 13px; font-weight: 500; }
.mkt-row b { font-size: 12px; font-variant-numeric: tabular-nums; justify-self: end; }
.mkt-row em { font-style: normal; font-size: 11px; grid-column: 2; justify-self: end; }
.mkt-row.on, .mkt-row:hover { background: rgba(255,255,255,.05); }

.book-cols, .book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.book-cols { color: var(--mute); margin: 10px 0 6px; }
.book-row {
  position: relative;
  padding: 4px 0;
  z-index: 0;
}
.book-row::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  width: var(--w, 0);
  z-index: -1;
  opacity: 0.18;
}
.book-row.ask::before { background: var(--down); margin-left: auto; }
.book-row.bid::before { background: var(--up); }
.asks .px { color: var(--down); }
.bids .px { color: var(--up); }
.spread { text-align: center; padding: 8px 0; color: var(--mute); font-size: 12px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.tabs button {
  min-height: 38px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.tabs button.on.buy { background: var(--up); color: #000; border-color: var(--up); }
.tabs button.on.sell, .ticket-panel.short .tabs button.on {
  background: var(--down);
  color: #fff;
  border-color: var(--down);
}
.mode { display: flex; gap: 6px; margin-bottom: 12px; }
.field { display: block; margin: 12px 0 8px; color: var(--mute); font-size: 12px; }
.field span { float: right; color: var(--ink); }
.ticket-panel input[type="number"], .ticket-panel input[type="range"] { width: 100%; margin-top: 8px; }
.ticket-panel input[type="number"] {
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ticket-panel .copy { font-size: 13px; }
.ticket-panel .action.full { margin-top: 16px; }
body.app.is-connected .ticket-panel:not(.short) #submit {
  background: var(--up);
  border-color: var(--up);
  color: #000;
}
body.app.is-connected .ticket-panel.short #submit {
  background: var(--down);
  border-color: var(--down);
  color: #fff;
}

.ticket-lock {
  position: absolute;
  inset: auto 16px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.72);
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
}
.ticket-lock p { margin: 0; }

.desk-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.empty, .muted { color: var(--mute); text-align: center; padding: 28px 8px; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--blue);
}

.gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}
body.app:not(.is-connected) .gate { display: flex; }
.gate-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0c0c0c;
  color: var(--ink);
  padding: 32px 28px 24px;
  text-align: center;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.gate-card > img { margin: 0 auto 18px; }
.gate-card h2 { font-size: 26px; }
.gate-card p { color: var(--mute); margin: 8px 0 22px; }
.wallets { display: grid; gap: 8px; text-align: left; }
.wallets button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #111;
  cursor: pointer;
}
.wallets button span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wallets button strong { font-size: 14px; font-weight: 500; }
.wallet-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}
.wallets button:hover, .wallets button.busy { border-color: var(--ink); }
.wallets small { color: var(--mute); font-size: 12px; }
.gate .action { width: 100%; margin-top: 14px; }

@media (max-width: 1100px) {
  body.app { height: auto; overflow: auto; }
  .app-nav {
    flex-wrap: wrap;
    height: auto;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    gap: 10px 16px;
  }
  .app-stats { display: none; }
  .app-account { margin-left: auto; }
  .app-shell {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .markets {
    display: block;
    overflow-x: auto;
    padding: 12px 14px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .markets .label { margin: 0 0 8px; }
  .markets #market-list {
    display: flex;
    gap: 6px;
  }
  .markets .mkt-row {
    min-width: 132px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.04);
  }
  .book-panel { display: none; }
  .chart-panel { min-height: 280px; }
  .ticket-panel, .desk-panel { grid-column: auto; grid-row: auto; }
  .desk-panel { overflow-x: auto; }
  .gate {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: none; }
  .grid { grid-template-columns: 1fr; }
  .wrap { width: min(980px, calc(100% - 32px)); }
  .bar { gap: 12px; height: 56px; }
  .x-btn { width: 36px; height: 36px; }
  .about { padding: 72px 0 64px; }
  .about-wrap { width: min(980px, calc(100% - 32px)); }
  .about-head { text-align: center; margin-left: auto; margin-right: auto; }
  .about-head .lead { margin-left: auto; margin-right: auto; }
  .foot-inner { width: min(980px, calc(100% - 32px)); }
  .foot-top { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .foot-brand p { margin-left: auto; margin-right: auto; }
  .foot-cta { justify-content: center; }
  .foot-cols { justify-items: center; text-align: center; }
  .foot-cols a,
  .foot-cols button { text-align: center; }
  .foot-bar { flex-direction: column; align-items: center; text-align: center; }
  .how { padding: 72px 0 64px; }
  .how-wrap { width: min(980px, calc(100% - 32px)); }
  .how-head { text-align: center; margin-left: auto; margin-right: auto; }
  .how-head .lead { margin-left: auto; margin-right: auto; }
  .how-journey { justify-content: center; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before, .how-steps::after { display: none; }
  .how-step { text-align: center; }
  .how-step > p { min-height: 0; }
  .how-num { margin-left: auto; margin-right: auto; }
  .tokenomics { padding: 72px 0 64px; }
  .tok-wrap { width: min(980px, calc(100% - 32px)); }
  .tok-head { text-align: center; }
  .tok-stats { grid-template-columns: 1fr 1fr; }
  .tok-stat:last-child { grid-column: 1 / -1; }
  .tok-stat strong { font-size: 22px; }
  .tok-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .term { min-height: 240px; }
  .nav .action {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
  .ca-chip {
    height: 32px;
    gap: 6px;
    padding: 0 10px 0 12px;
    font-size: 11px;
  }

  body.home .nav .wrap {
    width: 100%;
    max-width: none;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
  }
  body.home .hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(88px + env(safe-area-inset-top)) 22px calc(78px + env(safe-area-inset-bottom));
  }
  body.home .hero h1 {
    white-space: normal;
    font-size: clamp(44px, 13vw, 64px);
  }
  body.home .hero .label { font-size: 13px; margin-bottom: 8px; width: 100%; }
  body.home .hero h1 { width: 100%; }
  body.home .hero .lead {
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
    max-width: 28ch;
    margin-top: 12px;
  }
  body.home .actions { justify-content: center; margin-top: 22px; width: 100%; }
  body.home .hero .action {
    min-height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }
  .about-head .action { margin-left: auto; margin-right: auto; }
  .gate-card { padding: 28px 18px 18px; }
  .gate-card h2 { font-size: 22px; }
  .gate-card p { font-size: 14px; margin-bottom: 18px; }
  body.home .ticker {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ticker-track { padding: 12px 0; gap: 28px; }
  .tick { font-size: 12px; }

  .hero-glow {
    width: 210%;
    height: 160%;
    top: 46%;
    left: 50%;
    object-position: 24% 48%;
    animation: none;
    opacity: 0.34;
  }
  .hero-pulse {
    opacity: 0.22;
    background: radial-gradient(ellipse 110% 70% at 50% 42%, rgba(252, 242, 220, 0.1), transparent 64%);
  }
  body.home .hero-veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.64) 38%, rgba(0, 0, 0, 0.82) 100%);
  }
  .hero-trades { display: block; }
  .trade-float {
    font-size: 11px;
    padding: 6px 10px;
    max-width: calc(100vw - 24px);
    opacity: 0.34;
  }
  .trade-float.f1 { left: 4%; right: auto; top: 26%; }
  .trade-float.f2 { left: auto; right: 4%; top: 32%; }
  .trade-float.f3 { left: 4%; right: auto; top: 68%; }
  .trade-float.f4 { left: auto; right: 4%; top: 64%; }
  .trade-float.f5 { left: 6%; right: auto; top: 80%; }
  .trade-float.f6 { left: auto; right: 6%; top: 76%; }
  .trade-float.f7 { left: 8%; right: auto; top: 36%; }
  .trade-float.f8 { left: auto; right: 12%; top: 84%; }
  .trade-float.f9 { left: auto; right: 10%; top: 24%; }
}

@media (min-width: 700px) and (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) and (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .foot-brand .brand span { display: inline; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .ca-chip .ca-v { display: none; }
  .ca-chip { padding: 0 10px; }
}

@media (max-width: 420px) {
  .trade-float.f8 { display: none; }
}

@media (max-width: 900px) and (max-height: 520px) {
  body.home .hero {
    justify-content: center;
    padding: calc(56px + env(safe-area-inset-top)) 20px calc(52px + env(safe-area-inset-bottom));
  }
  body.home .hero h1 { font-size: clamp(32px, 8vw, 44px); }
  body.home .hero .lead { font-size: 15px; margin-top: 8px; }
  body.home .actions { margin-top: 14px; }
  body.home .hero .action { min-height: 40px; font-size: 14px; }
  .trade-float { font-size: 10px; padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-line, .home-stage .hero, .home-stage .ticker, .hero-scene, .hero-trades, .about {
    transform: none !important;
    opacity: 1 !important;
  }
  body.app:not(.is-connected) .app-stage {
    filter: none;
    transform: none;
  }
  .trade-float { animation: none !important; opacity: 0.28; }
}
