/* =========================================================
   MOMENTUM — custom styles
   Brand: green / black, motion-forward.
   Tailwind handles utilities; this file owns animations,
   gradient effects, panels, and one-off components.
   ========================================================= */

:root {
  --grad-1: #15803D;  /* deep emerald */
  --grad-2: #22C55E;  /* vivid emerald */
  --grad-3: #4ADE80;  /* bright emerald */
  --grad-4: #10F5A8;  /* electric / neon */
  --dark-1: #0F172A;  /* dark chevron accent */
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01","cv11"; }

::selection { background: rgba(34,197,94,0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06080A; }
::-webkit-scrollbar-thumb { background: #16241A; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #1F3A28; }

/* ---------- Background mesh ---------- */
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.mesh-blob-1 {
  width: 60vw; height: 60vw;
  top: -20vw; left: -10vw;
  background: radial-gradient(circle, var(--grad-2) 0%, transparent 60%);
  animation: drift1 22s ease-in-out infinite;
}
.mesh-blob-2 {
  width: 55vw; height: 55vw;
  top: 30vh; right: -15vw;
  background: radial-gradient(circle, var(--grad-1) 0%, transparent 60%);
  animation: drift2 26s ease-in-out infinite;
}
.mesh-blob-3 {
  width: 45vw; height: 45vw;
  bottom: -10vw; left: 25vw;
  background: radial-gradient(circle, var(--grad-4) 0%, transparent 60%);
  opacity: 0.25;
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,6vh) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10vw,-4vh) scale(1.05); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-8vh) scale(1.1); } }

.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- Ticker ---------- */
.ticker-track {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}
.ticker-track > span { display: inline-block; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Buttons ---------- */
.cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  box-shadow: 0 8px 30px -10px rgba(34,197,94,0.7);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta-pill:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 14px 36px -10px rgba(34,197,94,0.9); }
.cta-pill .cta-arrow { transition: transform .2s ease; }
.cta-pill:hover .cta-arrow { transform: translateX(3px); }

.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  box-shadow: 0 14px 40px -14px rgba(34,197,94,0.8);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 20px 50px -14px rgba(34,197,94,1); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cta-ghost:hover { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.4); transform: translateY(-1px); }

/* ---------- Headlines ---------- */
.grad-text {
  background: linear-gradient(120deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-3));
}
.eyebrow.justify-center { justify-content: center; }

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------- Stat cards ---------- */
.stat-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, transform .2s ease;
}
.stat-card:hover { border-color: rgba(34,197,94,0.4); transform: translateY(-2px); }
.stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-delta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; margin-top: 2px;
  color: var(--grad-4);
}
.stat-delta.down { color: #ef4444; }

/* ---------- Hero orb ---------- */
.orb {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(34,197,94,0.85), rgba(34,197,94,0) 60%),
    radial-gradient(circle at 70% 70%, rgba(74,222,128,0.7), rgba(74,222,128,0) 60%),
    radial-gradient(circle at 50% 50%, rgba(15,23,42,0.6), rgba(15,23,42,0) 70%);
  filter: blur(20px);
  animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-10px) scale(1.04); }
}

.orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34,197,94,0.18);
}
.orb-ring-1 { animation: ringPulse 4s ease-in-out infinite; }
.orb-ring-2 {
  inset: 8%; border-color: rgba(34,197,94,0.28);
  animation: ringPulse 4s ease-in-out infinite .8s;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50%     { transform: scale(1.04); opacity: 1; }
}

.orb-coin {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: linear-gradient(145deg, #0E1A14, #06080A);
  border: 1px solid rgba(34,197,94,0.18);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    inset 0 -2px 20px rgba(0,0,0,0.6),
    0 30px 80px -20px rgba(34,197,94,0.5);
  display: grid; place-items: center;
  animation: coinPulse 6s ease-in-out infinite;
}
.orb-coin-inner {
  width: 70%; height: 70%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-1));
  display: grid; place-items: center;
  position: relative;
  animation: coinSpin 14s linear infinite;
}
.orb-coin-inner::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: #06080A;
}
.orb-mark-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}
.orb-mark {
  width: 46%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(34,197,94,0.6));
  transform-origin: center;
  animation: markSpin 14s linear infinite;
}
@keyframes markSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes coinSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes coinPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }

.floater {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(34,197,94,0.2);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.2em;
}
.floater-1 { top: 8%;  left: 0;   animation: floatA 6s ease-in-out infinite; }
.floater-2 { top: 40%; right: -4%; animation: floatA 7s ease-in-out infinite 1s; }
.floater-3 { bottom: 12%; left: 8%; animation: floatA 8s ease-in-out infinite .5s; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Live badge ---------- */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16,245,168,0.08);
  border: 1px solid rgba(16,245,168,0.3);
  color: var(--grad-4);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-4);
  box-shadow: 0 0 12px var(--grad-4);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Contract Address ---------- */
.ca-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color .2s ease, background .2s ease;
  max-width: 100%;
}
.ca-btn:hover { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.06); }
.ca-icon {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  flex-shrink: 0;
}
.ca-btn.copied { border-color: rgba(16,245,168,0.5); background: rgba(16,245,168,0.06); }
.ca-btn.copied .ca-icon { background: var(--grad-4); color: #06080A; }

/* ---------- Panel (glass) ---------- */
.panel {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,197,94,0.4), rgba(74,222,128,0) 50%, rgba(16,245,168,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Feature cards ---------- */
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .25s ease, border-color .25s ease;
  overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(34,197,94,0.18), transparent 40%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(34,197,94,0.3); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(74,222,128,0.15));
  border: 1px solid rgba(34,197,94,0.2);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 18px;
  margin-bottom: 6px;
}
.feature-desc { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; }
.check {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Custom Chart ---------- */
.chart-panel { padding: 0; overflow: hidden; }

.chart-toolbar {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chart-current { display: flex; flex-direction: column; gap: 4px; }
.chart-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-symbol {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.chart-price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.chart-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.chart-change { font-weight: 700; color: var(--grad-4); }
.chart-change.down { color: #ef4444; }
.chart-sep { color: rgba(255,255,255,0.25); }
.chart-range { text-transform: lowercase; }

.chart-tf {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.chart-tf-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.chart-tf-btn:hover { color: #fff; }
.chart-tf-btn.active {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  font-weight: 700;
  box-shadow: 0 6px 20px -8px rgba(34,197,94,0.7);
}

.chart-canvas-wrap {
  position: relative;
  height: 380px;
  padding: 12px 0 0;
}
#chart-svg {
  width: 100%; height: 100%;
  display: block;
}
#chart-line { transition: d 0.6s ease-out; }
#chart-fill { transition: d 0.6s ease-out, opacity .3s ease; }
#chart-dot { filter: drop-shadow(0 0 6px var(--grad-4)); animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse {
  0%,100% { stroke-width: 6; }
  50%     { stroke-width: 12; }
}

/* Animate the line drawing on first render */
.chart-canvas-wrap.drawing #chart-line {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: drawLine 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.chart-canvas-wrap.drawing #chart-fill { opacity: 0; animation: fadeFill 1.4s ease-out forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeFill { to { opacity: 1; } }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 8px 12px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity .15s ease;
  z-index: 5;
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip-time { font-size: 10px; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.chart-tooltip-price { font-size: 13px; color: var(--grad-4); font-weight: 700; }

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  background: rgba(6,8,10,0.6);
  backdrop-filter: blur(2px);
  z-index: 4;
  transition: opacity .3s ease;
}
.chart-empty.hidden { opacity: 0; pointer-events: none; }
.chart-empty-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.2);
  border-top-color: var(--grad-3);
  animation: spinSpinner 0.8s linear infinite;
}
@keyframes spinSpinner { to { transform: rotate(360deg); } }
.chart-empty-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.chart-empty.error .chart-empty-spinner {
  border-color: rgba(239,68,68,0.3);
  border-top-color: #ef4444;
  animation: none;
}

/* ---------- Custom Swap Widget ---------- */
.swap-widget {
  position: relative;
  border-radius: 28px;
  padding: 22px;
  max-width: 100%;
  background:
    linear-gradient(180deg, rgba(34,197,94,0.06), rgba(255,255,255,0.01)),
    rgba(10,14,18,0.8);
  border: 1px solid rgba(34,197,94,0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(34,197,94,0.35), 0 0 0 1px rgba(255,255,255,0.02);
}
.swap-widget::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,197,94,0.5), rgba(16,245,168,0) 40%, rgba(34,197,94,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.swap-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}
.swap-title {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 16px;
}
.text-mom {
  background: linear-gradient(120deg, var(--grad-1), var(--grad-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.swap-title-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-4);
  box-shadow: 0 0 12px var(--grad-4);
  animation: pulse 1.5s ease-in-out infinite;
}
.swap-actions { display: flex; gap: 6px; }
.swap-icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.swap-icon-btn:hover { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); color: #fff; }

.swap-settings {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(34,197,94,0.12);
}
.swap-settings-row label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.slippage-options {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.slippage-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.slippage-btn:hover { border-color: rgba(34,197,94,0.4); }
.slippage-btn.active {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  border-color: transparent;
  color: #06080A;
}
#custom-slippage {
  flex: 1; min-width: 80px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  outline: none;
  transition: border-color .15s ease;
}
#custom-slippage:focus { border-color: rgba(34,197,94,0.5); }
#custom-slippage::-webkit-outer-spin-button,
#custom-slippage::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Swap cards */
.swap-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15,23,42,0.45);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color .2s ease;
}
.swap-card:hover { border-color: rgba(34,197,94,0.25); }
.swap-card-to { background: rgba(20,83,45,0.18); border-color: rgba(34,197,94,0.18); }

.swap-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.swap-card-label { font-family: "JetBrains Mono", monospace; letter-spacing: .15em; text-transform: uppercase; font-size: 10px; }
.swap-balance { font-family: "JetBrains Mono", monospace; font-size: 11px; }
.swap-balance .max-link { color: var(--grad-3); cursor: pointer; }

.swap-card-mid {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.swap-amount, .swap-amount-out {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 5vw, 30px);
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swap-amount::placeholder { color: rgba(255,255,255,0.2); }
.swap-amount-out { user-select: none; color: rgba(255,255,255,0.95); }
.swap-amount-out.empty { color: rgba(255,255,255,0.25); }

.swap-card-bot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: "JetBrains Mono", monospace;
}
.swap-max {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--grad-3);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  cursor: pointer;
  transition: background .2s ease;
}
.swap-max:hover { background: rgba(34,197,94,0.2); }
.swap-rate { color: rgba(255,255,255,0.55); font-size: 11px; }
.swap-usd { color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }

/* Token selector */
.token-selector {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.token-selector:hover { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); }
.token-selector.locked { cursor: default; background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); }
.token-selector.locked:hover { background: rgba(34,197,94,0.1); }
.token-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #0F172A;
  overflow: hidden;
  flex-shrink: 0;
}
.token-icon img { width: 70%; height: 70%; object-fit: contain; }
.mom-icon {
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,0.4), #0F172A);
  border: 1px solid rgba(34,197,94,0.4);
}
.token-symbol {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.token-caret {
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
  transition: transform .2s ease;
}
.token-selector.open .token-caret { transform: rotate(180deg); }

/* Token dropdown */
.token-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 18px;
  z-index: 10;
  min-width: 220px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(10,14,18,0.98);
  border: 1px solid rgba(34,197,94,0.25);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  animation: dropIn .15s ease-out;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.token-option {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
  text-align: left;
}
.token-option:hover { background: rgba(34,197,94,0.1); }
.token-icon-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #0F172A, #1F2937);
  border: 1px solid rgba(255,255,255,0.08);
}
.token-icon-sm.usdc { background: linear-gradient(135deg, #2775CA, #1B5BAA); color: #fff; }
.token-icon-sm.usdt { background: linear-gradient(135deg, #26A17B, #1B7558); color: #fff; }
.token-info { display: flex; flex-direction: column; align-items: flex-start; }
.t-name { font-size: 14px; font-weight: 500; }
.t-sym { font-size: 11px; color: rgba(255,255,255,0.5); font-family: "JetBrains Mono", monospace; }

/* Direction arrow between cards */
.swap-direction {
  display: grid; place-items: center;
  height: 32px;
  margin: -12px 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.swap-direction svg {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  box-shadow: 0 8px 20px -8px rgba(34,197,94,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Quote details */
.swap-details {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15,23,42,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.swap-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  color: rgba(255,255,255,0.55);
}
.swap-detail-row > span:last-child { color: #fff; font-variant-numeric: tabular-nums; }

/* Action button */
.swap-action {
  width: 100%;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
  box-shadow: 0 14px 40px -14px rgba(34,197,94,0.8);
  position: relative;
  overflow: hidden;
}
.swap-action:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 20px 50px -14px rgba(34,197,94,1); }
.swap-action:active:not(:disabled) { transform: translateY(0); }
.swap-action:disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  box-shadow: none;
}
.swap-action.loading { color: transparent; }
.swap-action.loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2px solid rgba(6,8,10,0.3);
  border-top-color: #06080A;
  animation: spinSpinner .7s linear infinite;
}

.swap-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}
.swap-status.success {
  background: rgba(16,245,168,0.1);
  border: 1px solid rgba(16,245,168,0.3);
  color: var(--grad-4);
}
.swap-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
.swap-status.info {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: rgba(255,255,255,0.85);
}
.swap-status a { color: var(--grad-4); text-decoration: underline; }

.swap-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* Wallet picker modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.wallet-modal.show { display: flex; animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.wallet-modal-card {
  width: 100%; max-width: 380px;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(34,197,94,0.06), rgba(10,14,18,1));
  border: 1px solid rgba(34,197,94,0.25);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  animation: dropIn .2s ease-out;
}
.wallet-modal-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 20px;
  margin-bottom: 4px;
}
.wallet-modal-card p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 16px; }
.wallet-list { display: flex; flex-direction: column; gap: 6px; }
.wallet-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
}
.wallet-btn:hover { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); }
.wallet-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wallet-btn .w-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  font-size: 16px;
  flex-shrink: 0;
}
.wallet-btn .w-meta { display: flex; flex-direction: column; flex: 1; }
.wallet-btn .w-name { font-weight: 600; }
.wallet-btn .w-status { font-size: 11px; color: rgba(255,255,255,0.5); font-family: "JetBrains Mono", monospace; }
.wallet-btn .w-status.installed { color: var(--grad-4); }
.wallet-modal-close {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 13px;
}
.wallet-modal-close:hover { background: rgba(255,255,255,0.04); }

/* ---------- Comparison table ---------- */
.cmp-th {
  padding: 18px 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}
.cmp-th-mom {
  color: var(--grad-3);
  background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  border-top-right-radius: 23px;
}
.cmp-td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
}
.cmp-td.muted { color: rgba(255,255,255,0.5); }
.cmp-td-mom {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(34,197,94,0.1);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
}
tbody tr:last-child .cmp-td-mom { border-bottom-right-radius: 23px; border-bottom: none; }
tbody tr:last-child .cmp-td { border-bottom: none; }

/* ---------- Tokenomics ---------- */
.tok-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.tok-label { font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,0.5); }
.tok-value { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; margin-top: 6px; }

.dist-row {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.dist-row::before {
  content: ""; position: absolute; inset: 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, rgba(34,197,94,0.3), rgba(16,245,168,0.15));
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.dist-row::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0;
  width: var(--w, 0%);
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(16,245,168,0.45) 48%,
    rgba(255,255,255,0.2) 50%,
    rgba(16,245,168,0.45) 52%,
    transparent 70%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: dist-shimmer 2.4s ease-in-out infinite;
}
@keyframes dist-shimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
.dist-row > * { position: relative; z-index: 1; }
.dist-label { font-weight: 500; }
.dist-pct { font-family: "JetBrains Mono", monospace; font-weight: 700; }

/* ---------- Mobile Menu ---------- */
.mob-bar {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mob-menu-open .mob-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-menu-open .mob-bar:nth-child(2) { opacity: 0; }
.mob-menu-open .mob-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob-menu-closed { display: none; }
.mob-menu-open-panel { display: block; }
.mob-nav-link {
  display: block; padding: 10px 8px;
  border-radius: 8px; color: rgba(255,255,255,0.7);
  transition: background .15s, color .15s;
}
.mob-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* ---------- Nav Dropdown ---------- */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-chevron {
  transition: transform .2s;
  flex-shrink: 0;
}
.nav-dropdown-wrap:hover .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 160px;
  padding-top: 10px; /* invisible bridge — keeps hover active between trigger and panel */
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .2s, transform .2s;
  z-index: 50;
}
.nav-dropdown-inner {
  background: rgba(6,8,10,0.95);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(16px);
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown-item:hover {
  background: rgba(34,197,94,0.12);
  color: #10F5A8;
}

/* ---------- Listings ---------- */
.listing-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  /* silver bevel border */
  border: 1px solid rgba(200,215,230,0.28);
  text-align: center;
  transition: border-color .25s, background .25s, transform .25s;
  cursor: default;
  position: relative;
  overflow: hidden;
  /* pulsing yellow glow + silver inset bevel */
  animation: listing-pulse 3.5s ease-in-out infinite;
}
/* listing wrapper — card + "Under Construction" label */
.listing-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.listing-wrap .listing-card { width: 100%; }

/* stagger each card so they breathe at different times */
.listing-wrap:nth-child(1) .listing-card { animation-delay: 0s; }
.listing-wrap:nth-child(2) .listing-card { animation-delay: 0.58s; }
.listing-wrap:nth-child(3) .listing-card { animation-delay: 1.16s; }
.listing-wrap:nth-child(4) .listing-card { animation-delay: 1.75s; }
.listing-wrap:nth-child(5) .listing-card { animation-delay: 2.33s; }
.listing-wrap:nth-child(6) .listing-card { animation-delay: 2.92s; }
.listing-wrap:nth-child(1) .listing-uc { animation-delay: 0s; }
.listing-wrap:nth-child(2) .listing-uc { animation-delay: 0.58s; }
.listing-wrap:nth-child(3) .listing-uc { animation-delay: 1.16s; }
.listing-wrap:nth-child(4) .listing-uc { animation-delay: 1.75s; }
.listing-wrap:nth-child(5) .listing-uc { animation-delay: 2.33s; }
.listing-wrap:nth-child(6) .listing-uc { animation-delay: 2.92s; }

@keyframes listing-pulse {
  0%, 100% {
    box-shadow:
      inset 0  1px 0 rgba(240,248,255,0.10),
      inset 0 -1px 0 rgba(0,0,0,0.22),
      inset  1px 0 0 rgba(240,248,255,0.05),
      inset -1px 0 0 rgba(0,0,0,0.10),
      0 0 0 1px rgba(200,215,230,0.12);
  }
  50% {
    box-shadow:
      inset 0  1px 0 rgba(240,248,255,0.10),
      inset 0 -1px 0 rgba(0,0,0,0.22),
      inset  1px 0 0 rgba(240,248,255,0.05),
      inset -1px 0 0 rgba(0,0,0,0.10),
      0 0 0 1px rgba(200,215,230,0.28);
  }
}

.listing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(34,197,94,0.12), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
}
.listing-card:hover {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.05);
  transform: translateY(-4px);
}
.listing-card:hover::before { opacity: 1; }

/* Yellow pulse circle */
.listing-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(200,215,230,0.4);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    inset  1px 0 0 rgba(255,255,255,0.08),
    inset -1px 0 0 rgba(0,0,0,0.14),
    0 0 0 1px rgba(170,185,200,0.18);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.listing-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,40,0.95) 0%, rgba(255,180,20,0.45) 45%, transparent 72%);
  animation: dot-pulse 3.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 1; }
}
/* Live variant — green circle + green label */
.listing-wrap--live .listing-dot {
  border-color: rgba(34,197,94,0.5);
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    inset  1px 0 0 rgba(255,255,255,0.08),
    inset -1px 0 0 rgba(0,0,0,0.14),
    0 0 0 1px rgba(34,197,94,0.25);
}
.listing-wrap--live .listing-dot::after {
  background: radial-gradient(circle, rgba(16,245,168,0.95) 0%, rgba(34,197,94,0.45) 45%, transparent 72%);
}
.listing-wrap--live .listing-uc {
  color: #10F5A8;
}

.listing-wrap:nth-child(1) .listing-dot::after { animation-delay: 0s; }
.listing-wrap:nth-child(2) .listing-dot::after { animation-delay: 0.58s; }
.listing-wrap:nth-child(3) .listing-dot::after { animation-delay: 1.16s; }
.listing-wrap:nth-child(4) .listing-dot::after { animation-delay: 1.75s; }
.listing-wrap:nth-child(5) .listing-dot::after { animation-delay: 2.33s; }
.listing-wrap:nth-child(6) .listing-dot::after { animation-delay: 2.92s; }

/* Under Construction — below each card */
.listing-uc {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,218,90,0.75);
  text-align: center;
  animation: uc-pulse 3.5s ease-in-out infinite;
}

/* Under Construction badge (standalone, no longer used) */
.under-construction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,218,90,0.75);
  background: rgba(255,190,30,0.07);
  border: 1px solid rgba(255,190,30,0.22);
  box-shadow: 0 0 18px -6px rgba(255,210,40,0.3);
  animation: uc-pulse 3.5s ease-in-out infinite;
}
@keyframes uc-pulse {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}
.listing-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(16,245,168,0.1));
  border: 1px solid rgba(34,197,94,0.35);
  display: grid; place-items: center;
  color: #10F5A8;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px -6px rgba(16,245,168,0.4);
}
.listing-label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}

/* ---------- Roadmap ---------- */
.rm-row { position: relative; }
.rm-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(74,222,128,0.15));
  border: 1px solid rgba(34,197,94,0.25);
  color: #fff;
}
.rm-tag.live {
  background: linear-gradient(135deg, rgba(16,245,168,0.25), rgba(34,197,94,0.15));
  border-color: rgba(16,245,168,0.5);
  color: var(--grad-4);
}
.rm-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.rm-dot {
  display: none;
}
@media (min-width: 768px) {
  .rm-dot {
    display: block;
    position: absolute; top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
    box-shadow: 0 0 0 4px rgba(34,197,94,0.15), 0 0 20px var(--grad-2);
  }
  .rm-row > div:first-child > .rm-dot { right: -7px; }
  .rm-row .md\:order-2 .rm-dot { left: -7px; right: auto; }
  .rm-dot.live {
    background: var(--grad-4);
    box-shadow: 0 0 0 4px rgba(16,245,168,0.2), 0 0 24px var(--grad-4);
    animation: pulse 1.5s ease-in-out infinite;
  }
}
.rm-check {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(34,197,94,0.18);
  color: var(--grad-3);
  font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}

/* ---------- Flywheel diagram ---------- */
.flywheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 500px;
  margin: 0 auto;
}
.fw-ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(34,197,94,0.3);
  animation: spin 30s linear infinite;
}
.fw-ring-2 { inset: 8%; border-style: solid; border-color: rgba(34,197,94,0.12); animation: spin 50s linear infinite reverse; }
.fw-ring-3 { inset: 28%; border-color: rgba(16,245,168,0.25); animation: spin 22s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.fw-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0E1A14, #06080A);
  border: 1px solid rgba(34,197,94,0.3);
  box-shadow: 0 0 60px -10px rgba(34,197,94,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 2;
}
.fw-sphere-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 78% 20%, rgba(16,245,168,0.65) 0%, rgba(34,197,94,0.3) 16%, transparent 48%),
    radial-gradient(circle at 22% 80%, rgba(34,197,94,0.12) 0%, transparent 35%);
  animation: fw-sphere-spin 6s linear infinite;
}
@keyframes fw-sphere-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.fw-center-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(20%);
}

.fw-node {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(34,197,94,0.3);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6);
  z-index: 3;
}
.fw-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #06080A;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}
.fw-n1 { top: 4%;        left: 50%; transform: translateX(-50%); animation: floatA 6s ease-in-out infinite; }
.fw-n2 { top: 50%;       right: 0;  transform: translateY(-50%); animation: floatA 7s ease-in-out infinite .4s; }
.fw-n3 { bottom: 4%;     left: 50%; transform: translateX(-50%); animation: floatA 6s ease-in-out infinite .8s; }
.fw-n4 { top: 50%;       left: 0;   transform: translateY(-50%); animation: floatA 7s ease-in-out infinite 1.2s; }

@media (max-width: 639px) {
  .flywheel { max-width: 100%; }
  .fw-node { padding: 7px 11px; font-size: 11px; gap: 7px; }
  .fw-num  { width: 18px; height: 18px; font-size: 9px; }
  /* Spread pills to opposite corners so none overlap */
  .fw-n1 { top: 8%;  left: 0;  transform: none; }
  .fw-n2 { top: 16%; right: 0; transform: none; }
  .fw-n4 { top: auto; bottom: 16%; left: 0; transform: none; }
}

/* ---------- Whitepaper card ---------- */
.paper-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    radial-gradient(circle at 0% 0%, rgba(34,197,94,0.18), transparent 50%);
  border: 1px solid rgba(34,197,94,0.18);
  box-shadow: 0 30px 80px -30px rgba(34,197,94,0.5);
  transform: rotate(-1deg);
  transition: transform .3s ease;
}
.paper-card:hover { transform: rotate(0deg); }
.paper-header { display: flex; justify-content: space-between; align-items: center; }
.paper-divider {
  height: 1px; margin: 18px 0;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-3), transparent);
}
.paper-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item:hover { border-color: rgba(34,197,94,0.3); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: "JetBrains Mono", monospace; font-size: 18px; color: rgba(255,255,255,0.5);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: "−"; color: var(--grad-3); }
.faq-item p {
  padding: 0 22px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 36px;
  transform: translate(-50%, 24px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(16,245,168,0.12);
  color: var(--grad-4);
  border: 1px solid rgba(16,245,168,0.3);
  font-size: 13px; font-family: "JetBrains Mono", monospace;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Reduced motion: only the most motion-heavy stuff ----------
   Keeping the ticker, orb rotation, pulses & chart draw — these are
   gentle and intentional. Only disabling the floating background blobs
   and scroll-reveal transitions for users with reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  .mesh-blob,
  .floater,
  .reveal { animation: none !important; transition: none !important; }
}
