/* Hero aprovado com microinterações internas — sem cards ou imagens extras. */

.hero {
  min-height: max(780px, 100svh);
  padding: 118px 3.4vw 58px;
  grid-template-columns: minmax(500px, .9fr) minmax(650px, 1.1fr);
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 54%, rgba(166,31,201,.14), transparent 39%),
    radial-gradient(ellipse at 74% 92%, rgba(255,39,132,.1), transparent 27%),
    #030308;
}

.hero::before {
  inset: 82px 3.4vw 0;
  border-color: rgba(255,255,255,.035);
  background:
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: .18;
  mask-image: linear-gradient(to bottom, transparent, #000 26%, transparent 94%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -8% -19% 40%;
  height: 40%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(239,38,181,.22), rgba(105,37,220,.08) 44%, transparent 73%);
  filter: blur(30px);
}

.hero-copy {
  z-index: 12;
  align-self: center;
  max-width: 750px;
  padding: 18px 0 70px;
}

.hero-copy .eyebrow {
  display: none;
}

.hero h1 {
  max-width: 730px;
  font-size: clamp(62px, 6vw, 114px);
  line-height: .965;
  letter-spacing: -.068em;
}

.hero h1 > span {
  display: inline-block;
  margin-top: .2em;
  background: linear-gradient(112deg, #8c65ff 0%, #d838ce 43%, #ff2f7c 72%, #ff7551 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(218,50,195,.14));
}

.hero-text {
  max-width: 560px;
  margin: 32px 0 25px;
  color: #aaa6b2;
  font-size: clamp(16px, 1.15vw, 21px);
  line-height: 1.52;
}

.hero-actions {
  gap: 23px;
}

.hero .button-production {
  min-height: 58px;
  padding-inline: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: linear-gradient(104deg, #7457ff, #c82ab8 50%, #ef2f7f);
  box-shadow:
    0 18px 58px rgba(198,42,183,.35),
    0 0 32px rgba(118,88,255,.15),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.hero .text-link {
  color: rgba(255,255,255,.72);
  border-color: rgba(255,255,255,.28);
}

.hero-visual {
  --scene-x: 0;
  --scene-y: 0;
  --scene-scroll: 0;
  position: relative;
  z-index: 5;
  align-self: stretch;
  min-height: 650px;
  width: 107%;
  margin-left: -2%;
  overflow: visible;
  isolation: isolate;
  perspective: 1400px;
}

.approved-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    translate3d(
      calc(var(--scene-x) * 20px),
      calc(var(--scene-y) * 12px - var(--scene-scroll) * 14px),
      0
    )
    rotateX(calc(var(--scene-y) * -2deg))
    rotateY(calc(var(--scene-x) * 3deg));
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
}

.approved-scene-art {
  position: absolute;
  inset: -1% -7% 0 -5%;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 7%, #000 15%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 7%, #000 15%, #000 95%, transparent 100%);
}

.approved-scene-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("assets/alek-camera-clean.webp");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: 50% center;
  filter: saturate(1.06) contrast(1.035) brightness(.99);
  transform: scale(1.006);
  transform-origin: 70% 50%;
  transition: transform .8s ease, filter .8s ease;
}

.hero:hover .approved-scene-art::before {
  transform: scale(1.025);
  filter: saturate(1.13) contrast(1.045) brightness(1.025);
}

.approved-scene-art::after {
  content: none;
}

.lens-motion {
  position: absolute;
  z-index: 4;
  width: min(41vw, 560px);
  aspect-ratio: 1;
  left: 21%;
  top: 6%;
  border-radius: 50%;
  pointer-events: none;
}

.lens-motion::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255,166,255,.3);
  background:
    conic-gradient(from 30deg, transparent 0 13%, rgba(255,111,236,.24) 17%, transparent 22% 58%, rgba(139,100,255,.18) 63%, transparent 69%);
  box-shadow:
    inset 0 0 55px rgba(221,55,237,.08),
    0 0 42px rgba(221,55,237,.1);
  animation: lens-turn 34s linear infinite;
}

.lens-motion::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,61,224,.16), transparent 62%);
  box-shadow: 0 0 48px rgba(235,52,220,.16);
  mix-blend-mode: screen;
  animation: core-pulse 4.8s ease-in-out infinite;
}

.lens-ring-motion {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.24);
  box-shadow: 0 0 24px rgba(224,71,244,.12);
  animation: lens-turn 20s linear infinite reverse;
}

.lens-sweep {
  position: absolute;
  z-index: 5;
  width: 52%;
  height: 2px;
  left: 25%;
  top: 50%;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(255,99,225,.35), rgba(255,255,255,.7), rgba(132,99,255,.25), transparent);
  box-shadow: 0 0 13px rgba(255,70,216,.3);
  transform: rotate(-3deg);
  opacity: .7;
  animation: sweep-breathe 2.8s ease-in-out infinite;
  pointer-events: none;
}

.visual-wave {
  position: absolute;
  z-index: 6;
  left: 4%;
  top: 43%;
  width: 76%;
  height: 47px;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: .82;
  transform: rotate(-2deg);
  pointer-events: none;
}

.visual-wave i {
  flex: 1;
  min-width: 2px;
  height: var(--h, 30%);
  background: linear-gradient(to bottom, transparent, #ff43c7 24%, #9b68ff 77%, transparent);
  box-shadow: 0 0 8px rgba(255,55,198,.5);
  animation: wave-direct 1.65s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.screen-zone {
  position: absolute;
  z-index: 7;
  overflow: hidden;
  border-radius: 5px;
  pointer-events: none;
}

.screen-zone::before {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(115deg, transparent 43%, rgba(255,255,255,.18) 49%, transparent 55%);
  transform: translateX(-45%);
  mix-blend-mode: screen;
  animation: screen-scan 3.8s ease-in-out infinite;
}

.screen-zone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  top: 15%;
  background: linear-gradient(90deg, transparent, rgba(255,115,232,.62), transparent);
  box-shadow: 0 0 11px rgba(255,68,218,.42);
  animation: scanline 3.2s linear infinite;
}

.screen-top-zone {
  width: 31%;
  height: 24%;
  left: 4%;
  top: 14%;
  transform: rotate(5deg);
}

.screen-main-zone {
  width: 37%;
  height: 34%;
  left: 0;
  top: 43%;
  transform: rotate(-3deg);
}

.screen-car-zone {
  width: 18%;
  height: 15%;
  left: 28%;
  top: 64%;
  transform: rotate(2deg);
}

.screen-landscape-zone {
  width: 17%;
  height: 17%;
  left: 47%;
  top: 66%;
  transform: rotate(2deg);
}

.screen-render-zone {
  width: 22%;
  height: 14%;
  right: 5%;
  top: 71%;
  transform: rotate(3deg);
}

.scene-particles {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.scene-particles i {
  position: absolute;
  width: var(--s, 5px);
  height: var(--s, 5px);
  left: var(--x);
  top: var(--y);
  border-radius: 1px;
  background: linear-gradient(135deg, #ff4db6, #8665ff);
  box-shadow: 0 0 13px rgba(255,75,182,.46);
  animation: particle-soft var(--t, 8s) ease-in-out infinite alternate;
}

.scroll-note {
  z-index: 15;
  left: 3.4vw;
  bottom: 24px;
}

.hero-index {
  z-index: 15;
  right: 3.4vw;
  bottom: 24px;
}

@keyframes lens-turn {
  to { transform: rotate(360deg); }
}

@keyframes core-pulse {
  0%, 100% { opacity: .55; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes sweep-breathe {
  0%, 100% { opacity: .28; transform: rotate(-3deg) scaleX(.92); }
  50% { opacity: .72; transform: rotate(-3deg) scaleX(1.06); }
}

@keyframes wave-direct {
  from { transform: scaleY(.38); opacity: .4; }
  to { transform: scaleY(1.08); opacity: 1; }
}

@keyframes screen-scan {
  0%, 25% { transform: translateX(-55%); opacity: 0; }
  45%, 62% { opacity: .68; }
  85%, 100% { transform: translateX(55%); opacity: 0; }
}

@keyframes scanline {
  from { top: 10%; opacity: 0; }
  15% { opacity: .65; }
  85% { opacity: .4; }
  to { top: 90%; opacity: 0; }
}

@keyframes particle-soft {
  from { transform: translate3d(0,0,0) rotate(0); opacity: .38; }
  to { transform: translate3d(12px,-16px,0) rotate(130deg); opacity: .8; }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(430px, .9fr) minmax(520px, 1.1fr);
  }

  .hero h1 {
    font-size: clamp(57px, 6.6vw, 80px);
  }

  .hero-visual {
    width: 118%;
    margin-left: -16%;
  }
}

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 120px 7vw 90px;
  }

  .hero-copy {
    max-width: 720px;
    padding: 20px 0 0;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(62px, 10vw, 92px);
  }

  .hero-visual {
    display: block;
    width: calc(100% + 10vw);
    height: min(690px, 83vw);
    min-height: 560px;
    margin: 35px -5vw -38px;
  }

  .approved-scene-art {
    inset-inline: -4%;
  }

  .approved-scene-art::before {
    background-position: 76% center;
  }

  .lens-motion {
    width: min(67vw, 575px);
    left: 36%;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 104px 6vw 74px;
  }

  .hero h1 {
    font-size: clamp(46px, 13.2vw, 63px);
  }

  .hero-text {
    max-width: 100%;
    margin: 24px 0 21px;
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    gap: 16px;
  }

  .hero .button-production {
    width: 100%;
  }

  .hero .text-link {
    align-self: center;
  }

  .hero-visual {
    height: 445px;
    min-height: 445px;
    width: calc(100% + 12vw);
    margin: 34px -6vw -18px;
  }

  .approved-scene-art {
    inset: 0 -23%;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }

  .approved-scene-art::before {
    background-position: 76% center;
  }

  .lens-motion {
    width: 390px;
    left: 34%;
    top: 4%;
  }

  .screen-top-zone,
  .screen-car-zone,
  .screen-landscape-zone,
  .screen-render-zone {
    display: none;
  }

  .screen-main-zone {
    width: 48%;
    height: 32%;
    left: 2%;
    top: 49%;
  }

  .visual-wave {
    left: -5%;
    width: 80%;
  }

  .scroll-note {
    display: none;
  }
}

@media (pointer: coarse) {
  .approved-scene {
    --scene-x: 0 !important;
    --scene-y: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lens-motion::before,
  .lens-motion::after,
  .lens-ring-motion,
  .lens-sweep,
  .visual-wave i,
  .screen-zone::before,
  .screen-zone::after,
  .scene-particles i {
    animation: none !important;
  }
}
