/* ============================================================
   SEÇÃO 1 — HERO
   - Fundo navy com gradiente e textura
   - Headline grande com palavra-âncora azul
   - VSL (player YouTube) com overlay "Toque para ouvir"
   - CTA principal + microcopy de confiança
   ============================================================ */

/* Animação de entrada (todos os elementos do hero, no load) */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__inner > * {
  animation: hero-fade-up 700ms var(--ease-out) backwards;
}

.hero__inner > *:nth-child(1) { animation-delay: 0ms; }
.hero__inner > *:nth-child(2) { animation-delay: 100ms; }
.hero__inner > *:nth-child(3) { animation-delay: 200ms; }
.hero__inner > *:nth-child(4) { animation-delay: 300ms; }
.hero__inner > *:nth-child(5) { animation-delay: 420ms; }
.hero__inner > *:nth-child(6) { animation-delay: 540ms; }

.hero {
  position: relative;
  background: var(--color-navy-deep);
  color: var(--color-text-on-dark);
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(3rem, 2rem + 3vw, 5rem);
  isolation: isolate;
}

/* ----- Atmosfera de fundo: gradient radial + grid sutil ----- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 113, 188, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(27, 20, 100, 0.5), transparent 70%);
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}

/* ----- Faixa de qualificação (acima da headline) ----- */
.hero__qualifier {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 113, 188, 0.14);
  border: 1px solid rgba(0, 113, 188, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  color: #6FBEEC;
  margin-bottom: var(--space-6);
}

.hero__qualifier::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #4DA8E8;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px #4DA8E8;
  animation: hero-pulse-dot 2s ease-in-out infinite;
}

@keyframes hero-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ----- Headline ----- */
.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}

.hero__title .highlight {
  background: linear-gradient(135deg, #4DA8E8 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-blue);
}

/* ----- Subtítulo ----- */
.hero__subtitle {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-on-dark-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  text-wrap: pretty;
}

.hero__subtitle strong {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

/* ----- CTA + microcopy ----- */
.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}

.hero__microcopy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--color-text-on-dark-muted);
}

.hero__microcopy-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__microcopy-dot {
  width: 6px;
  height: 6px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--color-blue-glow);
}

.hero__microcopy strong {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

/* ============================================================
   VSL — Player customizado por cima do iframe YouTube
   ============================================================ */
.vsl {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 113, 188, 0.25),
    0 0 60px rgba(0, 113, 188, 0.18);
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.vsl::after {
  /* contorno de brilho animado */
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 113, 188, 0.6),
    transparent 40%,
    transparent 60%,
    rgba(77, 168, 232, 0.5)
  );
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
  animation: vsl-glow 4s ease-in-out infinite alternate;
}

@keyframes vsl-glow {
  from { opacity: 0.4; transform: scale(0.99); }
  to { opacity: 0.8; transform: scale(1.01); }
}

.vsl__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Poster placeholder (enquanto não tem VIDEO_ID real) ---- */
.vsl__poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0828 0%, #1B1464 60%, #0a0828 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.vsl__poster-glow {
  position: absolute;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 113, 188, 0.35), transparent 70%);
  filter: blur(40px);
}

/* ---- Overlay "Toque para ouvir" ---- */
.vsl__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: linear-gradient(135deg,
    rgba(0, 113, 188, 0.78),
    rgba(27, 20, 100, 0.72)
  );
  color: var(--color-white);
  font-family: var(--font-display);
  text-align: center;
  padding: var(--space-6);
  transition: opacity var(--transition-base);
  cursor: pointer;
  z-index: 2;
}

.vsl__overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.vsl__overlay-status {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vsl__overlay-status::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #FF4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  animation: live-dot 1.6s ease-in-out infinite;
}

@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

.vsl__overlay-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.vsl__overlay-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.vsl__overlay-icon {
  width: 44px;
  height: 44px;
  background: var(--color-white);
  color: var(--color-blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-base);
}

.vsl__overlay:hover .vsl__overlay-icon {
  transform: scale(1.08);
}

.vsl__overlay-icon svg {
  width: 22px;
  height: 22px;
}

/* ---- Trust bar abaixo do vídeo ---- */
.hero__trust {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero__trust-stars {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-white);
}

.hero__trust-stars-icons {
  display: inline-flex;
  gap: 2px;
  color: #FFC83D;
}

.hero__trust-stars-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero__trust-text {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
}

.hero__trust-text strong {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

.hero__trust-result {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  letter-spacing: var(--tracking-wide);
}

.hero__trust-result .accent {
  color: var(--color-blue);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 600px) {
  .vsl {
    border-radius: var(--radius-lg);
  }
  .vsl__overlay-status {
    font-size: var(--fs-lg);
  }
  .vsl__overlay-action {
    font-size: var(--fs-base);
  }
  .vsl__overlay-icon {
    width: 38px;
    height: 38px;
  }
  .vsl__overlay-icon svg {
    width: 18px;
    height: 18px;
  }
  .hero__microcopy {
    flex-direction: column;
    gap: var(--space-2);
  }
}
