/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6.25rem, 10vh, 7.75rem) 0 clamp(4.25rem, 8vh, 6rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(82, 170, 183, 0.16), transparent 34%),
    radial-gradient(circle at 50% 78%, rgba(0, 205, 208, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(2, 20, 49, 0.98) 0%, rgba(3, 18, 43, 0.98) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0%, rgba(126, 212, 221, 0.08) 50%, transparent 100%);
  background-size: 32px 32px, 100% 100%;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 76%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: min(1180px, 88vw);
  aspect-ratio: 1;
  border: 1px solid rgba(126, 212, 221, 0.14);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 0 80px rgba(126, 212, 221, 0.05);
  pointer-events: none;
}

.hero__aura {
  position: absolute;
  left: 50%;
  top: 28%;
  width: min(920px, 78vw);
  aspect-ratio: 1 / 0.55;
  background: radial-gradient(ellipse at center, rgba(0, 210, 208, 0.22), rgba(62, 131, 141, 0.12) 44%, transparent 72%);
  filter: blur(58px);
  transform: translateX(-50%);
  animation: hero-aura 9s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.hero__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(126, 212, 221, 0.1) 48%, transparent 56%);
  transform: translateY(-100%);
  animation: hero-scan 8s linear infinite;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__market-ribbon {
  position: absolute;
  top: 96px;
  left: 50%;
  width: min(980px, 84vw);
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-8);
  padding: 0.55rem 1rem;
  border: 1px solid rgba(126, 212, 221, 0.12);
  border-radius: var(--radius-full);
  background: rgba(3, 19, 45, 0.38);
  box-shadow: inset 0 0 24px rgba(126, 212, 221, 0.04);
  overflow: hidden;
  color: rgba(196, 239, 242, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}

.hero__market-ribbon span {
  flex: 0 0 auto;
  animation: market-ribbon 24s linear infinite;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.hero__content {
  width: min(940px, 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin-bottom: var(--space-5);
}

.hero__headline {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.25vw, 3.05rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--color-white);
  margin: 0 auto var(--space-4);
  max-width: 580px;
  text-wrap: balance;
}

.hero__headline .highlight {
  display: block;
}

.hero__subtext {
  font-size: clamp(0.875rem, 1.05vw, 1rem);
  color: var(--color-white-60);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto var(--space-5);
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__showcase {
  position: relative;
  width: min(1000px, 100%);
  margin: clamp(1.4rem, 3vw, 2.35rem) auto 0;
  perspective: 1400px;
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__deck {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  transform: rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translate3d(0, 0, 0);
  transform-origin: center;
  animation: hero-deck-float 8s ease-in-out infinite;
  filter: drop-shadow(0 34px 90px rgba(0, 0, 0, 0.48));
}

.hero__deck::before {
  content: '';
  position: absolute;
  inset: 19% 10% 17%;
  background: radial-gradient(ellipse at center, rgba(0, 222, 219, 0.28), transparent 68%);
  filter: blur(30px);
  animation: hero-pulse 4s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.hero__deck::after {
  content: '';
  position: absolute;
  inset: 13% 9% 8%;
  border: 1px solid rgba(126, 212, 221, 0.13);
  border-radius: 28px;
  opacity: 0.8;
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
}

.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  min-width: 132px;
  padding: 0.72rem 0.86rem;
  border: 1px solid rgba(126, 212, 221, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(7, 26, 58, 0.82), rgba(5, 37, 72, 0.52)),
    radial-gradient(circle at 20% 20%, rgba(126, 212, 221, 0.14), transparent 48%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  animation: chip-drift 7s ease-in-out infinite;
}

.hero-chip::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-chip span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--color-white-40);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-chip strong {
  display: block;
  color: #dffcff;
  font-size: 0.92rem;
  line-height: 1.1;
}

.hero-chip--rules {
  top: 18%;
  left: -3%;
}

.hero-chip--odds {
  top: 16%;
  right: 5%;
  animation-delay: -1.4s;
}

.hero-chip--payout {
  right: -2%;
  bottom: 19%;
  animation-delay: -2.8s;
}

.hero-chip--phase {
  left: 8%;
  bottom: 13%;
  animation-delay: -4.2s;
}

.hero__beam {
  position: absolute;
  left: 6%;
  width: 88%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 212, 221, 0.7), transparent);
  filter: drop-shadow(0 0 12px rgba(126, 212, 221, 0.6));
  opacity: 0.56;
  pointer-events: none;
}

.hero__beam--one {
  top: 28%;
  animation: hero-beam-one 5.6s ease-in-out infinite;
}

.hero__beam--two {
  bottom: 16%;
  animation: hero-beam-two 6.2s ease-in-out infinite;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white-40);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary-glow), transparent);
}

@keyframes hero-aura {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@keyframes hero-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes hero-deck-float {
  0%, 100% { transform: rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translate3d(0, 0, 0); }
  50% { transform: rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translate3d(0, -12px, 0); }
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.48; transform: scale(0.98); }
  50% { opacity: 0.92; transform: scale(1.04); }
}

@keyframes hero-beam-one {
  0%, 100% { opacity: 0.16; transform: translateX(-12%); }
  50% { opacity: 0.7; transform: translateX(10%); }
}

@keyframes hero-beam-two {
  0%, 100% { opacity: 0.14; transform: translateX(12%); }
  50% { opacity: 0.58; transform: translateX(-10%); }
}

@keyframes market-ribbon {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - var(--space-8))); }
}

@keyframes chip-drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.78; }
  50% { transform: translate3d(0, -12px, 0); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 98px;
    padding-bottom: var(--space-16);
  }

  .hero__headline {
    font-size: clamp(1.9rem, 5.8vw, 2.9rem);
  }

  .hero__showcase {
    width: min(920px, 112vw);
  }

  .hero__market-ribbon {
    top: 88px;
    width: 92vw;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 96px;
    padding-bottom: var(--space-14);
  }

  .hero__headline {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
  }

  .hero__showcase {
    width: min(100%, 100vw);
    margin-top: var(--space-5);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .hero__market-ribbon {
    display: none;
  }

  .hero__chips {
    display: none;
  }

  .hero__beam {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 96px;
    padding-bottom: var(--space-12);
  }

  .hero__eyebrow {
    margin-bottom: var(--space-4);
  }

  .hero__headline {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: var(--space-4);
  }

  .hero__subtext {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
  }

  .hero__ctas {
    gap: var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__aura,
  .hero__scan,
  .hero__deck,
  .hero__deck::before,
  .hero__beam,
  .hero__market-ribbon span,
  .hero-chip {
    animation: none;
  }
}
