/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: var(--space-5xl) var(--space-2xl);
}

/* Smooth fade into next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: var(--z-base);
  pointer-events: none;
}

/* Gradient mesh background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  overflow: hidden;
}

/* Canvas cosmic animation */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: var(--gradient-hero);
  animation: gradientShift 20s ease-in-out infinite;
  background-size: 200% 200%;
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__orb--1 {
  width: clamp(200px, 30vw, 500px);
  height: clamp(200px, 30vw, 500px);
  background: var(--color-accent);
  opacity: 0.06;
  top: 10%;
  right: 10%;
  animation: float 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: clamp(150px, 25vw, 400px);
  height: clamp(150px, 25vw, 400px);
  background: var(--color-secondary);
  opacity: 0.05;
  bottom: 20%;
  left: 15%;
  animation: floatReverse 15s ease-in-out infinite;
}

.hero__orb--3 {
  width: clamp(100px, 20vw, 300px);
  height: clamp(100px, 20vw, 300px);
  background: var(--color-tertiary);
  opacity: 0.04;
  top: 40%;
  left: 50%;
  animation: float 18s ease-in-out infinite;
}

[data-theme="light"] .hero__orb--1 { opacity: 0.08; }
[data-theme="light"] .hero__orb--2 { opacity: 0.06; }
[data-theme="light"] .hero__orb--3 { opacity: 0.05; }

/* Content */
.hero__content {
  position: relative;
  z-index: var(--z-raised);
  max-width: 900px;
  padding-inline: var(--container-padding);
}


.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 0.2s forwards;
}

.hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 0.4s forwards;
}

.hero__title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 0.6s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__cta-arrow {
  width: 18px;
  height: 18px;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Scroll indicator — dots */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: heroReveal 0.8s var(--ease-out) 1.2s forwards;
}

.hero__scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  animation: scrollDotBlink 2.5s ease-in-out infinite;
}

.hero__scroll-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.hero__scroll-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes scrollDotBlink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}


/* Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 90dvh;
    padding-block: var(--space-4xl) var(--space-3xl);
  }

  .hero__title {
    letter-spacing: -0.03em;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__scroll {
    display: none;
  }
}
