/* ============================================================
   Hero — a stacked composition: message, then the animated band.

     Zone 1 (top):  the message — a big, left-aligned headline +
                    subhead + email capture, in normal flow.
     Zone 2 (below): the orchestration band — deposit feeds DOWN
                    into the central console; withdraw + checkout
                    branch LEFT and RIGHT. hero.js sizes/places the
                    stage and draws the connector rails. On mobile
                    the band stacks into a single column.

   The two zones never overlap — the visual supports the message
   instead of fighting it for the same space.

   stage.css is intentionally NOT loaded (it is a full-page scene
   stylesheet). Everything is scoped to .hero / .hero-anim.
   ============================================================ */

/* ---- page base (overrides widget.css' full-page body) ---- */
html, body { height: auto; }
body {
  margin: 0;
  padding: 0;
  background: var(--gray-1);
  color: var(--alpha-12);
  font-family: "Inter", Arial, sans-serif;
  display: block;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- hero shell ---- */
.hero {
  position: relative;
  padding: 4rem 2.5rem 0;   /* no bottom pad — the next section's top owns the gap */
}
.hero-inner {
  position: relative;
  max-width: 64rem;          /* = 1024px — SAME grid as the nav, so the hero sits
                                inset & framed (≈208px margins) rather than edge-left */
  margin: 0 auto;
}

/* ---- the message: left-aligned, in normal flow ON TOP ---- */
.hero-copy {
  max-width: none;
}

/* ---- announcement pill (fun.xyz "banner": ring → fill, with a rotating shine) ---- */
.hero-pill {
  position: relative;
  display: inline-flex;
  margin: 0 0 2.5rem;
  padding: 1px;                       /* the 1px ring */
  border-radius: 999px;
  background: #222;                   /* static ring base */
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.hero-pill::before {                  /* a single bright arc travelling around the ring */
  content: "";
  position: absolute;
  inset: -120%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(255, 255, 255, 0.5) 78%, transparent 90% 100%);
  animation: hero-pill-spin 5s linear infinite;
}
.hero-pill_inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #191919;
}
.hero-pill_label { font-size: 15px; line-height: 1.5; color: #fff; }
.hero-pill_arrow {
  display: flex;
  width: 16px; height: 16px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s var(--ease);
}
.hero-pill:hover .hero-pill_arrow { transform: translateX(2px); }
@keyframes hero-pill-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .hero-pill::before { animation: none; } }
.hero-title {
  margin: 0;
  max-width: 55rem;          /* tight 2-line block (left column), not full-width */
  font-family: "Suisse Intl", Georgia, sans-serif;
  font-size: clamp(2.25rem, 5.6vw, 5rem);   /* 80px max — matches fun.xyz exactly */
  font-weight: 400;
  letter-spacing: -0.04em;   /* fun.xyz's tracking at this size */
  line-height: 1.05;
  text-wrap: balance;        /* even line lengths, no ragged orphan */
}
.nowrap { white-space: nowrap; }   /* keep hyphenated compounds like "multi-chain" whole */
.hero-sub {
  margin: 1.5rem 0 0;
  max-width: 56.5rem;        /* matches fun.xyz's 905px subhead block (was a narrow 34rem) */
  color: var(--gray-10);
  font-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  line-height: 1.55;
}
.hero-sub .lead { color: #eee; }   /* bright lead clause — fun.xyz's gray12 two-tone */

/* ---- the animated orchestration band (its own zone, below the message) ---- */
.hero-anim {
  position: relative;
  width: 100%;
  margin-top: 5.5rem;        /* clear separation from the message above */
  background: transparent;
}
.hero-anim .stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  background: transparent;
  overflow: visible;
  isolation: isolate;
}
.hero-anim .panel { position: absolute; opacity: 1 !important; }
.hero-anim .panel .uf-dialog { margin: 0; animation: none; }

/* deposit (left of the band): narrower + a touch taller (more portrait) so its rail
   to the console runs long and gently curved. The extra height comes from roomier
   ROWS, not from gaps between them — the buttons stay tightly grouped. */
.hero-anim .panel[data-box="deposit"] .uf-method { padding-top: 12px; padding-bottom: 12px; }
.hero-anim .panel[data-box="deposit"] .uf-methods > * + * { margin-top: 8px; }
.hero-anim .panel > * {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 80px -26px rgba(0, 0, 0, 0.85),
    0 8px 22px -14px rgba(0, 0, 0, 0.55);
}

/* token coins riding the rails */
.hero-anim .coin {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
}
.hero-anim .coin img { width: 100%; height: 100%; display: block; border-radius: 50%; }

/* connector rails + lit state */
.hero-anim .orch-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.hero-anim .orch-lines .rail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.4s ease, stroke-width 0.4s ease;
}
.hero-anim .orch-lines .rail.active { stroke: rgba(255, 255, 255, 0.6); stroke-width: 2.5; }

/* ============================================================
   Supported-assets ticker — an infinite crypto-logo marquee that
   scrolls below the band. Two passes of logos + translateX(-50%)
   give a seamless loop; the mask fades both edges.
   ============================================================ */
.crypto-bar {
  margin-top: 6.05rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.crypto-marquee_track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: crypto-scroll 48s linear infinite;
}
.crypto-bar:hover .crypto-marquee_track { animation-play-state: paused; }
.crypto-coin { flex: none; padding: 0 1.25rem; }   /* even gaps → seamless -50% loop */
.crypto-coin img {
  width: 26px; height: 26px;
  display: block;
  border-radius: 50%;
  filter: grayscale(1);              /* unified, muted set — not a rainbow of badges */
  opacity: 0.4;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}
.crypto-coin img:hover { filter: grayscale(0); opacity: 1; }   /* colour returns on hover */
@keyframes crypto-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .crypto-marquee_track { animation: none; } }

/* ============================================================
   RESPONSIVE — the message stays left-aligned on top; the band
   keeps its horizontal desktop composition and simply scales down
   to the narrower content column (hero.js Stage, fit:"width").
   ============================================================ */
@media (max-width: 1024px) {
  .hero { padding: 3.5rem 1.5rem 0; }
  .hero-sub { max-width: none; }
  .hero-anim { margin-top: 4rem; }   /* full content width — the cluster scales to fit */
  .crypto-bar { margin-top: 4.5rem; }   /* ticker gap tracks the shrinking band */
}
@media (max-width: 600px) {
  .hero { padding: 2.75rem 1.25rem 0; }
  .hero-anim { margin-top: 3rem; }
  .crypto-bar { margin-top: 3rem; }
}
