/* Hero poster — tipografia editorial (cores R MKT) */

.hero-poster {
  color: #daf1dd;
  background: transparent;
}

.hero-poster-glow {
  position: absolute;
  width: min(460px, 70vw);
  height: min(460px, 70vw);
  left: 50%;
  top: 38%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(142, 182, 155, 0.55) 0%,
    rgba(35, 83, 71, 0.28) 35%,
    transparent 70%
  );
  filter: blur(10px);
  animation: posterGlowDrift 8s ease-in-out infinite;
}

.hero-poster-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(218, 241, 221, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 241, 221, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, black 0%, black 75%, transparent 100%);
  animation: posterGridFade 1.2s ease forwards;
}

body.rmkt-site .hero.hero-poster .hero-poster-inner {
  grid-template-columns: 1fr !important;
  justify-items: center;
  text-align: center;
  align-items: center;
  gap: clamp(24px, 3.5vw, 40px);
}

.hero-poster-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 920px;
}

.hero-poster-top,
.hero-poster-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-poster-top,
.hero-poster-bottom,
.hero-poster-separator {
  position: relative;
  z-index: 2;
}

.hero-poster-question {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
  line-height: 0.85;
  margin: 0 0 8px;
  letter-spacing: -0.04em;
  color: rgba(218, 241, 221, 0.92);
}

.hero-poster-shout {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.78;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.07em;
  color: #daf1dd;
  transform: skewX(-7deg);
  transform-origin: center center;
  text-shadow:
    4px 0 0 #0a1814,
    -4px 0 0 #0a1814,
    0 4px 0 #0a1814,
    0 -4px 0 #0a1814,
    7px 7px 0 rgba(35, 83, 71, 0.95);
}

.hero-poster-separator {
  margin: clamp(24px, 4vw, 40px) auto clamp(16px, 2.5vw, 24px);
  width: min(520px, 88%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #8eb69b 18%, #8eb69b 82%, transparent);
  transform-origin: center;
}

.hero-poster-separator span {
  display: block;
  width: min(160px, 40%);
  height: 6px;
  margin: -2px auto 0;
  background: repeating-linear-gradient(
    90deg,
    #8eb69b 0 8px,
    transparent 8px 15px
  );
}

.hero-poster-cta {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.88;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
}

.hero-poster-cta-line {
  display: block;
  color: rgba(218, 241, 221, 0.88);
  text-shadow:
    0 0 20px rgba(142, 182, 155, 0.25),
    0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-poster-cta-line--main {
  color: #daf1dd;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  animation: posterCtaGlow 3.2s ease-in-out infinite;
  text-shadow:
    0 0 18px rgba(142, 182, 155, 0.55),
    0 0 42px rgba(142, 182, 155, 0.35),
    0 0 80px rgba(218, 241, 221, 0.18),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-poster .hero-badges {
  margin-top: clamp(22px, 3vw, 32px);
  margin-bottom: 0;
  justify-content: center;
}

/* ── Logo flutuante ── */
.hero-poster-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(380px, 52vw);
  margin-inline: auto;
  order: -1;
}

.hero-poster-visual-glow {
  position: absolute;
  inset: 8%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(142, 182, 155, 0.4) 0%,
    rgba(35, 83, 71, 0.15) 45%,
    transparent 70%
  );
  filter: blur(28px);
  animation: posterLogoGlow 4.5s ease-in-out infinite;
}

.hero-poster-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
  animation: heroPosterFloat 5.5s ease-in-out infinite;
}

.hero-poster-visual.hero-poster-anim {
  animation-name: posterVisualIn;
  animation-duration: 1.1s;
}

.hero-poster .hero-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 15, 11, 0.72) 0%,
    rgba(14, 38, 34, 0.45) 45%,
    rgba(6, 15, 11, 0.78) 100%
  );
}

body.rmkt-site .hero-poster .hero-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 15, 11, 0.55) 0%,
    rgba(14, 38, 34, 0.35) 50%,
    rgba(6, 15, 11, 0.65) 100%
  ) !important;
}

/* ── Animações de entrada ── */
.hero-poster-anim {
  opacity: 0;
  animation: posterFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.12s + (var(--i, 0) * 0.14s));
}

.hero-poster-shout.hero-poster-anim {
  animation-name: posterShoutIn;
  animation-duration: 0.95s;
}

.hero-poster-separator.hero-poster-anim {
  animation-name: posterSeparatorIn;
  animation-duration: 0.7s;
}

.hero-poster-cta.hero-poster-anim {
  animation-name: posterCtaIn;
  animation-duration: 1s;
}

.hero-poster-cta-line {
  opacity: 0;
  transform: translateY(24px);
  animation: posterLineIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-poster-cta-line:first-child {
  animation-delay: calc(0.78s + (var(--i, 5) * 0.14s));
}

.hero-poster-cta-line--main {
  animation-delay: calc(0.92s + (var(--i, 5) * 0.14s));
}

.hero-poster .hero-badge {
  opacity: 0;
  animation: posterBadgeIn 0.6s ease forwards;
  animation-delay: calc(1.05s + var(--badge-i, 0) * 0.08s);
}

.hero-poster .hero-badge:nth-child(1) { --badge-i: 0; }
.hero-poster .hero-badge:nth-child(2) { --badge-i: 1; }
.hero-poster .hero-badge:nth-child(3) { --badge-i: 2; }

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

@keyframes posterShoutIn {
  from {
    opacity: 0;
    transform: skewX(-7deg) translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: skewX(-7deg) translateY(0) scale(1);
  }
}

@keyframes posterSeparatorIn {
  from {
    opacity: 0;
    transform: scaleX(0.35);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes posterCtaIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes posterLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes posterCtaGlow {
  0%, 100% {
    text-shadow:
      0 0 18px rgba(142, 182, 155, 0.45),
      0 0 36px rgba(142, 182, 155, 0.28),
      0 0 64px rgba(218, 241, 221, 0.12),
      0 4px 24px rgba(0, 0, 0, 0.4);
  }
  50% {
    text-shadow:
      0 0 28px rgba(142, 182, 155, 0.75),
      0 0 52px rgba(142, 182, 155, 0.45),
      0 0 96px rgba(218, 241, 221, 0.22),
      0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

@keyframes posterGlowDrift {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(calc(-50% + 18px), calc(-50% + 12px)) scale(1.06);
    opacity: 1;
  }
}

@keyframes posterGridFade {
  from { opacity: 0; }
  to { opacity: 0.45; }
}

@keyframes posterVisualIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroPosterFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(-0.4deg);
  }
  66% {
    transform: translateY(-16px) rotate(0.4deg);
  }
}

@keyframes posterLogoGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (max-width: 960px) {
  .hero-poster-visual {
    max-width: min(300px, 68vw);
    margin-bottom: 4px;
  }

  .hero-poster-shout {
    text-shadow:
      3px 0 0 #0a1814,
      -3px 0 0 #0a1814,
      0 3px 0 #0a1814,
      0 -3px 0 #0a1814,
      5px 5px 0 rgba(35, 83, 71, 0.95);
  }
}

@media (max-width: 520px) {
  .hero-poster-question {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .hero-poster-shout {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .hero-poster-cta {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-poster-glow,
  .hero-poster-grid,
  .hero-poster-anim,
  .hero-poster-cta-line,
  .hero-poster .hero-badge,
  .hero-poster-cta-line--main,
  .hero-poster-logo,
  .hero-poster-visual-glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-poster-shout {
    transform: skewX(-7deg);
  }
}
