:root {
  --bg: #0a0e14; --border: #232d3d; --text: #e6edf6; --muted: #8b97a8;
  --accent: #3ddc97;
  /* Dollar signs render at BIG scale; the cursor shrinks them to 1/--big, i.e. their
     original (pre-enlargement) size. */
  --big: 2.4;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #0d131c 0%, #0a0e14 60%);
}
.hero-inner {
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 32px 112px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.copy { max-width: 36rem; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
h1 { margin: 12px 0 0; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 20px 0 0; max-width: 28rem; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }

.hero-aurora {
  position: absolute; inset: -20%; z-index: -1; filter: blur(60px); opacity: .55;
  background:
    radial-gradient(40% 40% at 78% 40%, rgb(61 220 151 / .45), transparent 70%),
    radial-gradient(35% 35% at 30% 80%, rgb(91 140 255 / .3), transparent 70%),
    radial-gradient(30% 30% at 55% 10%, rgb(61 220 151 / .18), transparent 70%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 90% at 75% 50%, #000 20%, transparent 75%);
}
.accent {
  background: linear-gradient(100deg, #3ddc97 0%, #b6ffd9 45%, #3ddc97 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}

.soon {
  position: absolute; left: 0; right: 0; bottom: 32px; text-align: center;
  font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}

/* Coin */
.coin-stage { position: relative; width: 260px; height: 260px; flex: none; display: grid; place-items: center; }
.coin-ring { position: absolute; border-radius: 999px; border: 1px solid rgb(61 220 151 / .35); }
.coin-ring.r1 { inset: 0; border-style: dashed; animation: spin 40s linear infinite; }
.coin-ring.r2 { inset: 26px; border-color: rgb(91 140 255 / .3); animation: spin 28s linear infinite reverse; }
.coin-ring.r3 { inset: 54px; animation: ring-pulse 3.2s ease-out infinite; }
.coin-ring.r3::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgb(61 220 151 / .6); animation: ring-pulse 3.2s ease-out 1.6s infinite; }
.coin-orbit { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.coin-orbit::before { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 14px 3px rgb(61 220 151 / .8); }
.coin {
  position: relative; width: 136px; height: 136px; border-radius: 999px; display: grid; place-items: center;
  font-size: 80px; font-weight: 700; line-height: 1; color: #06210f;
  background: radial-gradient(circle at 32% 28%, #d8ffe9 0%, #3ddc97 45%, #19915f 100%);
  box-shadow: 0 0 60px 8px rgb(61 220 151 / .35), inset 0 -8px 18px rgb(0 0 0 / .25);
  animation: coin-bob 4.5s ease-in-out infinite;
}
.coin span { display: block; animation: coin-flip 7s ease-in-out infinite; text-shadow: 0 2px 0 rgb(255 255 255 / .35); }

/* Floating dollar signs.
   Two nested elements so the two motions never fight:
   .float-dollar  -> drifts upward (transform animation, never paused)
   .float-dollar i -> scales with the cursor (transition on its own transform) */
.float-dollar {
  position: absolute; bottom: -12%; left: var(--x);
  font-weight: 600; font-size: var(--s); line-height: 1;
  opacity: 0; pointer-events: none;
  animation: float-up var(--d) linear var(--delay) infinite;
}
.float-dollar i {
  display: block; font-style: normal;
  color: #ff7a85;                                  /* soft red until the pointer arrives */
  transform: scale(var(--big)); transform-origin: 50% 50%;
  text-shadow: 0 0 18px rgb(255 122 133 / .4);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), color .6s ease, text-shadow .6s ease;
}
/* near: shrink to the original size while fading red -> green */
.float-dollar.near i { transform: scale(1); color: var(--accent); text-shadow: 0 0 10px rgb(61 220 151 / .35); }

/* Pointer aurora: a soft green glow that follows the cursor inside the hero. */
.cursor-aurora {
  position: absolute; left: 0; top: 0; width: 340px; height: 340px; margin: -170px 0 0 -170px;
  z-index: -1; pointer-events: none; opacity: 0; border-radius: 999px; filter: blur(28px);
  background:
    radial-gradient(closest-side, rgb(61 220 151 / 0.42), rgb(61 220 151 / 0.16) 55%, transparent 100%),
    radial-gradient(60% 60% at 65% 35%, rgb(91 140 255 / 0.18), transparent 70%);
  transform: translate3d(var(--ax, 0px), var(--ay, 0px), 0);
  transition: opacity 0.4s ease, transform 0.18s ease-out;
}
.cursor-aurora.on { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes aurora-drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
@keyframes ring-pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes coin-bob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(6px); } }
@keyframes coin-flip { 0%, 55%, 100% { transform: rotateY(0); } 70% { transform: rotateY(360deg); } }
/* travel is in vh so signs cross the whole (now full-screen) hero */
@keyframes float-up {
  0%   { transform: translateY(0) rotate(-8deg); opacity: 0; }
  12%  { opacity: .5; }
  85%  { opacity: .25; }
  100% { transform: translateY(-115vh) rotate(10deg); opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--i, 0ms); }

@media (max-width: 800px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; padding: 48px 24px 112px; }
  .coin-stage { align-self: center; }
  .coin-stage { width: 200px; height: 200px; }
  .coin { width: 104px; height: 104px; font-size: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .accent, .coin-ring, .coin-orbit, .coin, .coin span, .rise { animation: none !important; }
  #floaters, .cursor-aurora { display: none; }
}
