/* ==========================================================================
   u.cash - Hero Section
   Full viewport, Three.js canvas behind, badge, gradient heading, CTAs.
   ========================================================================== */

/* ---- Hero Section ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: var(--space-2xl);
}

/* Three.js canvas behind content - created dynamically by three-scene.js */
.hero canvas {
  position: absolute;
  inset: 0;
  z-index: var(--z-canvas);
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Overlay gradient for readability over canvas */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(204, 153, 51, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.6) 100%
    );
  pointer-events: none;
}

[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(153, 114, 38, 0.05) 0%,
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      transparent 30%,
      transparent 70%,
      rgba(255, 255, 255, 0.8) 100%
    );
}

/* ---- Hero Content ---- */

.hero-content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  max-width: 800px;
  padding-inline: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* ---- Hero Badge / Pill ---- */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1.25rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold-primary);
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-muted);
  border-radius: var(--radius-full);
  animation: fade-down 0.6s var(--ease-out) 0.2s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-gold-primary);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ---- Hero Heading ---- */

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  animation: fade-up 0.8s var(--ease-out) 0.3s both;
}

.hero-title-gradient {
  background: linear-gradient(
    135deg,
    var(--color-gold-light) 0%,
    var(--color-gold-primary) 30%,
    #ffffff 50%,
    var(--color-gold-primary) 70%,
    var(--color-gold-light) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

[data-theme="light"] .hero-title-gradient {
  background: linear-gradient(
    135deg,
    var(--color-gold-dark) 0%,
    var(--color-gold-primary) 30%,
    #1a1a1a 50%,
    var(--color-gold-primary) 70%,
    var(--color-gold-dark) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Hero Description ---- */

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  animation: fade-up 0.8s var(--ease-out) 0.5s both;
}

/* ---- Hero CTA Buttons ---- */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  animation: fade-up 0.8s var(--ease-out) 0.7s both;
}

/* ---- Hero Mini Stats ---- */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: 600px;
  animation: fade-up 0.8s var(--ease-out) 0.9s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-gold-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ---- Scroll Indicator ---- */

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: var(--z-base);
  animation: fade-in 0.8s var(--ease-out) 1.2s both;
}

.scroll-indicator span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-gold-primary);
  border-bottom: 2px solid var(--color-gold-primary);
  transform: rotate(45deg);
  animation: scroll-indicator 2s ease-in-out infinite;
  opacity: 0.7;
}

/* ---- Responsive ---- */

@media (max-width: 575.98px) {
  .hero {
    padding-top: 72px;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .scroll-indicator {
    bottom: var(--space-md);
  }
}

@media (min-width: 768px) {
  .hero-content {
    gap: var(--space-xl);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-description {
    font-size: var(--text-xl);
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: var(--text-7xl);
  }

  .hero-description {
    font-size: var(--text-xl);
    max-width: 640px;
  }

  .hero-stats {
    gap: var(--space-2xl);
  }

  .hero-stat-value {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 900px;
  }
}
