@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4), 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  
  50% {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(255, 215, 0, 0.6), 0 0 0 8px rgba(255, 215, 0, 0.1);
  }
}

.animate-fade-slide-up {
  opacity: 0;
  animation: fadeSlideUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade-scale-in {
  opacity: 0;
  animation: fadeScaleIn 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-soft-float {
  animation: softFloat 6s ease-in-out infinite;
}

.animate-ticker {
  animation: ticker 40s linear infinite;
}

.particles-bg {
  background-image: radial-gradient(rgba(255, 215, 0, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.1;
}

.noise-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Slider Infinito de Depoimentos */
.testimonials-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.testimonials-slider-track {
  display: flex;
  width: fit-content;
  animation: testimonials-slide 30s linear infinite;
  will-change: transform;
}

.testimonials-slide {
  flex-shrink: 0;
  width: 400px;
  margin-right: 1.5rem;
}

@keyframes testimonials-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-400px * 3 - 1.5rem * 3));
  }
}

/* Pausa no hover */
.testimonials-slider-container:hover .testimonials-slider-track {
  animation-play-state: paused;
}

/* Responsividade */
@media (max-width: 768px) {
  .testimonials-slide {
    width: 300px;
  }

  @keyframes testimonials-slide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-300px * 3 - 1.5rem * 3));
    }
  }
}

@media (max-width: 480px) {
  .testimonials-slide {
    width: 280px;
  }

  @keyframes testimonials-slide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 3 - 1.5rem * 3));
    }
  }
}

/* Grid Background Suave */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  opacity: 1;
}

/* FAQ Accordion Styles */
.faq-item {
  position: relative;
}

.faq-item.active {
  border-color: #FFD700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
  opacity: 0;
}

.faq-item.active .faq-content {
  opacity: 1;
}

.faq-button {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.faq-button:focus {
  outline: none;
}

.faq-button:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animação de entrada para os itens do FAQ */
.faq-item {
  animation: fadeSlideUp 0.6s ease-out forwards;
  opacity: 0;
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
  animation-delay: 0.3s;
}

.faq-item:nth-child(4) {
  animation-delay: 0.4s;
}

.faq-item:nth-child(5) {
  animation-delay: 0.5s;
}

.faq-item:nth-child(6) {
  animation-delay: 0.6s;
}

.faq-item:nth-child(7) {
  animation-delay: 0.7s;
}

.faq-item:nth-child(8) {
  animation-delay: 0.8s;
}

.faq-item:nth-child(9) {
  animation-delay: 0.9s;
}

/* Barra Fixa Mobile CTA */
#mobile-cta-bar {
  transition: transform 0.3s ease-in-out;
}

/* Garantir que a barra mobile não sobreponha conteúdo importante */
@media (max-width: 767px) {
  body {
    padding-bottom: 0;
  }
  
  main {
    padding-bottom: 100px;
  }
}

/* Tarja fixa no topo */
#countdown-bar {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

