:root {
  --bg: #07060b;
  --bg-2: #0e0c16;
  --ink: #f4f1ff;
  --muted: #9a93b5;
  --dim: #5f5878;
  --purple: #836ef9;
  --purple-2: #b3a6ff;
  --lemon: #ffe14d;
  --lemon-2: #ffc81a;
  --up: #3ee08f;
  --down: #ff5c7a;
  --glass: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --radius: 20px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.zest {
  background: linear-gradient(100deg, var(--lemon) 10%, var(--lemon-2) 50%, var(--purple-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.up { color: var(--up); }
.down { color: var(--down); }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ── background ─────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -50% -50% 0;
  background-image:
    linear-gradient(rgba(131, 110, 249, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 110, 249, .09) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(62deg) translateY(30%);
  mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  animation: grid 18s linear infinite;
}
@keyframes grid { to { background-position: 0 64px, 0 0; } }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; }
.g1 { width: 720px; height: 720px; background: #4b33d6; top: -260px; left: -180px; }
.g2 { width: 620px; height: 620px; background: #b98a00; top: 120px; right: -260px; opacity: .28; }
.bg-noise {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── glass ─────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 6, 11, .6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.chain-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px;
  font-size: 12.5px; background: rgba(131, 110, 249, .08);
}
.chain-label { color: var(--purple-2); font-weight: 600; }
.dot, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.chain-pill.on .dot, .live-dot { background: var(--up); box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }

/* ── hero ──────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: 1280px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) clamp(16px, 4vw, 48px) 72px;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-2); }
.title { font-family: var(--display); font-weight: 900; line-height: .88; letter-spacing: -.02em; font-size: clamp(56px, 9.5vw, 140px); margin: 18px 0 26px; }
.title-line { display: block; }
.title .zest { filter: drop-shadow(0 0 40px rgba(255, 210, 31, .25)); }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; max-width: 34ch; }
.lead strong { color: var(--lemon); font-weight: 600; }
.sub { color: var(--muted); max-width: 46ch; margin-top: 12px; }

.price-card { display: flex; align-items: center; gap: 28px; padding: 18px 22px; margin-top: 30px; max-width: 520px; }
.price { font-size: 30px; font-weight: 600; margin-top: 2px; }
.price sub { font-size: .55em; vertical-align: -0.15em; color: var(--muted); }
.price-side { display: flex; flex-direction: column; gap: 2px; padding-left: 24px; border-left: 1px solid var(--line); }
.strong { font-weight: 600; font-size: 17px; }
.chg { font-family: var(--mono); font-weight: 600; font-size: 17px; }
.flash-up { animation: fu 1s; }
.flash-down { animation: fd 1s; }
@keyframes fu { 0% { color: var(--up); text-shadow: 0 0 18px var(--up); } }
@keyframes fd { 0% { color: var(--down); text-shadow: 0 0 18px var(--down); } }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: 15.5px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #1a1400;
  background: linear-gradient(135deg, var(--lemon), var(--lemon-2));
  box-shadow: 0 10px 40px -10px rgba(255, 200, 26, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(255, 200, 26, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn.soon { cursor: default; pointer-events: none; opacity: .9; }
.ticker[hidden], .copy[hidden] { display: none; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--purple); background: rgba(131, 110, 249, .1); }
.arrow { font-size: 1.1em; }

.ca { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px 10px 16px; max-width: 520px; width: 100%; border-radius: 14px; text-align: left; transition: border-color .2s; }
.ca:hover { border-color: var(--purple); }
.ca-text { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 9px; background: rgba(131, 110, 249, .18); color: var(--purple-2); }
.ca.copied .copy { background: rgba(62, 224, 143, .18); color: var(--up); }

.hero > * { min-width: 0; }
.hero-art { position: relative; display: grid; place-items: center; }
.frame {
  position: relative; width: min(100%, 520px); aspect-ratio: 1; border-radius: 28px;
  transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
}
.frame-border {
  position: absolute; inset: -2px; border-radius: 30px; padding: 2px;
  background: conic-gradient(from var(--a, 0deg), var(--purple), var(--lemon), #fff6, var(--purple), var(--lemon-2), var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.frame::before {
  content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 31, .35), rgba(131, 110, 249, .25) 45%, transparent 70%);
  filter: blur(30px);
}
.frame picture, .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.scan {
  position: absolute; inset: 0; border-radius: 28px; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(179, 166, 255, .14), transparent);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { from { top: -30%; } to { top: 100%; } }
.frame-tag {
  position: absolute; left: -18px; bottom: 34px; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: rgba(14, 12, 22, .72); transform: translateZ(40px);
}
.frame-tag .mono { font-size: 11px; color: var(--lemon); font-weight: 400; }
.tag-2 { left: auto; right: -18px; bottom: auto; top: 40px; }
.frame-tag[hidden] { display: none; }
.orbit span { position: absolute; font-size: 28px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(255, 210, 31, .4)); }
.orbit span:nth-child(1) { top: 4%; left: 6%; }
.orbit span:nth-child(2) { bottom: 2%; right: 12%; animation-delay: -2s; font-size: 22px; }
.orbit span:nth-child(3) { top: 46%; right: -2%; animation-delay: -4s; font-size: 18px; }
@keyframes float { 50% { transform: translateY(-16px) rotate(12deg); } }

/* ── ticker ────────────────────────────────────────────── */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line); background: rgba(131, 110, 249, .06);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker-track span { padding: 14px 28px; font-family: var(--mono); font-size: 13.5px; white-space: nowrap; color: var(--muted); }
.ticker-track b { color: var(--ink); font-weight: 600; margin-left: 6px; }
.ticker-track i { font-style: normal; color: var(--lemon); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ──────────────────────────────────────────── */
.section { max-width: 1280px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 48px) 0; }
.section-head { margin-bottom: 34px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -.01em; margin-top: 12px; max-width: 22ch; }
h3 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.25; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; transition: border-color .25s, transform .25s; }
.stat:hover { border-color: rgba(131, 110, 249, .45); transform: translateY(-3px); }
.stat b { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.01em; }
.stat b sub { font-size: .55em; color: var(--muted); }
.stat small { color: var(--muted); font-size: 13px; }
.stat-wide { grid-column: span 3; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat-wide { grid-column: span 2; } .stat-full { grid-column: 1 / -1; } }
.stat-row { display: flex; justify-content: space-between; align-items: center; }
.changes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.changes div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.changes b { font-size: 18px; }
.pressure { height: 10px; border-radius: 99px; background: rgba(255, 92, 122, .55); overflow: hidden; margin: 14px 0 10px; }
.pressure-buy { height: 100%; width: 50%; background: linear-gradient(90deg, #22b872, var(--up)); border-radius: 99px; transition: width .8s ease; box-shadow: 0 0 20px rgba(62, 224, 143, .5); }
.source { margin-top: 16px; font-size: 12.5px; color: var(--dim); }

/* chart */
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.tabs button { padding: 8px 16px; border-radius: 9px; font-family: var(--mono); font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--purple); color: #fff; }
.chart-card { position: relative; height: clamp(320px, 52vh, 520px); padding: 12px; overflow: hidden; }
#chart-el { position: absolute; inset: 12px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }

/* trades */
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }
.trades { overflow: hidden; }
.trade { display: grid; grid-template-columns: 90px 1.3fr 1fr 1fr 90px; gap: 12px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13.5px; }
.trade:last-child { border-bottom: 0; }
.trade-head { font-family: var(--body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, .02); }
.trade a:hover { color: var(--purple-2); text-decoration: underline; }
.trade .t-time { color: var(--muted); text-align: right; }
.trade-head span:last-child { text-align: right; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pill.buy { background: rgba(62, 224, 143, .14); color: var(--up); }
.pill.sell { background: rgba(255, 92, 122, .14); color: var(--down); }
.trade.new { animation: slide .7s ease-out; }
@keyframes slide { from { background: rgba(255, 225, 77, .12); transform: translateX(-8px); opacity: 0; } }
.trade-empty { padding: 36px; text-align: center; color: var(--muted); }

/* lore & steps */
.lore, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.lore-card, .steps li { padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .25s; }
.lore-card:hover, .steps li:hover { border-color: rgba(255, 225, 77, .35); transform: translateY(-3px); }
.lore-card p, .steps p { color: var(--muted); font-size: 15px; }
.lore-n, .step-n { font-size: 30px; font-weight: 600; color: var(--lemon); }
.step-n { color: var(--purple-2); font-size: 14px; letter-spacing: .1em; }
.final-cta { display: flex; align-items: center; gap: 22px; margin-top: 24px; padding: 24px 28px; background: linear-gradient(120deg, rgba(131, 110, 249, .14), rgba(255, 225, 77, .08)); }
.final-cta > div { flex: 1; min-width: 0; }
.final-icon { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-2); }
.final-ca { color: var(--muted); font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }

/* footer */
.footer { max-width: 1280px; margin: 110px auto 0; padding: 36px clamp(16px, 4vw, 48px) 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer p { max-width: 80ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.footer-links a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--ink); border-color: var(--purple); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: #1b1830; border: 1px solid var(--line-2); font-size: 14px; transition: .3s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .frame { width: min(100%, 420px); }
  .lore, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .chain-pill { margin-left: auto; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-wide { grid-column: span 2; }
  .stat { padding: 18px; }
  .price-card { gap: 16px; padding: 16px; flex-wrap: wrap; }
  .price-side { padding-left: 16px; }
  .price { font-size: 24px; }
  .trade { grid-template-columns: 62px 1fr 80px 54px; padding: 12px 14px; font-size: 12.5px; }
  .trade > :nth-child(4) { display: none; }
  .frame-tag { left: 8px; }
  .tag-2 { left: auto; right: 8px; }
  .chain-label { display: none; }
  .final-cta { flex-direction: column; align-items: flex-start; }
  .changes { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
