/* Ondas, gradiente dourado e revelação no scroll.
   Mantido à parte para o index.html ficar só com a estrutura. */

.btn-ouro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(
    128deg,
    #e0bc45 0%,
    #c9a227 32%,
    #8d6810 68%,
    #b8922a 100%
  );
  background-size: 180% 180%;
  animation: brilho-ouro 7.5s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(168, 132, 26, .22);
}

.btn-ouro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: reflexo-ouro 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brilho-ouro {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@keyframes reflexo-ouro {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* ---------- Ondas abaixo do hero ---------- */
.ondas {
  position: relative;
  z-index: 3;
  height: 150px;
  margin-top: -150px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.onda {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: mover-onda 16s linear infinite;
}

.onda-fundo {
  height: 96%;
  bottom: 16px;
  opacity: .5;
  animation-duration: 34s;
  animation-direction: reverse;
}

.onda-ouro {
  height: 84%;
  bottom: 10px;
  opacity: .75;
  animation-duration: 22s;
  filter: drop-shadow(0 -3px 6px rgba(168, 132, 26, .25));
}

.onda-meio {
  height: 76%;
  bottom: 4px;
  opacity: .92;
  animation-duration: 28s;
  animation-direction: reverse;
}

.ondas .onda:last-child {
  height: 62%;
  animation-duration: 18s;
}

@keyframes mover-onda {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Revelação no scroll ---------- */
.revelar {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22, 1, .36, 1),
    filter .8s ease;
}

.revelar.visivel {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: var(--atraso, 0s);
}

.foot > .revelar:nth-child(2) { --atraso: .08s; }
.foot > .revelar:nth-child(3) { --atraso: .16s; }
.foot > .revelar:nth-child(4) { --atraso: .24s; }

.bio > .revelar:nth-child(2) { --atraso: .08s; }
.bio > .revelar:nth-child(3) { --atraso: .14s; }
.bio > .revelar:nth-child(4) { --atraso: .2s; }
.bio > .revelar:nth-child(5) { --atraso: .26s; }
.bio > .revelar:nth-child(6) { --atraso: .32s; }

.passos .passo:nth-child(2) { --atraso: .08s; }
.passos .passo:nth-child(3) { --atraso: .16s; }
.passos .passo:nth-child(4) { --atraso: .24s; }

@media (prefers-reduced-motion: reduce) {
  .btn-ouro,
  .btn-ouro::after,
  .onda,
  .revelar {
    animation: none;
  }

  .revelar {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 640px) {
  .ondas { height: 96px; margin-top: -96px; }
  .onda { width: 280%; }
  .revelar { transform: translateY(22px); filter: blur(3px); }
}
