/* assets/css/hero.css */

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */

.radiance-gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(139, 107, 191, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(212, 162, 84, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 50% 80%,
      rgba(139, 107, 191, 0.05) 0%,
      transparent 60%
    ),
    var(--bg);
  background-size:
    200% 200%,
    200% 200%,
    200% 200%,
    auto;
  animation: gradientDrift 20s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
  0% {
    background-position:
      0% 50%,
      100% 0%,
      50% 100%,
      center;
  }
  100% {
    background-position:
      30% 70%,
      70% 30%,
      60% 80%,
      center;
  }
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.6s var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
}

#particles-canvas.dimmed {
  opacity: 0.2;
}

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

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

/* ============================================================
   CONCENTRIC RINGS
   ============================================================ */

.hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 80vw);
  height: min(480px, 80vw);
  pointer-events: none;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 6s ease-in-out infinite;
}

/* Ring 1 — outermost, purpura 10% border */
.hero__ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(139, 107, 191, 0.1);
  animation-delay: 0s;
}

/* Ring 2 — 75%, purpura 15% border */
.hero__ring:nth-child(2) {
  width: 75%;
  height: 75%;
  border: 1px solid rgba(139, 107, 191, 0.15);
  animation-delay: 0.5s;
}

/* Ring 3 — 50%, dourado 15% border */
.hero__ring:nth-child(3) {
  width: 50%;
  height: 50%;
  border: 1px solid rgba(212, 162, 84, 0.15);
  animation-delay: 1s;
}

/* Ring 4 — 25%, dourado 20% border */
.hero__ring:nth-child(4) {
  width: 25%;
  height: 25%;
  border: 1px solid rgba(212, 162, 84, 0.2);
  animation-delay: 1.5s;
}

/* Ring 5 — 10%, no border, radial-gradient fill */
.hero__ring:nth-child(5) {
  width: 10%;
  height: 10%;
  border: none;
  background: radial-gradient(
    circle,
    rgba(139, 107, 191, 0.2) 0%,
    transparent 100%
  );
  animation-delay: 2s;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
}

/* ============================================================
   LOGO
   ============================================================ */

.logo {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--abismo);
  font-style: normal;
}

.logo em {
  font-style: italic;
  color: var(--purpura);
}

.logo--large {
  font-size: clamp(52px, 8vw, 88px);
}

/* ============================================================
   HERO TITLE
   ============================================================ */

.hero__title {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.8s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) 0.6s
    forwards;
}

/* ============================================================
   HERO TAGLINE
   ============================================================ */

.hero__tagline {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: var(--text-overline);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--dourado-text-safe);
  margin-top: var(--space-md);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.6s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) 1s
    forwards;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) 2s
    forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--purpura-light));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
}

/* ============================================================
   KEYFRAMES — FADE IN UP
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 767px) {
  .hero__rings {
    width: min(320px, 90vw);
    height: min(320px, 90vw);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .radiance-gradient-bg {
    animation: none;
  }

  .hero__ring {
    animation: none;
    opacity: 0.6;
  }

  .hero__title,
  .hero__tagline,
  .hero__scroll-indicator {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__scroll-line {
    animation: none;
    opacity: 0.7;
  }
}
