html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

.btn {
  @apply inline-flex items-center justify-center gap-2 rounded-full font-semibold transition-all duration-200;
}

/* ── Scroll Reveal (bloco genérico) ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Split Words (títulos palavra a palavra) ── */
.scroll-reveal.split-words {
  opacity: 1;
  transform: none;
  transition: none;
}

.split-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.split-words.is-visible .word {
  animation: fadeSlideUpWord 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ── Keyframes ── */
@keyframes fadeSlideUpWord {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ── Hero (animação ao load, sem scroll) ── */
.hero-description {
  opacity: 0;
  animation: fadeSlideUp 0.9s ease-out 0.6s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeSlideUp 0.9s ease-out 0.9s forwards;
}

/* ── Acessibilidade: desabilitar animações para quem prefere ── */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .split-words .word {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .hero-description,
  .hero-cta {
    opacity: 1;
    animation: none;
  }
}

/* Section 5 — marquee de logos (loop contínuo; -50% com faixa duplicada) */
@-webkit-keyframes marquee {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

[data-marquee] {
  --loop-duration: 30s;
  display: block;
  position: relative;
}

[data-marquee] [data-marquee-shadow] {
  position: absolute;
  visibility: hidden;
  height: auto;
  width: auto;
  white-space: nowrap;
  pointer-events: none;
}

[data-marquee] [data-marquee-overflow] {
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  width: 100%;
}

[data-marquee] [data-marquee-container] {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  align-items: center;
  will-change: transform;
  -webkit-animation: marquee var(--loop-duration) linear infinite;
  animation: marquee var(--loop-duration) linear infinite;
}

[data-marquee] [data-marquee-style] {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 0.75em 1.25em;
}

[data-marquee] [data-marquee-style] .marquee-logo-img {
  height: 1.5rem;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  [data-marquee] [data-marquee-style] .marquee-logo-img {
    height: 1.75rem;
  }
}

/* Section 6 — óculos flutuante */
@keyframes section-6-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(2px, -10px, 0) rotate(0.4deg);
  }
  50% {
    transform: translate3d(-1px, -16px, 0) rotate(-0.3deg);
  }
  75% {
    transform: translate3d(1px, -7px, 0) rotate(0.2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes section-6-shadow {
  0%, 100% {
    opacity: 0.12;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.06;
    transform: scaleX(0.88);
  }
}

.section-6-float {
  animation: section-6-float 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.section-6-shadow {
  animation: section-6-shadow 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .section-6-float,
  .section-6-shadow {
    animation: none;
  }
}
