/* ==========================================================================
   Pleno - Landing Page de Alta Conversão
   Novo Design System & Paleta Oficial:
   - Lime: #C3F15D (Acento & Hero)
   - Purple: #8340EF (Destaques & Ações)
   - Coral: #EA8364 (Avisos & Badges)
   - Cream / Off-white: #EBEBEB
   - Charcoal / Preto: #232323
   - Tipografia: Plus Jakarta Sans (Títulos Marcantes) & Geist (Interface e Leitura)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #232323;
}

body {
  overflow-x: hidden;
  background-color: #ffffff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #232323;
}

/* Tipografia Marcante Plus Jakarta Sans para títulos */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: 'Plus Jakarta Sans', 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
}

/* Transições suaves */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Navbar Glassmorphism (Frosted Glass de Alta Fidelidade)
   ========================================================================== */
.glass-navbar {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06), 0 2px 8px 0 rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-navbar:hover {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.08), 0 4px 12px 0 rgba(0, 0, 0, 0.04) !important;
}

.glass-pill-btn {
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.glass-pill-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Range Slider Personalizado (Sem bordas e sem sombras) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 9999px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #FFFFFF;
  cursor: pointer;
}

/* Accordion Smooth Height (FAQ e Feature Collapsibles) */
.faq-answer-block {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-row.active .faq-answer-block {
  max-height: 280px;
}

.col-body-block {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-collapsible.active .col-body-block {
  max-height: 550px;
}

/* Efeito de Reveal Suave ao Rolar */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.active,
section:first-of-type .scroll-fade {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 11, 88, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

/* ==========================================================================
   Pleno Accordion Cards (Padrão Flexbox Suave e Sem Quebras)
   ========================================================================== */
.nham-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.nham-card {
  background: #F8F9FA;
  border: 1px solid #EBEBEB;
  border-radius: 1.75rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: flex 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
}

.nham-card:hover {
  border-color: rgba(35, 35, 35, 0.25);
}

.nham-card.active,
.nham-card.active:hover {
  background: #FFFFFF;
  border-color: #EBEBEB;
  box-shadow: 0 20px 40px -15px rgba(35, 35, 35, 0.1), 0 0 1px 1px rgba(35, 35, 35, 0.04) !important;
}

/* --------------------------------------------------------------------------
   Desktop (>= 1024px): Acordeão Horizontal Estável (Anti-Reflow)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .nham-cards-container {
    flex-direction: row;
    height: 460px;
    align-items: stretch;
  }

  .nham-card {
    flex: 1 1 260px;
    min-width: 250px;
    height: 100%;
    padding: 1.75rem;
  }

  .nham-card.active {
    flex: 2.2 1 480px;
  }

  /* O layout interno permanece sempre em linha no desktop */
  .nham-card-inner {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    min-width: 0;
  }

  /* Coluna de texto com largura constante invariável: aberta ou fechada */
  .nham-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
    flex-shrink: 0 !important;
  }

  .nham-card-text {
    min-height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: auto;
  }

  .nham-card-text h3 {
    min-height: 4.75rem;
  }

  /* A imagem expande e recolhe suavemente sem display: none abrupto */
  .nham-card-preview {
    display: flex;
    flex: 0 0 0px;
    width: 0;
    min-width: 0;
    max-width: 0;
    height: 100%;
    margin-top: 0;
    margin-left: 0;
    border-radius: 1rem;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: flex 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      margin-left 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease 0.08s;
  }

  .nham-card.active .nham-card-preview {
    flex: 1 1 0%;
    width: auto;
    max-width: 500px;
    margin-left: 1.5rem;
    opacity: 1;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   Tablet (< 1024px e >= 768px): Cards Verticais Elegantes e Abertos
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .nham-cards-container {
    gap: 1.25rem;
  }

  .nham-card {
    background: #FFFFFF !important;
    border: 1px solid #EBEBEB !important;
    padding: 1.75rem !important;
    border-radius: 1.75rem !important;
  }

  .nham-card-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem !important;
    height: auto !important;
  }

  .nham-card-content {
    width: 55% !important;
    max-width: none !important;
    height: auto !important;
  }

  .nham-card-preview {
    display: flex !important;
    width: 45% !important;
    height: 200px !important;
    opacity: 1 !important;
    border-radius: 1rem !important;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   Mobile (< 768px): Modificação Original do Usuário (Sempre Abertas)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nham-cards-container {
    gap: 0.875rem;
  }

  .nham-card {
    background: #FFFFFF !important;
    border: 1px solid #EBEBEB !important;
    min-height: auto !important;
    padding: 1.25rem !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 4px 16px -4px rgba(35, 35, 35, 0.06) !important;
  }

  .nham-card-inner {
    height: auto !important;
    display: flex;
    flex-direction: column;
  }

  .nham-card-content {
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
  }

  .nham-card-text {
    margin-top: 0.375rem !important;
    padding-top: 0 !important;
    min-height: 0 !important;
  }

  .nham-card-text h3 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.25rem !important;
    min-height: 0 !important;
  }

  .nham-card-text p {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
  }

  .nham-card-preview {
    display: flex !important;
    opacity: 1 !important;
    height: 140px !important;
    margin-top: 0.75rem !important;
    border-radius: 0.75rem !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
  }
}

.nham-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Blur no Rodapé da Imagem do Dashboard (20% da Altura)
   ========================================================================== */
.dashboard-showcase-wrapper {
  position: relative;
  z-index: 0;
}

.dashboard-footer-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.15) 25%,
      rgba(0, 0, 0, 0.5) 55%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 1) 100%) !important;
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.15) 25%,
      rgba(0, 0, 0, 0.5) 55%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 1) 100%) !important;
  background: linear-gradient(to bottom,
      rgba(244, 245, 248, 0) 0%,
      rgba(244, 245, 248, 0.25) 45%,
      rgba(244, 245, 248, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   Orbit Animations (Hero Smartphone Customer Avatars de Vitrine Site)
   ========================================================================== */
@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes orbit-counter-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes orbit-counter-spin-reverse {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.animate-orbit-1 {
  animation: orbit-spin 22s linear infinite;
}

.animate-counter-1 {
  animation: orbit-counter-spin 22s linear infinite;
}

.animate-orbit-2 {
  animation: orbit-spin-reverse 28s linear infinite;
}

.animate-counter-2 {
  animation: orbit-counter-spin-reverse 28s linear infinite;
}

.animate-orbit-3 {
  animation: orbit-spin 36s linear infinite;
}

.animate-counter-3 {
  animation: orbit-counter-spin 36s linear infinite;
}

.animate-orbit-4 {
  animation: orbit-spin-reverse 44s linear infinite;
}

.animate-counter-4 {
  animation: orbit-counter-spin-reverse 44s linear infinite;
}

/* Linhas das 4 Órbitas Concêntricas */
.orbit-ring-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  border: 1.5px dashed rgba(35, 35, 35, 0.18) !important;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Hero Orbit Radar Scanner & Sonar Ping Effect (Estilo Vidro Luminoso sobre Lime)
   ========================================================================== */
.hero-radar-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Radar Sweep (Varredura cônica 360° contínua em luz branca translúcida) */
.radar-sweep-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-origin: center center;
  background: conic-gradient(
    from 270deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.02) 20deg,
    rgba(255, 255, 255, 0.08) 50deg,
    rgba(255, 255, 255, 0.22) 75deg,
    rgba(255, 255, 255, 0.48) 90deg,
    transparent 90.5deg,
    transparent 360deg
  );
  animation: radar-sweep-rotate 7s linear infinite;
  will-change: transform;
}

/* Linha de feixe de alta intensidade no corte do radar */
.radar-sweep-beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.9) 70%,
    #FFFFFF 100%
  );
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
}

@keyframes radar-sweep-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Ondas de Pulso Concêntricas (Sonar Ping Ripples) */
.radar-ping-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 80%
  );
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  animation: radar-sonar-ping 4.5s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  will-change: transform, opacity;
}

.radar-ping-wave-1 {
  animation-delay: 0s;
}

.radar-ping-wave-2 {
  animation-delay: 1.5s;
}

.radar-ping-wave-3 {
  animation-delay: 3s;
}

@keyframes radar-sonar-ping {
  0% {
    transform: scale(0.25);
    opacity: 0.85;
  }
  45% {
    opacity: 0.45;
  }
  80% {
    opacity: 0.12;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Brilho suave no centro (radar core) */
.radar-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
  animation: radar-core-pulse 3s ease-in-out infinite alternate;
}

@keyframes radar-core-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.95;
  }
}

.hero-phone-frame {
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  border-width: 2px !important;
  border-style: solid !important;
  box-shadow: 0 25px 50px -12px rgba(0, 11, 88, 0.2) !important;
}

.hero-phone-screen {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* ==========================================================================
   Hero Smartphone Floating Animation (Movimento suave e lento de cima para baixo)
   ========================================================================== */
@keyframes hero-phone-float {
  0% {
    transform: translateY(-12px);
  }

  50% {
    transform: translateY(12px);
  }

  100% {
    transform: translateY(-12px);
  }
}

.hero-phone-float {
  animation: hero-phone-float 5.5s ease-in-out infinite;
  will-change: transform;
}

#heroPhoneParallax {
  will-change: transform;
  transform-style: preserve-3d;
}

/* ==========================================================================
   Abas do Painel de Módulos (Seção Tudo em Uma Única Tela)
   ========================================================================== */
.tab-pill-btn {
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-pill-btn:not(.is-active):hover {
  color: #232323 !important;
  background-color: #E6EBF1 !important;
}

.tab-pill-btn.is-active,
.tab-pill-btn.is-active:hover {
  background-color: #C3F15D !important;
  color: #232323 !important;
  font-weight: 600;
}

.tab-pill-btn.is-active:hover {
  background-color: #B2E248 !important;
  color: #232323 !important;
}

/* ==========================================================================
   Carrossel de Smartphones LP_05 (Demonstração Mobile Fiel à Referência)
   ========================================================================== */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

#phoneCarouselTrack {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.phone-carousel-card {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-carousel-card:hover {
  transform: translateY(-8px);
}

.phone-carousel-card img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   Menu Mobile Fullscreen com Animação Fluida
   ========================================================================== */
#mobileMenuOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999 !important;
  background: #181818 !important;
  color: #FFFFFF !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px) scale(0.99);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease;
  overflow-y: auto;
}

#mobileMenuOverlay.menu-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

#mobileMenuOverlay nav .mobile-nav-link {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

#mobileMenuOverlay.menu-open nav .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

/* Efeito cascata suave ao abrir */
#mobileMenuOverlay.menu-open nav .mobile-nav-link:nth-child(1) { transition-delay: 0.06s; }
#mobileMenuOverlay.menu-open nav .mobile-nav-link:nth-child(2) { transition-delay: 0.11s; }
#mobileMenuOverlay.menu-open nav .mobile-nav-link:nth-child(3) { transition-delay: 0.16s; }
#mobileMenuOverlay.menu-open nav .mobile-nav-link:nth-child(4) { transition-delay: 0.21s; }
#mobileMenuOverlay.menu-open nav .mobile-nav-link:nth-child(5) { transition-delay: 0.26s; }