/* Fundo preto com contornos abstratos de baixo contraste. */
.hero {
  background: #050505;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: auto;
  width: min(76vw, 920px);
  height: min(48vw, 560px);
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 43% 57% 65% 35% / 55% 36% 64% 45%;
  background: transparent;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, .012),
              0 0 0 72px rgba(255, 255, 255, .008);
  filter: none;
  transition: none;
  will-change: auto;
  animation: hero-contour 32s ease-in-out infinite alternate;
}

.hero::before {
  top: -30%;
  left: -24%;
}

.hero::after {
  right: -28%;
  bottom: -38%;
  animation-duration: 40s;
  animation-delay: -18s;
  animation-direction: alternate-reverse;
}

.hero .hero-media {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

@keyframes hero-contour {
  from { transform: translate3d(0, 0, 0) rotate(-12deg); }
  to { transform: translate3d(18px, 12px, 0) rotate(3deg); }
}

/* O gradiente aparece somente na borda, preservando o texto do CTA. */
@property --cta-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-actions .btn {
  position: relative;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.hero-actions .btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--cta-border-angle),
    rgba(255, 255, 255, .08) 0deg 265deg,
    rgba(255, 250, 236, .65) 310deg,
    rgba(255, 255, 255, .08) 355deg 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: cta-border-orbit 8s linear infinite;
}

@keyframes cta-border-orbit {
  to { --cta-border-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-actions .btn::before {
    animation: none;
    transform: none;
  }
  .hero-actions .btn { transition: none; }
}
