
/* ──────────────────────────────────────────────────────────────────────────
   ANIMAÇÕES DE MARQUEE (Efeito de Rolagem Infinita)
   ────────────────────────────────────────────────────────────────────────── */
@keyframes marquee-ltr {
  from {
    transform: translateX(0);
  }

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

@keyframes marquee-rtl {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* Esquerda para Direita */
.marquee-ltr {
  animation: marquee-ltr 45s linear infinite;
}

/* Direita para Esquerda */
.marquee-rtl {
  animation: marquee-rtl 50s linear infinite;
}

/* ──────────────────────────────────────────────────────────────────────────
   ANIMAÇÕES DE FLUTUAÇÃO DO HERO
   ────────────────────────────────────────────────────────────────────────── */
@keyframes float-a {

  0%,
  100% {
    transform: translateY(0px);
  }

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

@keyframes float-b {

  0%,
  100% {
    transform: translateY(0px);
  }

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

@keyframes float-main {

  0%,
  100% {
    transform: translateY(0px);
  }

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

/* ──────────────────────────────────────────────────────────────────────────
   SEÇÃO DE BENEFÍCIOS (TIPOGRAFIA E LAYOUT)
   ────────────────────────────────────────────────────────────────────────── */
.benefits-text {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: #fff;
  letter-spacing: -.8px;
  line-height: normal;
  margin-bottom: 60px;
  max-width: 1100px;
}

.marquee-span {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 40px;
  color: #183EEB;
  letter-spacing: -.8px;
  line-height: 60px;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   COMPONENTES DE UI E INTERATIVIDADE
   ────────────────────────────────────────────────────────────────────────── */

/* Indicador das abas (Features) */
.tab-indicator {
  transition: left 0.3s ease, width 0.3s ease;
}

/* Viewport do carrossel mobile */
#feat-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
}

#feat-viewport::-webkit-scrollbar {
  display: none;
}

.feat-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* Card de planos - Efeitos de Hover */
.plan-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(24, 62, 235, .15);
}

/* Controle de visibilidade dos planos no Desktop */
@media (min-width: 1025px) {
  .plan-card.hidden-desktop {
    display: none !important;
  }
}

/* Botões de aba */
.tab-btn {
  transition: color 0.25s ease, background 0.25s ease;
}
.tab-btn.active {
  background: rgba(24, 62, 235, 0.1) !important;
}
.tab-btn.active span {
  color: #183EEB !important;
}

/* Botões gerais */
.btn-blue {
  transition: opacity 0.2s ease;
}

.btn-blue:hover {
  opacity: 0.88;
}

/* ──────────────────────────────────────────────────────────────────────────
   SELETOR DE PRECIFICAÇÃO (Slider de Etapas)
   ────────────────────────────────────────────────────────────────────────── */

/* Pontos (dots) do selecionador horizontal */
.step-dot {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.step-dot img {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform .2s ease;
}

.step-dot:hover img {
  transform: scale(1.15);
}

/* Balão indicativo acima do dot ativo */
.step-dot-bubble {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #183EEB;
  border-radius: 8.462px;
  padding: 2px 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.step-dot.active .step-dot-bubble {
  opacity: 1;
}

/* Rótulo numérico abaixo do dot */
.step-dot-label {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #717171;
  white-space: nowrap;
  pointer-events: none;
}

/* Badges e Bordas dos Cards de Plano */
.card-badge {
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-badge-label {
  transition: all .35s ease;
}

.card-border-el {
  transition: border-color .35s ease, background .35s ease;
}

/* Ajustes de espaçamento no Desktop para Precificação */
@media (min-width: 1025px) {
  #pricing .pricing-content-wrapper {
    gap: 80px !important;
  }

  #pricing-slider-wrap {
    padding: 50px 0 !important;
  }
}

.card-btn {
  transition: background .3s ease, cursor .3s ease;
}

#custom-price {
  transition: all .3s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   BOTÃO VOLTAR AO TOPO
   ────────────────────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 54px;
  height: 54px;
  background: #0A1C92;
  border: 2px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#back-to-top.show {
  display: flex;
  opacity: 1;
}

#back-to-top:hover {
  background: #183EEB;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ──────────────────────────────────────────────────────────────────────────
   UTILITÁRIOS DE LAYOUT RESPONSIVO
   ────────────────────────────────────────────────────────────────────────── */

.container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.pricing-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  max-width: 870px;
  align-items: stretch;
  justify-content: center;
}

.pricing-dots {
  display: none;
}

/* Classes de controle de visibilidade */

/* ──────────────────────────────────────────────────────────────────────────
   BREAKPOINT: TABLET / MOBILE (Abaixo de 1024px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  section {
    height: auto !important;
    min-height: auto !important;
    padding: 60px 0 20px !important;
  }

  #hero {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  #valor {
    padding-top: 10px !important;
  }

  /* Ajustes Hero Mobile */
  .hero-content {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding-top: 120px !important;
  }

  .hero-text {
    max-width: 100% !important;
    margin-bottom: 30px !important;
  }

  .hero-text h1 {
    font-size: 32px !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
  }

  .hero-text p {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 30px !important;
  }

  /* Gráficos Hero - Ajuste para serem estáticos em mobile */
  .hero-images {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 0px !important;
    display: block !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .hero-img-deco {
    display: none !important;
  }

  .hero-img-main {
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    animation: none !important;
    top: auto !important;
    right: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  .hero-img-main img {
    height: auto !important;
  }

  /* Tipografia Mobile */
  h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  #about h2 {
    margin-bottom: 30px !important;
  }

  #feat-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  #feat-desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  #pricing h2 {
    font-size: 24px !important;
  }

  #cta h2 {
    font-size: 26px !important;
  }

  .benefits-text {
    font-size: 26px !important;
    margin-bottom: 40px !important;
    line-height: 1.3 !important;
  }

  .marquee-span {
    font-size: 26px !important;
    line-height: 40px !important;
  }

  #valor p:first-of-type {
    font-size: 22px !important;
  }

  #valor p:last-of-type {
    font-size: 15px !important;
  }


  .hero-cta-container {
    display: none !important;
  }


  .btn-blue {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }


  /* Features Mobile (Troca Tab por Carrossel) */
  #features .content-wrapper {
    padding: 40px 15px !important;
  }

  #tabs-row {
    display: none !important;
  }

  #feat-desktop-content {
    display: none !important;
  }

  #feat-mobile-carousel {
    display: block !important;
  }

  /* Estilos do carrossel manual scroll */
  #feat-viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    width: 100%;
    padding-bottom: 20px;
  }

  .feat-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    text-align: center;
  }

  .feat-slide-img {
    width: 100%;
    max-width: 350px;
    border: 2px solid #E7E7E7;
    border-radius: 12px;
    overflow: hidden;
  }

  .feat-slide-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  .feat-slide-title {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1D1D1D;
    margin-top: 10px;
  }

  .feat-slide-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #717171;
    line-height: 1.5;
  }

  /* Dots dos carrosséis */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E7E7E7;
    transition: background 0.3s ease;
  }

  .dot.active {
    background: #183EEB;
    width: 20px;
    border-radius: 4px;
  }

  /* Precificação Mobile */
  #pricing-slider-wrap {
    display: none !important;
  }

  /* Container dos dots de navegação do plano */
  .pricing-dots {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 10px auto 0;
    width: fit-content;
    background: #F2F5FA;
    padding: 10px 24px;
    border-radius: 99px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .pricing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E7E7E7;
    transition: all 0.3s ease;
  }

  .pricing-dot.active {
    background: #183EEB;
    width: 20px;
    border-radius: 4px;
  }

  /* Slider de cards de plano (scroll horizontal) */
  #pricing-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 20px !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    height: auto !important;
    padding: 40px 0 10px !important;
    gap: 0 !important;
    width: 100vw !important;
    margin-left: -20px !important;
    max-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  #pricing-cards::-webkit-scrollbar {
    display: none !important;
  }

  #pricing-cards .plan-card {
    flex: 0 0 300px !important;
    margin: 0 10px !important;
    scroll-snap-align: center !important;
    width: 300px !important;
    max-width: 300px !important;
    cursor: pointer !important;
  }

  #pricing-cards .plan-card:first-child {
    margin-left: 20px !important;
  }

  #pricing-cards .plan-card:last-child {
    margin-right: 20px !important;
  }

  /* Reset de escala para cards em mobile */
  .plan-card {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }


  /* Navbar Mobile - Fixa e Blur */
  nav {
    padding: 0 20px !important;
    height: 64px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(10, 28, 146, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #hamburger-btn {
    display: flex !important;
    order: 2;
    margin-left: auto;
  }

  /* Ajuste das linhas decorativas no Hero Mobile */
  #img-linhas-hero {
    left: -50% !important;
    right: auto !important;
  }


  /* Divs de Background Dinâmico - Ajustes de Borda */
  #about .container-grid {
    padding: 0 15px 40px !important;
  }

  .about-bg-div {
    top: 20px !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px) !important;
    border-radius: 16px !important;
  }

  #features>div:first-child {
    top: 40px !important;
    bottom: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px) !important;
    border-radius: 12px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   BREAKPOINT: CELULAR PEQUENO (Abaixo de 480px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px !important;
  }

  .hero-text p {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  h2 {
    font-size: 22px !important;
  }

  .benefits-text {
    font-size: 20px !important;
    margin-bottom: 30px !important;
  }

  .marquee-span {
    font-size: 20px !important;
    line-height: 32px !important;
  }

  #feat-title {
    font-size: 20px !important;
  }

  #feat-desc {
    font-size: 14px !important;
  }

  .nav-links button {
    font-size: 14px !important;
  }

  /* Ajustes finos de cartões de plano para telas muito pequenas */
  .plan-card h3,
  .plan-card span[style*="font-size:20px"] {
    font-size: 18px !important;
  }

  .plan-card span[style*="font-size:40px"] {
    font-size: 32px !important;
  }

  .plan-card span[style*="font-size:16px"] {
    font-size: 14px !important;
  }

  #pricing h2,
  #cta h2 {
    font-size: 20px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   DECORAÇÃO: RIPPLE WAVE (Ondas Animadas no Fundo)
   ────────────────────────────────────────────────────────────────────────── */
.ripple-wave-group {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1200px;
  height: 1200px;
  transform: translate3d(-50%, -50%, 0);
  background: repeating-radial-gradient(circle at center,
      transparent 0px,
      transparent 40px,
      rgba(255, 255, 255, 0.08) 40px,
      rgba(255, 255, 255, 0.08) 44px,
      transparent 44px,
      transparent 200px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: expand-waves-group 8s linear infinite;
  will-change: transform, opacity;
}

.ripple-wave-group:nth-child(1) {
  animation-delay: 0s;
}

.ripple-wave-group:nth-child(2) {
  animation-delay: -2s;
}

.ripple-wave-group:nth-child(3) {
  animation-delay: -4s;
}

.ripple-wave-group:nth-child(4) {
  animation-delay: -6s;
}

@keyframes expand-waves-group {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.1);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translate3d(-50%, -50%, 0) scale(3.5);
    opacity: 0;
  }
}
