:root {
  --bg: #000;
  --surface: #0a0f0e;
  --ink: #eefcf8;
  --mute: #8a9a97;
  --line: rgba(220, 220, 228, 0.16);
  --accent: #00ffc8;
  --blue: #3de6c5;
  --up: #00e8b8;
  --down: #ff4d6a;
  --safe: min(980px, calc(100% - 40px));
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 11px;
  --radius-btn: 8px;
  --metal-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(8, 10, 12, 0.88) 100%);
  --metal-edge: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(186, 186, 194, 0.22) 24%, rgba(255, 255, 255, 0.42) 48%, rgba(120, 120, 128, 0.18) 72%, rgba(255, 255, 255, 0.5) 100%);
  --pad: 28px;
  --page: 0;
  --hero-p: 0;
  --hero-y: 0;
  --scroll-dir: 1;
  --sy: 0;
  --sp: 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;
}
body.home h1,
body.home h2,
body.home h3,
.brand span,
.gate-card h2 {
  background-image: linear-gradient(
    165deg,
    #ffffff 0%,
    #ececf1 12%,
    #b4b4bc 32%,
    #ffffff 48%,
    #8a8a94 68%,
    #f7f7fa 86%,
    #c2c2ca 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.72));
  border-bottom: 1px solid rgba(220, 220, 228, 0.14);
}
.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: 22px; height: 22px; 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 transparent;
  border-radius: var(--radius-btn);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 11, 0.88)) padding-box,
    var(--metal-edge) border-box;
  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: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(8, 12, 11, 0.9)) padding-box,
    var(--metal-edge) border-box;
}
.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: var(--radius-btn);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 11, 0.88)) padding-box,
    var(--metal-edge) border-box;
  color: var(--ink);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.x-btn:hover { opacity: 0.9; color: #fff; }
.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: var(--accent);
  opacity: 0.55;
  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: var(--radius-btn);
  background: linear-gradient(180deg, #7affe0 0%, var(--accent) 42%, #00c9a3 100%);
  color: #02110c;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 8px 22px rgba(0, 255, 200, 0.16);
}
.action.ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 12, 11, 0.55)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.action.full { width: 100%; }
.action:hover { opacity: 0.82; }
.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.surface {
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(10, 14, 13, 0.96)) padding-box,
    var(--metal-edge) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.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;
  background: #020605;
}
.home-stage .hero {
  opacity: clamp(0, calc(1 - var(--hero-p) * 2.1), 1);
  will-change: opacity;
}
.home-stage .ticker {
  opacity: 1;
  transform: none;
}
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: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 8, 6, 0.92));
  border-bottom-color: rgba(220, 220, 228, 0.16);
}
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;
  background: #020605;
}

.hero-scene {
  position: absolute;
  inset: 0 0 -18% 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #020605;
  will-change: transform, opacity;
  transform: translate3d(0, calc(var(--hero-y) * -0.35px), 0) scale(calc(1 + var(--hero-p) * 0.06));
  opacity: 1;
}
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
  animation: none;
}
.hero-pulse {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 42% 48% at 8% 92%, rgba(0, 255, 200, 0.16), transparent 58%),
    radial-gradient(ellipse 38% 42% at 92% 8%, rgba(0, 255, 200, 0.14), transparent 56%);
  animation: glow-pulse 9s ease-in-out infinite;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.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 transparent;
  border-radius: var(--radius-btn);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(12, 12, 12, 0.5)) padding-box,
    var(--metal-edge) border-box;
  color: rgba(245, 245, 247, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  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: scale(1);
    opacity: 0.96;
  }
  50% {
    transform: scale(1.035);
    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 rgba(230, 230, 236, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  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, 48px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.from-up {
  transform: translate3d(0, -48px, 0);
}
.reveal.from-down {
  transform: translate3d(0, 48px, 0);
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0);
}
.term.reveal {
  transform: translate3d(0, 56px, 0) scale(0.96);
}
.term.reveal.from-up {
  transform: translate3d(0, -56px, 0) scale(0.96);
}
.term.reveal.from-down {
  transform: translate3d(0, 56px, 0) scale(0.96);
}
.term.reveal.in {
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0) scale(1);
}
.about-grid .term:nth-child(1) { transition-delay: 0.02s; }
.about-grid .term:nth-child(2) { transition-delay: 0.08s; }
.about-grid .term:nth-child(3) { transition-delay: 0.14s; }
.about-grid .term:nth-child(4) { transition-delay: 0.08s; }
.about-grid .term:nth-child(5) { transition-delay: 0.14s; }
.about-grid .term:nth-child(6) { transition-delay: 0.2s; }
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.1s; }
.d3 { transition-delay: 0.14s; }
.d4 { transition-delay: 0.18s; }

[data-scroll] {
  will-change: transform;
}
.reveal[data-scroll].in {
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0);
}
.term.reveal[data-scroll].in {
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0) scale(1);
}
.how-journey[data-scroll],
.foot-top[data-scroll] {
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0);
  transition: transform 0.35s linear;
}

.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: linear-gradient(180deg, #ffffff 0%, #d8d8e0 48%, #b8b8c0 100%);
  color: #111;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 28px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  animation: none;
}

.about {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #050908 0%, #030807 40%, #020605 100%);
  padding: 96px 0 64px;
  border-top: 1px solid rgba(230, 230, 236, 0.16);
  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 .lead {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 18px;
}
.about-head .action { margin-top: 20px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.term {
  display: flex;
  flex-direction: column;
  min-height: 268px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(10, 14, 13, 0.94) 38%, #080c0b 100%) padding-box,
    var(--metal-edge) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.28);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(220, 220, 228, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  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 transparent;
  border-radius: var(--radius-btn);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 12, 11, 0.9)) padding-box,
    var(--metal-edge) border-box;
  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 transparent;
  border-radius: var(--radius-btn);
  padding: 3px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 12, 11, 0.7)) padding-box,
    var(--metal-edge) border-box;
}

.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: linear-gradient(180deg, #040807 0%, #020605 100%);
  padding: 96px 0 88px;
  border-top: 1px solid rgba(230, 230, 236, 0.16);
  scroll-margin-top: 64px;
  overflow: hidden;
}
.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 transparent;
  border-radius: var(--radius-btn);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(10, 14, 13, 0.9)) padding-box,
    var(--metal-edge) border-box;
  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(0, 255, 200, 0.28);
  position: relative;
  overflow: hidden;
}
.how-journey i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  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% { filter: brightness(1); }
  40% { filter: brightness(1.18); }
}
@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, var(--accent) 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 transparent;
  background:
    linear-gradient(#0a0f0e, #0a0f0e) padding-box,
    var(--metal-edge) border-box;
  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(0, 255, 200, 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 transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 12, 11, 0.92)) padding-box,
    var(--metal-edge) border-box;
  padding: 14px;
  min-height: 126px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.how-w-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-btn);
  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: var(--radius-btn);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 11, 0.9)) padding-box,
    var(--metal-edge) border-box;
  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: linear-gradient(180deg, #5af0d0, var(--up)) padding-box, var(--metal-edge) border-box;
    color: #000;
    border-color: transparent;
  }
  50%, 94% {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 11, 0.9)) padding-box, var(--metal-edge) border-box;
    color: var(--mute);
    border-color: transparent;
  }
}
@keyframes how-short {
  0%, 44%, 100% {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 11, 0.9)) padding-box, var(--metal-edge) border-box;
    color: var(--mute);
    border-color: transparent;
  }
  50%, 94% {
    background: linear-gradient(180deg, #ff7a90, var(--down)) padding-box, var(--metal-edge) border-box;
    color: #fff;
    border-color: transparent;
  }
}
@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; }

.site-foot {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), #000 28%);
  border-top: 1px solid rgba(230, 230, 236, 0.16);
  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: #030807;
  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 rgba(230, 230, 236, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), #000 70%);
}
.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: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(160, 160, 168, 0.12), rgba(255, 255, 255, 0.16));
}
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(9, 13, 12, 0.98) 28%, #070b0a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  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;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.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 transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 12, 11, 0.7)) padding-box,
    var(--metal-edge) border-box;
  color: var(--mute);
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 12px;
}
.tf button.on, .mode button.on, .desk-tabs button.on, .chips button:hover {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(12, 16, 15, 0.85)) padding-box,
    var(--metal-edge) border-box;
}

.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: var(--radius-btn);
  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: var(--radius-btn);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(8, 12, 11, 0.88)) padding-box,
    var(--metal-edge) border-box;
  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:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(6, 10, 9, 0.94)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  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: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.82)) padding-box,
    var(--metal-edge) border-box;
  border: 1px solid transparent;
  color: var(--mute);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.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 transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(10, 14, 13, 0.96) 40%, #080c0b 100%) padding-box,
    var(--metal-edge) border-box;
  color: var(--ink);
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.45);
  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: var(--radius-btn);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(12, 14, 14, 0.92)) padding-box,
    var(--metal-edge) border-box;
  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: 6px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}
.wallets button:hover, .wallets button.busy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(12, 14, 14, 0.94)) padding-box,
    var(--metal-edge) border-box;
}
.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; overflow-x: hidden; }
  .app-nav {
    flex-wrap: wrap;
    height: auto;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    gap: 10px 12px;
  }
  .app-stats { display: none; }
  .app-account { margin-left: auto; }
  .app-pair { flex-wrap: wrap; gap: 6px 10px; }
  .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: 260px;
    padding: 14px;
  }
  .chart-panel h1 { font-size: 28px; }
  .ticket-panel, .desk-panel {
    grid-column: auto;
    grid-row: auto;
    padding: 14px;
  }
  .desk-panel { overflow-x: auto; }
  .ticket-lock {
    inset: auto 14px 14px;
  }
  .gate {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }
  .gate-card {
    width: min(420px, 100%);
    margin: auto 0;
  }
}

@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: 10px; height: 56px; }
  .x-btn { width: 34px; height: 34px; }
  body.home {
    overflow-x: hidden;
  }
  body.home .bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  body.home .brand { justify-self: start; }
  body.home .ca-chip { justify-self: center; }
  body.home .nav-cta {
    justify-self: end;
    gap: 6px;
  }
  .nav .action {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
  .ca-chip {
    height: 34px;
    gap: 6px;
    padding: 0 12px;
    font-size: 11px;
    min-width: 110px;
    max-width: 100%;
  }
  .brand span { font-size: 14px; }
  .about { padding: 64px 0 56px; }
  .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: 64px 0 56px; }
  .how-wrap { width: min(980px, calc(100% - 32px)); }
  .how-head { text-align: center; margin-left: auto; margin-right: auto; max-width: 34em; }
  .how-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .how-head .lead { margin-left: auto; margin-right: auto; font-size: 16px; }
  .how-journey {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    row-gap: 0;
  }
  .how-journey i { width: 10px; flex: 0 0 10px; }
  .how-chip {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-steps::before, .how-steps::after { display: none; }
  .how-step { text-align: center; }
  .how-step > p { min-height: 0; font-size: 15px; }
  .how-num { margin-left: auto; margin-right: auto; }
  .how-demo { min-height: 112px; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .term { min-height: 220px; }
  .term-px strong { font-size: 24px; }
  .candles { height: 96px; }

  body.home .nav .wrap {
    width: 100%;
    max-width: none;
    padding: 0 14px;
    padding-top: env(safe-area-inset-top);
  }
  body.home .hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(92px + env(safe-area-inset-top)) 20px calc(86px + env(safe-area-inset-bottom));
  }
  body.home .hero h1 {
    white-space: normal;
    font-size: clamp(42px, 12vw, 58px);
    width: 100%;
  }
  body.home .hero .label { font-size: 13px; margin-bottom: 8px; width: 100%; }
  body.home .hero .lead {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    max-width: 28ch;
    margin-top: 12px;
  }
  body.home .actions {
    justify-content: center;
    margin-top: 22px;
    width: 100%;
    gap: 10px;
  }
  body.home .hero .action {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
  .about-head .action { margin-left: auto; margin-right: auto; }
  .gate-card { padding: 28px 18px 18px; width: min(420px, 100%); }
  .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-scene {
    inset: 0;
    transform: none;
  }
  .hero-glow {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    animation: none;
    opacity: 1;
  }
  .hero-pulse {
    opacity: 0.28;
    background:
      radial-gradient(ellipse 70% 46% at 0% 100%, rgba(0, 255, 200, 0.16), transparent 62%),
      radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 255, 200, 0.12), transparent 60%);
  }
  body.home .hero-veil {
    background: rgba(0, 0, 0, 0.7);
  }
  .hero-trades {
    display: block;
    transform: none;
    opacity: 0.9;
  }
  .trade-float {
    font-size: 10px;
    padding: 5px 8px;
    max-width: min(46vw, 160px);
    opacity: 0.3;
  }
  .trade-float.f1 { left: 4%; right: auto; top: 28%; }
  .trade-float.f2 { left: auto; right: 4%; top: 34%; }
  .trade-float.f3 { left: 5%; right: auto; top: 70%; }
  .trade-float.f4 { left: auto; right: 5%; top: 66%; }
  .trade-float.f5,
  .trade-float.f6,
  .trade-float.f8 { display: none; }
  .trade-float.f7 { left: 8%; right: auto; top: 42%; }
  .trade-float.f9 { left: auto; right: 8%; top: 48%; }

  .reveal,
  .reveal.from-up,
  .reveal.from-down {
    transform: translate3d(0, 28px, 0);
  }
  .reveal.in,
  .term.reveal.in,
  .reveal[data-scroll].in,
  .term.reveal[data-scroll].in {
    transform: none;
  }
  [data-scroll] { transform: none !important; }
  .how-journey[data-scroll],
  .foot-top[data-scroll] { transform: none !important; transition: none; }
}

@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: inline; }
  .ca-chip {
    padding: 0 14px;
    min-width: 118px;
    height: 34px;
    gap: 8px;
    justify-content: center;
  }
  body.home .nav-cta .x-btn { display: none; }
  body.home .actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.home .hero .action {
    width: 100%;
  }
  .how-journey {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .how-journey i {
    display: block;
    flex: 0 0 8px;
    width: 8px;
  }
  .how-chip {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 7px;
    font-size: 10px;
    white-space: nowrap;
  }
  .foot-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .foot-cta .action { width: 100%; }
}

@media (max-width: 420px) {
  .trade-float.f7,
  .trade-float.f9 { display: none; }
  body.home .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .nav .action { padding: 0 10px; }
}

@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,
  .reveal.from-up,
  .reveal.from-down,
  .reveal.in,
  .term.reveal,
  .term.reveal.in {
    opacity: 1;
    transform: none;
  }
  [data-scroll] { transform: none !important; }
  .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; }
}
