/* ==========================================================================
   KOMVOS — IMERSÃO IA NA PRÁTICA | STYLE SYSTEM
   Diretrizes de Marca: 80% Neutros / 20% Cores de Destaque (Ciano Statum #00AFEF)
   Tipografia: Montserrat
   ========================================================================== */

:root {
  /* Escala de Neutros (80%) */
  --color-black: #111516;
  --color-dark-surface: #171b1d;
  --color-dark-card: #1d2225;
  --color-gray-dark: #2d3337;
  --color-gray: #939598;
  --color-gray-light: #e5e7eb;
  --color-bg-light: #f8fafc;
  --color-white: #ffffff;

  /* Cores de Destaque / Identidade (20%) */
  --color-statum-cyan: #00afef;
  /* Cor primária de CTAs e highlights */
  --color-statum-cyan-hover: #0093ca;
  --color-statum-cyan-light: rgba(0, 175, 239, 0.12);
  --color-statum-cyan-glow: rgba(0, 175, 239, 0.35);

  --color-komvos-teal: #00aa9e;
  /* Teal institucional */
  --color-komvos-teal-light: rgba(0, 170, 158, 0.12);

  --color-trusth-pink: #af005f;
  /* Rosa de apoio */
  --color-trusth-pink-light: rgba(175, 0, 95, 0.12);

  /* Sombras e Elevações */
  --shadow-sm: 0 2px 4px rgba(17, 21, 22, 0.05);
  --shadow-md: 0 6px 16px rgba(17, 21, 22, 0.08);
  --shadow-lg: 0 14px 34px rgba(17, 21, 22, 0.12);
  --shadow-cyan: 0 10px 25px rgba(0, 175, 239, 0.25);
  --shadow-card-dark: 0 12px 30px rgba(0, 0, 0, 0.4);

  /* Tipografia */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset Básico & Estilos Globais */
html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  color: var(--color-white);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  overflow-x: hidden;
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111516;
}

::-webkit-scrollbar-thumb {
  background: #2d3337;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-statum-cyan);
}

/* Componentes de Tipografia */
.font-montserrat {
  font-family: var(--font-primary);
}

/* Badges e Selos */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.badge-cyan {
  background-color: rgba(0, 175, 239, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 175, 239, 0.4);
}

.badge-cyan-dark {
  background-color: rgba(0, 175, 239, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 175, 239, 0.4);
}

/* Botões de Ação de Alta Conversão */
.btn-primary-cta {
  background-color: var(--color-statum-cyan);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-cyan);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-cta:hover {
  background-color: var(--color-statum-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 175, 239, 0.4);
  color: var(--color-white);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

/* Botão CTA da Oferta (Tamanho de fonte e padding otimizados para uma única linha) */
.btn-cta-oferta {
  font-size: 0.875rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  white-space: nowrap !important;
}

@media (min-width: 640px) {
  .btn-cta-oferta {
    font-size: 0.925rem !important;
  }
}

@media (max-width: 400px) {
  .btn-cta-oferta {
    font-size: 0.775rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* =========================================================================
   HEADER / MENU FIXO - LOGO & CTA GLOW COM BRILHO PULSANTE
   ========================================================================= */

/* Logo do Grupo Komvos no Header (Aumentado em 15%) */
.header-logo {
  height: 41.4px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

@media (min-width: 640px) {
  .header-logo {
    height: 46px;
  }
}

.header-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0, 175, 239, 0.35));
}

/* Efeito de Highlight / Shimmer que passa pelo Botão CTA do Header */
.btn-header-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Feixe de Luz / Reflexo Highlight que passa pela CTA para chamar atenção */
.btn-header-glow::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -160%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: headerShineSweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes headerShineSweep {
  0%, 20% {
    left: -160%;
  }
  60%, 100% {
    left: 190%;
  }
}

/* Botão Secundário / Outline */
.btn-outline-neutral {
  border: 1px solid var(--color-gray-dark);
  color: var(--color-white);
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-neutral:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-statum-cyan);
  color: var(--color-statum-cyan);
}

/* Efeito de Conexões de Rede no Background */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(147, 149, 152, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 149, 152, 0.07) 1px, transparent 1px);
}

.bg-grid-dark {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-grid-light {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.065) 1px, transparent 1px);
}

/* Fundo Hero: Foto com Sobreposição em Preto e Quadriculado Preservado */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(17, 21, 22, 0.82) 0%, rgba(17, 21, 22, 0.80) 50%, rgba(17, 21, 22, 0.95) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    url('../images/charles-forerunner-3fPXt37X6UQ-unsplash.jpg');
  background-size: auto, 36px 36px, 36px 36px, cover;
  background-position: center center;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  pointer-events: none;
}

/* ==========================================================================
   HERO CANVAS NATIVO (IMAGEM + LIGHT STREAKS TRAVADOS EM 5184x3456)
   ========================================================================== */
.hero-svg-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Feixe de luz orgânico derivado de light-streak.svg (sem bastão, difusão contínua) */
.streak-pulse {
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
  stroke: #8fffef;
  filter: url(#streak-lens-glow);
  stroke-dasharray: 28 172;
  stroke-dashoffset: 128;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: stroke-dashoffset, opacity;
}

/* Ativação dinâmica: velocidade rápida e alta fluidez */
.streak-pulse.streak-active {
  animation: streak-travel-fast var(--streak-duration, 0.8s) linear forwards;
}

@keyframes streak-travel-fast {
  0% {
    stroke-dashoffset: 128;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  92% {
    stroke-dashoffset: -28;
    opacity: 0.6;
  }

  100% {
    stroke-dashoffset: -72;
    opacity: 0;
  }
}

/* Framework Visual: Pessoas -> Processos -> IA -> Decisões -> Permissões -> Governança */
.framework-node {
  background: var(--color-dark-card);
  border: 1px solid var(--color-gray-dark);
  color: var(--color-white);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.framework-node:hover {
  border-color: var(--color-statum-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.framework-node.highlight-ia {
  background: linear-gradient(135deg, #111516 0%, #1c2225 100%);
  color: var(--color-statum-cyan);
  border-color: var(--color-statum-cyan);
}

/* Cards Premium - Experiência Aplicada (Spotlight Circular com Mouse) */
.card-premium {
  --mouse-x: -9999px;
  --mouse-y: -9999px;
  --mouse-active: 0;
  --card-radius: 1rem;

  --card-accent: #00AFEF;
  --card-glow: rgba(0, 175, 239, 0.85);
  --card-glow-inner: rgba(0, 175, 239, 0.12);

  background-color: #f8fafc;
  border: 1px solid #111516;
  border-radius: var(--card-radius);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Tipografia e linhas internas com contraste sobre fundo claro */
.card-premium h3 {
  color: #111516 !important;
}

.card-premium p {
  color: #4b5563 !important;
}

.card-premium .border-gray-200,
.card-premium .border-gray-800 {
  border-color: #e2e8f0 !important;
}

/* Reflexo suave da luz circular no interior do card seguindo o mouse */
.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 160px at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    var(--card-glow-inner) 0%,
    transparent 100%
  );
  pointer-events: none;
  opacity: var(--mouse-active, 0);
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Feixe de luz circular nas bordas seguindo a posição do mouse */
.card-premium::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--card-radius) + 1px);
  padding: 2px;
  background: radial-gradient(
    circle 150px at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    var(--card-accent) 0%,
    var(--card-glow) 35%,
    transparent 100%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: var(--mouse-active, 0);
  transition: opacity 0.3s ease;
  z-index: 3;
  filter: drop-shadow(0 0 8px var(--card-glow));
}

/* Variações de cor do feixe de luz nas bordas conforme o ícone */
.card-premium.card-accent-cyan {
  --card-accent: #00AFEF;
  --card-glow: rgba(0, 175, 239, 0.85);
  --card-glow-inner: rgba(0, 175, 239, 0.12);
}

.card-premium.card-accent-teal {
  --card-accent: #00AA9E;
  --card-glow: rgba(0, 170, 158, 0.85);
  --card-glow-inner: rgba(0, 170, 158, 0.12);
}

.card-premium.card-accent-pink {
  --card-accent: #AF005F;
  --card-glow: rgba(175, 0, 95, 0.85);
  --card-glow-inner: rgba(175, 0, 95, 0.12);
}

.card-dark {
  background: var(--color-dark-card);
  border: 1px solid var(--color-gray-dark);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-dark:hover {
  border-color: var(--color-statum-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

/* Ajustes da Seção Entregas Concretas (Fundo Claro com Grid) */
#secao-entregas {
  background-color: #f8fafc;
}

#secao-entregas .card-dark {
  background: #171c1f;
  border: 1px solid #283138;
  box-shadow: 0 10px 25px rgba(17, 21, 22, 0.14);
  position: relative;
  z-index: 1;
}

#secao-entregas .card-dark:hover {
  border-color: var(--color-statum-cyan);
  box-shadow: 0 16px 32px rgba(0, 175, 239, 0.22), 0 8px 18px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
}

/* ==========================================================================
/* ==========================================================================
   Cronograma Executivo - Rolagem Interativa (Coluna Única com Arraste e Pausa)
   ========================================================================== */
.timeline-drag-viewport {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.timeline-drag-viewport.is-dragging,
.timeline-drag-viewport.is-dragging * {
  cursor: grabbing !important;
}

.timeline-drag-track {
  will-change: transform;
}

.timeline-card {
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  border-color: rgba(0, 175, 239, 0.55);
  box-shadow: 0 12px 28px rgba(0, 175, 239, 0.16), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-statum-cyan);
  box-shadow: 0 0 8px rgba(0, 175, 239, 0.8);
}

/* Inputs do Formulário */
.form-input-custom {
  width: 100%;
  background-color: #171b1d;
  border: 1px solid #2d3337;
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  color: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

.form-input-custom:focus {
  border-color: var(--color-statum-cyan);
  background-color: #1a1f22;
  box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.25);
}

.form-input-custom::placeholder {
  color: #6b7280;
}

.form-input-custom option {
  background-color: #171b1d;
  color: #ffffff;
}

/* Spinner de Loading no Botão */
.spinner-btn {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Acessibilidade - Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-statum-cyan);
  outline-offset: 2px;
}

/* ==========================================================================
   Malha SVG Interativa de Sistemas (Efeito Esfera 3D & Lente Convexa)
   ========================================================================== */
#secao-transformacao {
  position: relative;
  background-color: #f8fafc;
  overflow: hidden;
  touch-action: pan-y;
}

#system-mesh-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#mesh-lines-highlight {
  filter: drop-shadow(0 0 5px rgba(0, 175, 239, 0.5));
  transition: stroke 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

#secao-transformacao.mesh-in-text-zone #mesh-lines-highlight {
  filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.25));
}

/* Card Glassmorphism Claro para o Bloco de Texto sobre a Malha */
.card-glass-light {
  background: rgba(255, 255, 255, 0.596);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(226, 232, 240, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.98);
  transition: all 0.3s ease;
}

.card-glass-light:hover {
  background: rgba(255, 255, 255, 0.534);
  box-shadow: 0 25px 45px -10px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(0, 175, 239, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* ==========================================================================
   SEÇÃO 7: PÚBLICO-ALVO — OVERLAY DE IMAGEM & CARDS GLASSMORPHISM ESCURO
   ========================================================================== */

/* Background com Imagem e Sobreposição Escura Preservando o Contraste */
.publico-bg-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(17, 21, 22, 0.86) 0%, rgba(17, 21, 22, 0.82) 50%, rgba(17, 21, 22, 0.94) 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    url('../images/mario-gogh-VBLHICVh-lI-unsplash.jpg');
  background-size: auto, 36px 36px, 36px 36px, cover;
  background-position: center center;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Boxes com Efeito Glass 30% + Blur */
.card-glass-dark {
  background: rgba(17, 21, 22, 0.30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glass-dark:hover {
  background: rgba(17, 21, 22, 0.45);
  border-color: rgba(0, 175, 239, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5),
              0 0 18px rgba(0, 175, 239, 0.2),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
}

.card-glass-dark.highlight-teal {
  border-color: rgba(0, 170, 158, 0.35);
}

.card-glass-dark.highlight-teal:hover {
  background: rgba(17, 21, 22, 0.45);
  border-color: rgba(0, 170, 158, 0.55);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5),
              0 0 18px rgba(0, 170, 158, 0.25),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   SEÇÃO 8: CARROSSEL COM PONTO FOCAL & MÁSCARA EM DEGRADÊ DE OPACIDADE
   ========================================================================== */

/* Viewport com Máscara de Degradê (as bordas esquerda e direita somem suavemente em transparência) */
.carousel-focal-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  /* Máscara de opacidade: 0% transparente nas bordas externas, 100% visível no miolo */
  mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.carousel-focal-track {
  display: flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
  user-select: none;
  cursor: grab;
}

.carousel-focal-track:active {
  cursor: grabbing;
}

/* Card Individual (Fundo Escuro Mantido Conforme Solicitado) */
.carousel-focal-card {
  width: 380px;
  max-width: 82vw;
  min-height: 220px;
  background: #171b1d;
  border: 1px solid #2d3337;
  transform: scale(0.90);
  opacity: 0.42;
  filter: blur(0.4px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease,
              filter 0.45s ease,
              background 0.45s ease;
}

/* Ponto Focal: Card Central em Destaque */
.carousel-focal-card.is-active {
  transform: scale(1.05);
  opacity: 1;
  filter: none;
  background: linear-gradient(145deg, #181d20 0%, #1e252a 100%);
  border-color: rgba(0, 175, 239, 0.55);
  box-shadow: 0 22px 45px -10px rgba(15, 23, 42, 0.35),
              0 0 25px rgba(0, 175, 239, 0.20),
              inset 0 1px 1px rgba(255, 255, 255, 0.12);
  z-index: 10;
}

.carousel-focal-card:not(.is-active):hover {
  opacity: 0.72;
  transform: scale(0.93);
  border-color: rgba(0, 175, 239, 0.3);
}

/* Indicadores de Paginação / Dots */
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.is-active {
  width: 32px;
  background-color: var(--color-statum-cyan);
  box-shadow: 0 0 10px rgba(0, 175, 239, 0.45);
}

.carousel-dot:hover:not(.is-active) {
  background-color: #94a3b8;
}