/* ================================================================
   HERO.CSS — AVRA Prime · v2
   Correções: sem overflow que embaralha o H1 no mobile,
   meta no fluxo, 100svh, animação de 5,2s → 0,9s (LCP)
   ================================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--space);
  padding: clamp(104px, 13vh, 152px) 0 clamp(40px, 7vh, 72px);
  isolation: isolate;
}
@supports not (min-height: 100svh) {
  .hero {
    min-height: 100vh;
  }
}

/* ── Background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.42) contrast(1.1) saturate(0.62);
  transform: scale(1.06);
  animation: heroReveal 1500ms var(--ease) both;
}
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(11, 18, 32, 0.74) 0%,
      rgba(11, 18, 32, 0.34) 30%,
      rgba(11, 18, 32, 0.56) 70%,
      rgba(11, 18, 32, 0.97) 100%
    ),
    radial-gradient(
      ellipse at 70% 20%,
      rgba(0, 212, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(200, 169, 106, 0.08) 0%,
      transparent 55%
    );
  animation: heroFade 1100ms var(--ease) both;
}

.hero-bloom {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 12%;
  right: 6%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.16) 0%,
    transparent 68%
  );
  filter: blur(48px);
  animation: heroFade 1600ms var(--ease) 200ms both;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  animation: heroFade 2000ms var(--ease) 500ms forwards;
}
.hero-lines g {
  opacity: 0.16;
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Conteúdo ── */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--soft-white);
}

/* ── Badges ── */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 3vh, 30px);
  animation: heroUp 700ms var(--ease) both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--champagne-light);
  border: 1px solid rgba(200, 169, 106, 0.34);
  background: rgba(200, 169, 106, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-badge--alert {
  color: #7fe3ff;
  border-color: rgba(0, 212, 255, 0.32);
  background: rgba(0, 212, 255, 0.07);
}
.hero-badge--offer {
  color: #6fe9c2;
  border-color: rgba(0, 196, 140, 0.34);
  background: rgba(0, 196, 140, 0.09);
}

/* ── Título (sem overflow:hidden — era a causa do embaralhamento) ── */
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 92px);
  line-height: 1.09;
  letter-spacing: -0.018em;
  margin: 0 0 clamp(20px, 3vh, 30px);
  max-width: 1120px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--champagne-light);
}
.hero-title .line {
  display: block;
  overflow: visible;
}
.hero-title .line > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: heroUp 720ms var(--ease) both;
}
.hero-title .line:nth-child(1) > span {
  animation-delay: 60ms;
}
.hero-title .line:nth-child(2) > span {
  animation-delay: 160ms;
}
.hero-title .line:nth-child(3) > span {
  animation-delay: 260ms;
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Subtítulo e CTAs ── */
.hero-sub {
  max-width: 66ch;
  font-size: clamp(15px, 1.15vw, 18.5px);
  line-height: 1.72;
  color: var(--cool-gray);
  margin: 0 0 clamp(26px, 4vh, 40px);
  font-weight: 300;
  animation: heroUp 760ms var(--ease) 380ms both;
}
.hero-sub strong {
  color: var(--soft-white);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  animation: heroUp 760ms var(--ease) 480ms both;
}

/* ── Meta: no fluxo, não mais absoluto ── */
.hero-meta {
  position: static;
  margin-top: auto;
  padding-top: clamp(30px, 6vh, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 72px);
  animation: heroUp 800ms var(--ease) 620ms both;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.meta-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.meta-value {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
  color: var(--soft-white);
  letter-spacing: 0.03em;
}
.meta-value em {
  font-style: normal;
  font-size: 0.56em;
  color: var(--champagne);
}

/* ── Scroll cue ── */
.hero-scroll {
  position: absolute;
  z-index: 5;
  right: 48px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  animation: heroFade 900ms var(--ease) 900ms both;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cyan) 0%, transparent 100%);
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: var(--cyan);
  animation: scrollPulse 2200ms var(--ease) infinite;
}
@keyframes scrollPulse {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(300%);
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img,
  .hero-overlay,
  .hero-bloom,
  .hero-lines,
  .hero-badges,
  .hero-title .line > span,
  .hero-sub,
  .hero-actions,
  .hero-meta,
  .hero-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-lines {
    opacity: 0.16 !important;
  }
}
