/* ════════════════════════════════════════════════════════════════════
   TradeXcele Chain — Cinematic Immersive UI
   Inspired by skyai.pro design language
   Pure black · Ghost outline text · Scroll-driven animation
   ════════════════════════════════════════════════════════════════════ */

/* ─── Reset & root ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #000000;
  --bg-glass:     rgba(255,255,255,0.03);
  --bg-glass-h:   rgba(255,255,255,0.055);
  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(255,255,255,0.14);
  --text:         #ffffff;
  --text-mid:     rgba(255,255,255,0.62);
  --text-low:     rgba(255,255,255,0.32);
  --accent:       #1ecbf7;
  --accent2:      #4a8cff;
  --accent3:      #a78bfa;
  --warn:         #f59e0b;
  --font:         'Space Grotesk', sans-serif;
  --mono:         'JetBrains Mono', monospace;
  --r-sm:         10px;
  --r-md:         16px;
  --r-lg:         24px;
  --r-xl:         32px;
  --max-w:        1240px;
  --nav-h:        68px;
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ol, ul { list-style: none; }

/* ─── Background canvas ─────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

/* ─── Cursor glow ───────────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,203,247,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ─── Text utilities ────────────────────────────────────────────── */
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
}
.gradient-text {
  background: linear-gradient(135deg, #1ecbf7 0%, #4a8cff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.mono-sm {
  font-family: var(--mono);
  font-size: 0.78em;
  letter-spacing: 0.02em;
  word-break: break-all;
}

/* ─── Shared button system ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 55%, var(--accent3) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: background-position 0.45s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 0 rgba(30,203,247,0);
  white-space: nowrap;
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(30,203,247,0.3);
}
.btn-primary.big {
  padding: 15px 36px;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: 1px solid var(--border-h);
  border-radius: 100px;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(30,203,247,0.5);
  color: #fff;
  background: rgba(30,203,247,0.07);
  transform: translateY(-2px);
}

/* ─── NAV — 3D glassmorphism ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 52px);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s, border-bottom-color 0.5s;
  border-bottom: 1px solid transparent;
  perspective: 1200px;
}
.nav::after {
  /* Glowing bottom-edge line */
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(30,203,247,0.0) 10%,
    rgba(30,203,247,0.25) 35%,
    rgba(167,139,250,0.25) 65%,
    rgba(30,203,247,0.0) 90%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.nav.scrolled {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.04);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 8px 48px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04);
}
.nav.scrolled::after { opacity: 1; }

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  transform-style: preserve-3d;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.brand:hover {
  transform: perspective(400px) translateZ(3px);
}
.brand-icon { flex-shrink: 0; }
.brand-wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-wordmark em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--text-low);
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, transform 0.25s, text-shadow 0.25s;
  transform-style: preserve-3d;
}
.nav-links a::after {
  /* Hover underline dot */
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  transform: perspective(300px) translateZ(5px) translateY(-1px);
  text-shadow: 0 0 20px rgba(30,203,247,0.35);
}
.nav-links a:hover::after { opacity: 1; }

/* MetaMask button — 3D pill */
/* ─── Header "Get App" CTA ─────────────────────────────────────── */
/* ─── Header "TXC" CTA (gold, links to /txc/) ─────────────────── */
.btn-txc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  margin-right: 8px;
  border: 1px solid rgba(245, 196, 81, 0.40);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f5c451;
  background: rgba(245, 196, 81, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.25s;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(245, 196, 81, 0.10), 0 1px 0 rgba(245, 196, 81, 0.15) inset;
}
.btn-txc:hover {
  background: rgba(245, 196, 81, 0.15);
  border-color: rgba(245, 196, 81, 0.75);
  box-shadow: 0 6px 32px rgba(245, 196, 81, 0.30), 0 1px 0 rgba(245, 196, 81, 0.20) inset;
  transform: translateY(-2px);
}

.btn-app-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-right: 8px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(52, 211, 153, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.25s;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow:
    0 2px 12px rgba(52, 211, 153, 0.10),
    0 1px 0 rgba(52, 211, 153, 0.15) inset;
}
.btn-app-download:hover {
  background: rgba(52, 211, 153, 0.13);
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow:
    0 6px 32px rgba(52, 211, 153, 0.28),
    0 1px 0 rgba(52, 211, 153, 0.20) inset;
  transform: translateY(-2px);
}
@media (max-width: 540px) {
  /* On very narrow screens, hide the text label and show icon only */
  .btn-app-download { padding: 10px 12px; }
  .btn-app-download span.label { display: none; }
}

.btn-metamask {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(30,203,247,0.35);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(30,203,247,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.25s;
  flex-shrink: 0;
  box-shadow:
    0 2px 12px rgba(30,203,247,0.1),
    0 1px 0 rgba(30,203,247,0.15) inset;
}
/* 3D bottom-face depth effect */
.btn-metamask::before {
  content: '';
  position: absolute;
  bottom: -3px; left: 8px; right: 8px;
  height: 8px;
  background: rgba(30,203,247,0.18);
  border-radius: 0 0 100px 100px;
  filter: blur(6px);
  opacity: 0.8;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.btn-metamask:hover {
  background: rgba(30,203,247,0.13);
  border-color: rgba(30,203,247,0.7);
  box-shadow:
    0 6px 32px rgba(30,203,247,0.28),
    0 1px 0 rgba(30,203,247,0.2) inset,
    0 0 0 1px rgba(30,203,247,0.1);
  transform: perspective(400px) translateZ(6px) translateY(-2px);
}
.btn-metamask:hover::before {
  opacity: 1;
  transform: scaleX(1.1);
}
.mm-icon { flex-shrink: 0; }

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: visible; /* body overflow-x:hidden handles lateral bleed */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ghost decorative mega-text — absolute behind everything */
.hero-ghost-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.hero-ghost-title span {
  display: block;
  font-size: clamp(64px, 13vw, 200px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.88;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Hero body — content left, coin absolutely placed right ── */
.hero-body {
  position: relative;
  z-index: 10;
  display: block; /* visual escapes to absolute; only content flows */
  min-height: 100vh;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  padding: var(--nav-h) 0 0 clamp(24px, 5vw, 72px);
  width: 100%;
}

/* ── LEFT: text content ── */
.hero-content {
  position: relative;
  z-index: 12; /* above the absolute coin layer */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 40px 0 80px;
  max-width: 640px; /* keep text from sprawling when grid is gone */
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border: 1px solid rgba(30,203,247,0.18);
  border-radius: 100px;
  background: rgba(30,203,247,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.76rem;
  font-family: var(--mono);
  letter-spacing: 0.07em;
  color: var(--text-mid);
  margin-bottom: 36px;
  animation: _fadeDown 0.7s cubic-bezier(.2,.8,.2,1) 0.1s both;
  box-shadow: 0 2px 16px rgba(30,203,247,0.08);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
  animation: live-blink 1.8s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.22; }
}
.hero-badge-sep { color: var(--text-low); }
.hero-badge strong { color: var(--accent); font-family: var(--mono); }

/* Hero title */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  animation: _fadeUp3d 1s cubic-bezier(.2,.8,.2,1) 0.3s both;
}
.hero-title .line {
  display: block;
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.hero-title .outline-line {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
}
.hero-title .gradient-line {
  background: linear-gradient(135deg, #1ecbf7 0%, #4a8cff 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero sub */
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 400;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.72;
  animation: _fadeUp 0.75s cubic-bezier(.2,.8,.2,1) 0.6s both;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 48px;
  animation: _fadeUp 0.7s cubic-bezier(.2,.8,.2,1) 0.8s both;
}

/* Hero specs */
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  animation: _fadeUp 0.6s cubic-bezier(.2,.8,.2,1) 1.0s both;
}
.hero-specs li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 24px 0 0;
  margin-right: 20px;
  border-right: 1px solid var(--border);
}
.hero-specs li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-specs li.sep { display: none; }
.spec-lbl {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 3px;
}
.spec-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--mono);
  color: #fff;
}

/* ── RIGHT: floating coin — absolutely free, no grid constraint ── */
.hero-visual {
  position: absolute;
  right: -8%;            /* bleed past viewport right edge */
  top: 0;
  height: 100%;
  width: 62vw;           /* large canvas so orbital rings never clip */
  min-height: 100vh;
  max-height: none;      /* removed — let it fill */
  max-width: none;       /* removed — let it fill */
  overflow: visible;
  z-index: 5;
  pointer-events: none;
}

/* Ambient outer halo — large soft gradient glow */
.orb-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(30,203,247,0.1)  0%,
    rgba(74,140,255,0.06) 35%,
    rgba(167,139,250,0.03) 60%,
    transparent 75%);
  animation: halo-breathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 1;    }
}

/* CSS orbital rings — float freely, no container */
.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.orb-ring--1 {
  width: 60%; height: 60%;
  margin: -30% 0 0 -30%;
  border: 1px solid rgba(30,203,247,0.12);
  animation: ring-spin 22s linear infinite;
  box-shadow: 0 0 30px rgba(30,203,247,0.04);
}
.orb-ring--2 {
  width: 80%; height: 80%;
  margin: -40% 0 0 -40%;
  border: 1px solid rgba(74,140,255,0.08);
  animation: ring-spin 36s linear infinite reverse;
}
.orb-ring--3 {
  width: 105%; height: 105%;
  margin: -52.5% 0 0 -52.5%;
  border: 1px solid rgba(167,139,250,0.05);
  animation: ring-spin 52s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Three.js coin canvas — fills the visual column */
.hero-coin-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* NO border, NO background */
}
.hero-coin-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(30,203,247,0.18) 0%, transparent 70%);
  animation: halo-breathe 3.2s ease-in-out infinite;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%       { transform: translateY(12px); opacity: 0.12; }
}

/* Hero entrance keyframes */
@keyframes _fadeDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes _fadeUp {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes _fadeUp3d {
  from { opacity: 0; transform: perspective(800px) rotateX(18deg) translateY(52px); }
  to   { opacity: 1; transform: perspective(800px) rotateX(0deg) translateY(0); }
}

/* ─── STATS STRIP ───────────────────────────────────────────────── */
.stats {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}
.stats-track {
  display: flex;
  align-items: stretch;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 clamp(16px, 4vw, 48px);
}
.stats-track::-webkit-scrollbar { display: none; }

.stat {
  flex: 1;
  min-width: 130px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 16px 0;
  flex-shrink: 0;
}
.stat-num {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.1;
  color: #fff;
}
.stat-num.live {
  background: linear-gradient(90deg, #1ecbf7, #6de4ff, #4a8cff, #1ecbf7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: stat-flow 3s linear infinite;
}
@keyframes stat-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
.stat-num.flash {
  animation: stat-flash 0.4s ease, stat-flow 3s linear infinite;
}
@keyframes stat-flash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.stat-unit {
  font-size: 0.62em;
  opacity: 0.55;
  margin-left: 2px;
}
.stat-lbl {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-low);
}

/* ─── Section head (shared) ─────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.72;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── FEATURES ──────────────────────────────────────────────────── */
.features {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(30,203,247,0.4), transparent);
}
.features::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80vw);
  height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,203,247,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
  perspective: 1600px;
}

.feat-card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: default;
  overflow: hidden;
  /* Default visible — JS overlays GSAP entrance animation.
     If JS fails to load (slow CDN, ad-block, etc.), cards still render. */
  opacity: 1;
  transform: none;
  transition:
    border-color 0.35s,
    background   0.35s,
    transform    0.5s,
    box-shadow   0.4s,
    opacity      0.6s;
  will-change: transform, opacity;
}
.feat-card.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,203,247,0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover {
  border-color: rgba(30,203,247,0.18);
  background: var(--bg-glass-h);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 80px rgba(0,0,0,0.6), 0 0 36px rgba(30,203,247,0.06);
}
.feat-card:hover::before { opacity: 1; }

/* Highlight radial via JS */
.feat-card::after {
  content: '';
  position: absolute;
  top: var(--my, 50%);
  left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,203,247,0.08) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.feat-card:hover::after { opacity: 1; }

.feat-num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-low);
  opacity: 0.45;
}
.feat-icon {
  font-size: 2.2rem;
  margin-bottom: 22px;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(30,203,247,0.28));
}
.feat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.68;
  margin-bottom: 22px;
}
.feat-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.feat-meta span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--text-low);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ─── EARN ──────────────────────────────────────────────────────── */
.earn {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
}
.earn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(74,140,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.earn-card {
  position: relative;
  padding: 44px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition:
    border-color 0.35s,
    background   0.35s,
    transform    0.5s,
    box-shadow   0.4s,
    opacity      0.6s;
}
.earn-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.earn-card:hover, a.earn-card:hover {
  border-color: rgba(30,203,247,0.2);
  background: var(--bg-glass-h);
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.earn-card.featured {
  border-color: rgba(30,203,247,0.18);
  background: rgba(30,203,247,0.04);
}
.earn-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(30,203,247,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.earn-card.soon { cursor: default; }
.earn-card.soon.visible { opacity: 0.55; }
.earn-card.soon:hover { transform: none; box-shadow: none; border-color: var(--border); }

.earn-marker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-low);
}
.earn-glyph {
  font-size: 2.6rem;
  line-height: 1;
  margin: 4px 0 8px;
  filter: drop-shadow(0 0 18px rgba(30,203,247,0.22));
}
.earn-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.earn-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}
.earn-cta {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.earn-cta.muted { color: var(--text-low); }
.soon-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  background: rgba(245,158,11,0.06);
}

/* ─── BRIDGE ────────────────────────────────────────────────────── */
.bridge {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
}
.bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 15% 50%, rgba(30,203,247,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(167,139,250,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.bridge-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto 44px;
  padding: 52px 60px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
}
.bridge-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.bridge-chain-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}
.bridge-asset-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bridge-asset-name span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-low);
  margin-left: 6px;
  vertical-align: middle;
}
.bridge-addr {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-low);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}
.bridge-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  color: var(--accent);
}
.bridge-method {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.bridge-info {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bridge-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.bridge-info-row:last-child { border-bottom: none; }
.bridge-info-row > span:first-child {
  color: var(--text-low);
  font-weight: 500;
  min-width: 160px;
  flex-shrink: 0;
}
.status-warn { color: var(--warn); font-weight: 500; }

/* ─── CONNECT ────────────────────────────────────────────────────── */
.connect {
  position: relative;
  z-index: 10;
  padding: 80px clamp(20px, 5vw, 60px);
}
.connect-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 88px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.connect-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 75% at 0% 50%, rgba(30,203,247,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.connect-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(30,203,247,0.3) 35%, rgba(167,139,250,0.3) 65%, transparent 100%);
}

/* Light sweep */
.connect-sweep {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  background: linear-gradient(90deg, transparent, rgba(30,203,247,0.07), transparent);
  left: -140px;
  animation: sweep 5s ease-in-out 2.5s infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes sweep {
  0%   { left: -140px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% + 140px); opacity: 0; }
}

.connect-left, .connect-right { position: relative; z-index: 1; }
.connect-left .eyebrow { text-align: left; margin-bottom: 18px; }
.connect-left h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.connect-left p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.72;
  margin-bottom: 38px;
  max-width: 380px;
}

.spec-table {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row > span:first-child {
  color: var(--text-low);
  min-width: 110px;
  flex-shrink: 0;
}
.spec-row strong {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

/* ─── ROADMAP ────────────────────────────────────────────────────── */
.roadmap {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
}
.rm-list {
  max-width: 680px;
  margin: 0 auto;
}
.rm-item {
  display: grid;
  grid-template-columns: 20px 2px 1fr;
  column-gap: 28px;
  padding-bottom: 52px;
}
.rm-item:last-child { padding-bottom: 0; }

.rm-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-h);
  background: #000;
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.rm-item.done .rm-dot {
  border-color: var(--accent);
  background: rgba(30,203,247,0.12);
  box-shadow: 0 0 14px rgba(30,203,247,0.28);
}
.rm-item.now .rm-dot {
  border-color: var(--accent2);
  background: rgba(74,140,255,0.18);
  box-shadow: 0 0 20px rgba(74,140,255,0.38);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(74,140,255,0.38); }
  50%       { box-shadow: 0 0 38px rgba(74,140,255,0.7); }
}
.rm-line {
  width: 2px;
  background: linear-gradient(to bottom, var(--border-h), transparent);
  margin-top: 24px;
}
.rm-item:last-child .rm-line { display: none; }
.rm-item.done .rm-line {
  background: linear-gradient(to bottom, rgba(30,203,247,0.3), var(--border));
}

.rm-body { padding-top: 0; }
.rm-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: var(--text-low);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.done-tag {
  color: var(--accent);
  border-color: rgba(30,203,247,0.25);
  background: rgba(30,203,247,0.06);
}
.now-tag {
  color: var(--accent2);
  border-color: rgba(74,140,255,0.28);
  background: rgba(74,140,255,0.07);
}
.rm-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.rm-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ─── FINAL CTA ──────────────────────────────────────────────────── */
.final-cta {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px) 150px;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw; height: 70vh;
  background: radial-gradient(ellipse, rgba(30,203,247,0.055) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}
.cta-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 60px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 80px clamp(20px, 5vw, 60px) 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-blurb {
  font-size: 0.88rem;
  color: var(--text-low);
  line-height: 1.72;
  max-width: 280px;
}
.footer-blurb a {
  color: var(--text-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-blurb a:hover { color: #fff; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--text-low);
}

/* ══════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ══════════════════════════════════════════════════════════════════ */
.how-section {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
  text-align: center;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(30,203,247,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 40px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.how-step:hover {
  border-color: rgba(30,203,247,0.18);
  background: var(--bg-glass-h);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.step-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #1ecbf7, #4a8cff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(30,203,247,0.08);
  border: 1px solid rgba(30,203,247,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.how-step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.68;
}

.how-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--accent);
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════
   BUILD ON TXCL SECTION
   ══════════════════════════════════════════════════════════════════ */
.build-section {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
  overflow: hidden;
}
.build-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 50%, rgba(74,140,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(167,139,250,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.build-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.build-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.build-left .eyebrow { text-align: left; margin-bottom: 20px; }
.build-left h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.build-desc {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.72;
  margin-bottom: 32px;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.tool-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-mid);
}
.tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}
.tool-dot--soon { background: var(--accent3); box-shadow: 0 0 8px var(--accent3); }

.build-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.build-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Code windows */
.code-window {
  background: rgba(10,14,26,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.code-window:hover {
  border-color: rgba(30,203,247,0.15);
  box-shadow: 0 16px 60px rgba(0,0,0,0.5);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-r { background: #ff5f57; }
.tl-y { background: #ffbd2e; }
.tl-g { background: #28ca40; }
.code-filename {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-low);
  letter-spacing: 0.04em;
}

.code-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  padding: 20px 24px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.c-str     { color: #a8ff78; }
.c-num     { color: #f7c948; }
.c-comment { color: rgba(255,255,255,0.32); }
.c-kw      { color: #6de4ff; }

/* ══════════════════════════════════════════════════════════════════
   TOKENOMICS SECTION
   ══════════════════════════════════════════════════════════════════ */
.tokenomics {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px);
}
.tokenomics::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(167,139,250,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.token-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.token-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-donut {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(#1ecbf7 0% 70%, #a78bfa 70% 100%);
  position: relative;
  box-shadow: 0 0 60px rgba(30,203,247,0.2), 0 0 120px rgba(30,203,247,0.08);
  flex-shrink: 0;
}
.token-donut::after {
  content: '';
  position: absolute;
  inset: 52px;
  border-radius: 50%;
  background: #000;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 2;
}
.donut-big {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--mono);
  background: linear-gradient(135deg, #1ecbf7, #4a8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.donut-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.token-right {
  display: flex;
  flex-direction: column;
}

.token-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 16px;
  transition: border-color 0.3s, background 0.3s;
}
.token-item:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.token-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 8px currentColor;
}

.token-item-body { flex: 1; }
.token-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.token-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.token-item-amount {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.token-item-pct {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-low);
  margin-left: 6px;
}
.token-item-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.token-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.token-stat-box {
  flex: 1;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: border-color 0.3s;
}
.token-stat-box:hover { border-color: rgba(30,203,247,0.15); }
.token-stat-box--live { border-color: rgba(30,203,247,0.14); background: rgba(30,203,247,0.04); }
.token-stat-val {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
}
.token-stat-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

/* ══════════════════════════════════════════════════════════════════
   LIVE BLOCKS SECTION
   ══════════════════════════════════════════════════════════════════ */
.live-chain {
  position: relative;
  z-index: 10;
  padding: 130px clamp(20px, 5vw, 60px) 80px;
}
.live-chain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(30,203,247,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.blocks-feed {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.4);
}

.block-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px 90px 80px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.block-row:last-child { border-bottom: none; }
.block-row:hover { background: rgba(255,255,255,0.03); }
.block-row.flash {
  background: rgba(30,203,247,0.08);
  animation: block-flash-anim 0.6s ease;
}
@keyframes block-flash-anim {
  0%   { background: rgba(30,203,247,0.18); }
  100% { background: rgba(30,203,247,0.08); }
}

.block-row-head {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.block-row-head span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.block-num {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}
.block-hash {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-low);
}
.block-txs {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-mid);
  text-align: center;
}
.block-gas {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-mid);
  text-align: center;
}
/* Empty-block placeholder — single em-dash, dim so the row reads as
   "idle block" rather than broken/zeroed cell. */
.empty-cell {
  font-style: normal;
  color: var(--text-low);
  opacity: 0.4;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.block-row.is-empty .block-num { opacity: 0.7; }
.block-row.is-empty:hover .empty-cell { opacity: 0.6; }
.block-age {
  font-size: 0.8rem;
  color: var(--text-low);
  text-align: right;
}

.blocks-view-all {
  max-width: 900px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}

/* ── Responsive for new sections ─────────────────────────────────── */
@media (max-width: 900px) {
  .build-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .token-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
  }
  .how-arrow { display: none; }
  .how-steps { gap: 16px; }
  .how-step { max-width: 100%; width: 100%; }
}

@media (max-width: 640px) {
  .block-row {
    grid-template-columns: 90px 1fr 60px;
  }
  .block-gas, .block-age { display: none; }
  .token-stats { flex-direction: column; }
  .token-layout { gap: 32px; }
  .token-donut { width: 220px; height: 220px; }
  .token-donut::after { inset: 40px; }
}

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .feat-card, .earn-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }

  /* Hero stacks to single column on tablet */
  .hero-body {
    padding-left: clamp(20px, 5vw, 48px);
    padding-right: clamp(20px, 5vw, 48px);
    min-height: auto;
    padding-bottom: 60px;
    padding-top: calc(var(--nav-h) + 55vw + 20px); /* space above text for stacked coin */
  }
  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 60px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-specs {
    justify-content: center;
  }
  .hero-specs li {
    align-items: center;
    padding: 0 16px 0 0;
    margin-right: 12px;
  }
  /* On mobile coin sits at top, reset to normal flow position */
  .hero-visual {
    position: absolute;
    top: var(--nav-h);
    right: -5%;
    width: 110vw;
    height: 55vw;
    min-height: 260px;
    max-height: 400px;
  }
  .connect-card {
    grid-template-columns: 1fr;
    padding: 48px 36px;
    gap: 44px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-visual { height: 72vw; width: 115vw; }
  .hero-body { padding-top: calc(var(--nav-h) + 68vw + 16px); }
  .hero-title .line { font-size: clamp(32px, 8vw, 52px); }
  .hero-actions .btn-ghost:last-child { display: none; }
  .bridge-flow {
    flex-direction: column;
    padding: 32px 24px;
  }
  .bridge-center { padding: 12px 0; }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ─── Hero floating glass info-cards (orbit the 3D coin, /txc/-style) ─── */
.hero-fc{
  position:absolute; top:50%; left:50%;
  padding:13px 17px; border-radius:16px; min-width:138px;
  background:linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.012));
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 14px 44px rgba(0,0,0,0.40);
  z-index:6; opacity:0; pointer-events:auto;
  --tx:0px; --ty:0px;
  animation:heroFcIn .8s cubic-bezier(.4,1.4,.5,1) forwards;
  transition:border-color .25s;
}
.hero-fc::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
  background:linear-gradient(135deg, rgba(30,203,247,.5), rgba(74,140,255,.3), rgba(167,139,250,.3));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.hfc-label{font-size:10px;color:var(--text-mid,#9fb0d0);font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.hfc-val{font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1;
  background:linear-gradient(135deg,var(--accent,#1ecbf7),var(--accent2,#4a8cff) 60%,var(--accent3,#a78bfa));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hfc-sub{font-size:10.5px;color:var(--text-low,#65759a);margin-top:4px}
.hfc1{--tx:-250px;--ty:-158px;animation-delay:1.00s}
.hfc2{--tx: 120px;--ty:-185px;animation-delay:1.15s}
.hfc3{--tx:-258px;--ty: 95px;animation-delay:1.30s}
.hfc4{--tx: 120px; --ty: 170px;animation-delay:1.45s}
@keyframes heroFcIn{
  from{opacity:0; transform:translate(calc(-50% + (var(--tx) * .55)), calc(-50% + (var(--ty) * .55))) scale(.7)}
  to  {opacity:1; transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1)}
}
.hero-fc:hover{border-color:rgba(30,203,247,.45)}
/* keep slight float after entrance */
@media (max-width:1100px){
  .hfc1{--tx:-205px}.hfc3{--tx:-210px}
}
@media (max-width:960px){ .hero-fc{display:none} }
@media (prefers-reduced-motion:reduce){
  .hero-fc{animation:none;opacity:1;transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))}
}
