/* ==========================================================================
   MYKA COMPRESSORES - DARK MINIMALIST INDUSTRIAL STYLESHEET (MOBILE-FIRST)
   ========================================================================== */


:root {
  --bg-color-rgb: 14, 22, 36; /* Azul marinho escuro ligeiramente mais claro para mesclar com as imagens */
  --bg-color: rgb(var(--bg-color-rgb));
  --bg-card: rgba(14, 20, 33, 0.65);
  --accent-cyan: #00E5FF;
  --accent-blue: #0B72FF;
  --accent-blue-bright: #38BDF8;
  --text-primary: #FFFFFF;
  --text-secondary: #8E9BAE;
  --font-garrafal: 'Anton', 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --border-hud: rgba(0, 229, 255, 0.2);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-snap-type: none; /* Desativado snap nativo do CSS para controle 100% livre via JS */
  
  /* Scrollbar Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg-color);
}

/* --- BARRA DE ROLAGEM CUSTOMIZADA (DESKTOP) --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Trilho estático (fundo escuro/azul noturno) */
::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-left: none;
}

/* Cursor/Thumb da barra de rolagem (estático: azul escuro HUD) */
::-webkit-scrollbar-thumb {
  background: rgba(11, 114, 255, 0.7); /* Azul escuro HUD */
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Cursor/Thumb ao passar o mouse ou durante o scroll ativo (Ciano Neon brilhante) */
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active,
body.is-scrolling ::-webkit-scrollbar-thumb {
  background: var(--accent-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.8) !important;
  border-color: #00E5FF !important;
}

body {
  height: 700vh; /* Altura virtual (7 slides * 100vh) para permitir o scroll do navegador */
  position: relative;
  width: 100%;
  background-color: transparent; /* Permite ver os vídeos fixos atrás */
}

/* --- CONTAINER DE FUNDO (Z-INDEX FIX) --- */
#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color); /* Fundo escuro do site fica na base do container */
  z-index: 0;             /* Fica acima da página mas atrás da .content-wrapper (z-index: 10) */
  pointer-events: none;
  overflow: hidden;       /* Corta qualquer transbordo dos frames para evitar vazamentos na margem direita */
}

/* Esfumacado gradiente lateral desativado para usar a vinheta local */
#bg-gradient-overlay {
  display: none !important;
}

/* --- CANVAS 3D BACKGROUND (REMOVIDO / PREPARADO PARA VÍDEO) --- */
#bg-canvas {
  display: none;
}

/* --- VÍDEO DE FUNDO FIXO (Loop Overlay com Mesclagem) --- */
#bg-video {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0.15;           /* Suave overlay */
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

/* --- WRAPPER E VINHETA LOCALIZADA DO CANVAS DE ANIMACAO --- */
#scroll-canvas-wrapper {
  position: absolute;
  top: 62px;               /* Alinha com a parte inferior do cabeçalho no mobile */
  bottom: 32px;            /* Alinha com o topo do rodapé no mobile */
  left: -40vw;             /* Expande 40% para fora na borda esquerda */
  width: 180vw;            /* Ocupa 180% para cobrir o transbordo de 40% de cada lado */
  z-index: 1;              /* Atrás do #bg-video */
  display: flex;
  justify-content: center;
  align-items: center;     /* Centraliza vertical e horizontalmente */
  pointer-events: none;
  transition: filter 0.4s ease;
}

body.menu-active #scroll-canvas-wrapper {
  filter: blur(8px);
}

#scroll-canvas-inner {
  position: relative;
  width: 100%;
  height: auto;            /* Alterado para auto para evitar que estique verticalmente no mobile */
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;    /* Força a proporção exata da animação 3D */
  pointer-events: auto;
}

#scroll-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* Garante que o equipamento seja contido sem cortes laterais */
  z-index: 1;
  opacity: 1;              /* 100% de opacidade nos frames */
}

#scroll-canvas-vignette {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: 2;
  pointer-events: none;
  background: 
    /* Vinheta local dinâmica e suave baseada na cor de fundo do site (40% no mobile) */
    linear-gradient(180deg, var(--bg-color) 0%, var(--bg-color) 5%, rgba(var(--bg-color-rgb), 0) 40%),
    linear-gradient(0deg, var(--bg-color) 0%, var(--bg-color) 5%, rgba(var(--bg-color-rgb), 0) 40%),
    linear-gradient(270deg, var(--bg-color) 0%, var(--bg-color) 5%, rgba(var(--bg-color-rgb), 0) 40%),
    linear-gradient(90deg, var(--bg-color) 0%, var(--bg-color) 5%, rgba(var(--bg-color-rgb), 0) 40%);
}

/* --- IDENTIFICADOR DE SLIDE DINÂMICO --- */
#slide-identifier-hud {
  position: absolute;
  /* MOBILE: Centralizado horizontalmente logo acima da linha de ícones (.bottom-header-row) sem encostar */
  top: auto;
  bottom: calc(100% - 20px); /* Ajustado para a posição exata solicitada */
  left: 50%;
  right: auto;
  transform: translate(-50%, 12px); /* Começa ligeiramente deslocado para cima na transição */
  font-family: 'Black Ops One', sans-serif;
  font-size: 2.6rem; /* Ajustado no mobile para balancear legibilidade e tamanho da tela */
  color: var(--accent-cyan);
  pointer-events: none;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  white-space: nowrap;
  
  /* Animação suave igual aos ícones */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 0s; /* Esconde imediatamente ao sair */
  z-index: 15 !important; /* Fica acima da .content-wrapper (z-index 10) e do bg-container (z-index 0) */
}

#slide-identifier-hud.active {
  opacity: 0.25; /* Opacidade aumentada para 0.25 (75% transparente / 25% visível) */
  transform: translate(-50%, 0); /* Estado ativo centralizado horizontalmente */
  transition-delay: 0.1s; /* Surgimento sincronizado com o surgimento do slide */
}

/* --- HUD HEADER --- */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px calc(4vw + 16px);
  z-index: 1100; /* Aumentado para ficar por cima do modal de vídeo */
  display: flex;
  justify-content: space-between;
  align-items: center; /* Garante que logo e hambúrguer ficam na mesma linha vertical */
  background: linear-gradient(180deg, rgba(var(--bg-color-rgb), 0.9) 0%, rgba(var(--bg-color-rgb), 0) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.modal-active .hud-header {
  border-bottom: 1px solid transparent !important;
}

.hud-logo-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hud-logo-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.hud-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
}

.brand-text {
  font-family: 'Black Ops One', sans-serif;
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0; /* Remove qualquer espaço extra após a última letra */
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  line-height: 0.95;
  display: block;
}

.brand-sub {
  font-family: 'Teko', sans-serif;
  font-size: 0.6rem; /* Altura 3 vezes menor que MYKA */
  font-weight: normal;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); /* Cinza 50% */
  line-height: 0.85;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* --- HUD NAVIGATION & BURGER MENU (MOBILE-FIRST) --- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: center; /* Alinha verticalmente ao centro do header, na mesma altura que a logo */
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1250; /* Aumentado para ficar por cima do hud-nav e modal */
  padding: 0;
  margin: 0;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transition: all 0.3s ease-in-out;
}

/* Menu Toggle Ativo (X) */
.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hud-nav {
  position: fixed;
  top: 56px; /* Começa exatamente abaixo do cabeçalho de 56px de altura */
  right: -100%;
  width: 50vw;
  max-width: 240px;
  height: calc(100vh - 56px); /* Ocupa todo o espaço abaixo do cabeçalho */
  background: rgba(7, 10, 17, 0.95);
  border-left: 1px solid var(--border-hud);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  z-index: 1200; /* Aumentado para abrir por cima do modal */
}

/* Blur no fundo do wrapper do site quando o menu está aberto */
body.menu-active .content-wrapper {
  filter: blur(8px);
  transition: filter 0.4s ease;
  pointer-events: none;
}

body.is-scrolling .content-wrapper {
  /* Blur de movimento removido a pedido */
}

/* Transição suave */
.content-wrapper {
  transition: filter 0.4s ease;
}

.hud-nav.open {
  right: 0;
}

.nav-link {
  font-family: var(--font-garrafal);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 12px;
}

.nav-logo {
  border-bottom: 1px dashed rgba(0, 229, 255, 0.3);
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- SCROLL HUD INDICATOR --- */
.scroll-hud {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-bar-fill {
  width: 2px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.scroll-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scroll-height, 14.28%);
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transition: height 0.2s ease-out;
}

.scroll-step-indicator {
  font-family: var(--font-garrafal);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

.content-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

body.modal-active .content-wrapper {
  z-index: 1020; /* Fica acima do modal-overlay (1000) */
}

body.modal-active .scrolly-section {
  pointer-events: none !important;
}

body.modal-active .bottom-group {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Oculta título, HUD e textos do site durante o player de vídeo */
body.modal-active .section-badge,
body.modal-active .garrafal-title,
body.modal-active #slide-identifier-hud {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

/* Garante que durante o loading o badge e título fiquem invisíveis */
body.modal-active:not(.video-playing) .section-badge,
body.modal-active:not(.video-playing) .garrafal-title {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.scrolly-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 62px 24px 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: none;
  box-sizing: border-box;
}

.scrolly-section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- CAMADA DE BLUR DE FUNDO PARA TEXTO (DESATIVADA) --- */
.text-blur-bg {
  display: none !important;
}

/* Garante que os elementos de texto fiquem acima do blur */
.scrolly-section > *:not(.text-blur-bg) {
  position: relative;
  z-index: 2;
}

/* Ajuste específico para desktop (cobrindo apenas a área do texto no lado esquerdo) */
@media (min-width: 1024px) and (min-aspect-ratio: 13/10) {
  .text-blur-bg {
    width: 60%;
    background: transparent;
  }
}

/* Números gigantes em plano de fundo transparentes (REMOVIDOS) */
.bg-section-number {
  display: none !important;
}

/* Badge do Slide: Aparece e desaparece com fade in/out na troca de slides */
.section-badge {
  display: none !important;
}

.scrolly-section.active .section-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* LETRAS GARRAFAIS ESTILIZADAS COM ANTON */
.garrafal-title {
  font-family: var(--font-garrafal);
  font-size: 1.7rem; /* Reduzido de 2.5rem */
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: none;
  
  display: flex;
  flex-wrap: wrap; /* Permite que as palavras quebrem linha naturalmente */
  column-gap: 8px; /* Espaço entre palavras */
}

/* --- ANIMAÇÕES DE BRILHO NEON CINTILANTE (SUTIL E ORGÂNICO) --- */
@keyframes shimmer-cyan-glow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.35), 0 0 16px rgba(0, 229, 255, 0.15);
  }
  28% {
    text-shadow: 0 0 11px rgba(0, 229, 255, 0.45), 0 0 20px rgba(0, 229, 255, 0.2);
  }
  33% {
    text-shadow: 0 0 9px rgba(0, 229, 255, 0.38), 0 0 17px rgba(0, 229, 255, 0.18);
  }
  72% {
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.65), 0 0 26px rgba(0, 229, 255, 0.35);
  }
}

@keyframes shimmer-blue-glow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(11, 114, 255, 0.4), 0 0 16px rgba(11, 114, 255, 0.2);
  }
  24% {
    text-shadow: 0 0 12px rgba(0, 180, 255, 0.6), 0 0 22px rgba(0, 180, 255, 0.3);
  }
  30% {
    text-shadow: 0 0 9px rgba(11, 114, 255, 0.45), 0 0 17px rgba(11, 114, 255, 0.22);
  }
  76% {
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.7), 0 0 26px rgba(0, 200, 255, 0.4);
  }
}

@keyframes shimmer-azure-glow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4), 0 0 16px rgba(56, 189, 248, 0.2);
  }
  35% {
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.55), 0 0 22px rgba(56, 189, 248, 0.28);
  }
  42% {
    text-shadow: 0 0 9px rgba(56, 189, 248, 0.42), 0 0 17px rgba(56, 189, 248, 0.22);
  }
  68% {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.7), 0 0 26px rgba(56, 189, 248, 0.4);
  }
}

@keyframes whiteGlowPulse {
  0%, 100% {
    text-shadow: none;
  }
  50% {
    text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  }
}

.garrafal-title .brand-highlight,
.garrafal-title .heart-highlight,
.garrafal-title .industry-highlight {
  animation: whiteGlowPulse 6s infinite ease-in-out;
  animation-delay: calc(var(--word-index) * 1.2s); /* Atraso proporcional ao index para pulsar em sequência (uma por vez) */
  will-change: text-shadow;
}

/* Sincronização e sequência perfeita das 3 palavras pulsantes do Slide 1 (MYKA - PULMÃO - INDÚSTRIA) */
#inicio.active .garrafal-title .brand-highlight {
  animation-delay: 0s !important;
}
#inicio.active .garrafal-title .heart-highlight {
  animation-delay: 2s !important;
}
#inicio.active .garrafal-title .industry-highlight {
  animation-delay: 4s !important;
}

/* Destaque de cor da marca (Ciano Neon) */
.garrafal-title .brand-highlight {
  font-family: 'Black Ops One', sans-serif;
  color: var(--accent-cyan) !important;
  text-shadow: none;
}

/* Destaque azul elétrico para a palavra PULMÃO e PROTEJA */
.garrafal-title .heart-highlight {
  color: #0B72FF !important;
  text-shadow: none;
}

/* Destaque azul celeste para a palavra PRODUÇÃO */
.garrafal-title .warning-highlight {
  color: #38BDF8 !important;
  text-shadow: none;
}

/* Ampliação da palavra MYKA na seção inicial (Início/Hero) para alto contraste */
#inicio .garrafal-title .brand-highlight,
#hero .garrafal-title .brand-highlight {
  font-size: 2.1em;
  line-height: 0.75;
  display: inline-block;
  vertical-align: bottom;
}

/* Estrutura das linhas do título garrafal para suportar quebras com <br> */
.garrafal-title .title-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  width: 100%;
  align-items: baseline;
}

.garrafal-title .title-line:not(:last-child) {
  margin-bottom: 0.22em;
}

/* Destaque azul profundo ampliado para a palavra INDÚSTRIA */
.garrafal-title .industry-highlight {
  font-size: 1.45em;
  color: #00B0FF !important;
  letter-spacing: 1px;
  text-shadow: none;
}

/* Efeito sutil de surgimento palavra por palavra */
.garrafal-title .title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) translateZ(0); /* Deslocamento de partida */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s; /* Sem atraso na saída (fade-out) para não ser cortado */
}

/* Escalonamento de tamanho das três palavras (efeito cascata visual) nas demais seções */
.scrolly-section:not(#inicio):not(#hero) .garrafal-title .title-line:nth-child(1) {
  font-size: 1.2em;
}
.scrolly-section:not(#inicio):not(#hero) .garrafal-title .title-line:nth-child(2) {
  font-size: 0.95em;
}
.scrolly-section:not(#inicio):not(#hero) .garrafal-title .title-line:nth-child(3) {
  font-size: 0.75em;
}

#manutencao .garrafal-title .title-line:nth-child(1) {
  font-size: 1.7em !important;
}
#manutencao .garrafal-title .title-line:nth-child(2) {
  font-size: 1.45em !important;
}
#manutencao .garrafal-title .title-line:nth-child(3) {
  font-size: 1.15em !important;
}

/* Slide 2 (Empresa) - Desktop */
#empresa .garrafal-title .title-line:nth-child(1),
#quem-somos .garrafal-title .title-line:nth-child(1) {
  font-size: 1.7em !important;
}
#empresa .garrafal-title .title-line:nth-child(2),
#quem-somos .garrafal-title .title-line:nth-child(2) {
  font-size: 1.45em !important;
}
#empresa .garrafal-title .title-line:nth-child(3),
#quem-somos .garrafal-title .title-line:nth-child(3) {
  font-size: 1.25em !important;
}

#atividades .garrafal-title .title-line:nth-child(1),
#servicos .garrafal-title .title-line:nth-child(1) {
  font-size: 1.7em !important;
}
#atividades .garrafal-title .title-line:nth-child(2),
#servicos .garrafal-title .title-line:nth-child(2) {
  font-size: 1.45em !important;
}
#atividades .garrafal-title .title-line:nth-child(3),
#servicos .garrafal-title .title-line:nth-child(3) {
  font-size: 1.25em !important;
}

/* Slide 6 (Venda) - Desktop */
#venda .garrafal-title .title-line:nth-child(1) {
  font-size: 1.7em !important;
}
#venda .garrafal-title .title-line:nth-child(2) {
  font-size: 1.4em !important;
}
#venda .garrafal-title .title-line:nth-child(3) {
  font-size: 1.15em !important;
}

/* Slide 5 (Locação) - Desktop */
#locacao .garrafal-title .title-line:nth-child(1) {
  font-size: 1.7em !important;
}
#locacao .garrafal-title .title-line:nth-child(2) {
  font-size: 1.4em !important;
}
#locacao .garrafal-title .title-line:nth-child(3) {
  font-size: 1.15em !important;
}

/* Slide 7 (Contato) - Desktop */
#contato .garrafal-title .title-line:nth-child(1) {
  font-size: 1.7em !important;
}
#contato .garrafal-title .title-line:nth-child(2) {
  font-size: 1.4em !important;
}
#contato .garrafal-title .title-line:nth-child(3) {
  font-size: 1.15em !important;
}

@media (max-width: 1023px), (max-aspect-ratio: 13/10) {
  #bg-video {
    width: 100% !important;
    left: 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    opacity: 0.08 !important; /* Mais discreto no mobile (reduzido de 0.15 para 0.08) */
  }


  /* --- AJUSTE DE ESCALA DOS TÍTULOS PARA OCUPAR A LARGURA DA TELA (MOBILE) --- */
  
  /* Slide 1 (Início) - A MYKA NO / PULMÃO DA SUA / INDÚSTRIA */
  #inicio .garrafal-title .title-line:nth-child(1),
  #hero .garrafal-title .title-line:nth-child(1) {
    font-size: 10vw !important;
  }
  #inicio .garrafal-title .title-line:nth-child(2),
  #hero .garrafal-title .title-line:nth-child(2) {
    font-size: 8vw !important;
  }
  #inicio .garrafal-title .title-line:nth-child(3),
  #hero .garrafal-title .title-line:nth-child(3) {
    font-size: 6vw !important;
  }

  /* Slide 2 (Empresa) - RESPONSABILIDADE. / PROFISSIONALISMO. / EXPERIÊNCIA. */
  #empresa .garrafal-title .title-line:nth-child(1) {
    font-size: 11.5vw !important;
  }
  #empresa .garrafal-title .title-line:nth-child(2) {
    font-size: 10vw !important;
  }
  #empresa .garrafal-title .title-line:nth-child(3) {
    font-size: 8.5vw !important;
  }

  /* Slide 3 (Atividades) - MANUTENÇÃO. / LOCAÇÃO. / VENDA. */
  #atividades .garrafal-title .title-line:nth-child(1),
  #servicos .garrafal-title .title-line:nth-child(1) {
    font-size: 15vw !important;
  }
  #atividades .garrafal-title .title-line:nth-child(2),
  #servicos .garrafal-title .title-line:nth-child(2) {
    font-size: 13vw !important;
  }
  #atividades .garrafal-title .title-line:nth-child(3),
  #servicos .garrafal-title .title-line:nth-child(3) {
    font-size: 10.5vw !important;
  }

  /* Slide 4 (Manutenção) - PREVENÇÃO. / PREDIÇÃO. / CORREÇÃO. */
  #manutencao .garrafal-title .title-line:nth-child(1) {
    font-size: 17vw !important;
  }
  #manutencao .garrafal-title .title-line:nth-child(2) {
    font-size: 14.5vw !important;
  }
  #manutencao .garrafal-title .title-line:nth-child(3) {
    font-size: 9.2vw !important;
  }

  /* Slide 5 (Locação) - DISPONIBILIDADE. / FLEXIBILIDADE. / AGILIDADE. */
  #locacao .garrafal-title .title-line:nth-child(1) {
    font-size: 12.5vw !important;
  }
  #locacao .garrafal-title .title-line:nth-child(2) {
    font-size: 11vw !important;
  }
  #locacao .garrafal-title .title-line:nth-child(3) {
    font-size: 9.5vw !important;
  }

  /* Slide 6 (Venda) - PROCEDÊNCIA. / VARIEDADE. / PREÇO. */
  #venda .garrafal-title .title-line:nth-child(1) {
    font-size: 16vw !important;
  }
  #venda .garrafal-title .title-line:nth-child(2) {
    font-size: 13vw !important;
  }
  #venda .garrafal-title .title-line:nth-child(3) {
    font-size: 10vw !important;
  }

  /* Slide 7 (Contato) - CREDIBILIDADE. / CONFIANÇA. / PROTEÇÃO. */
  #contato .garrafal-title .title-line:nth-child(1) {
    font-size: 14vw !important;
  }
  #contato .garrafal-title .title-line:nth-child(2) {
    font-size: 11vw !important;
  }
  #contato .garrafal-title .title-line:nth-child(3) {
    font-size: 8.5vw !important;
  }

  .footer-info {
    font-size: 0.45rem !important;
    padding: 4px 10px !important;
  }

  /* Ajustes finos de espaçamento para garantir que todos os slides caibam na tela 100vh sem cortar topo ou base */
  .scrolly-section {
    padding-top: 72px !important;
    padding-bottom: 36px !important;
    padding-left: calc(4vw + 16px) !important;
    padding-right: calc(4vw + 16px) !important;
    transform: none !important; /* Desativa transformações de transição no mobile para evitar erros de cálculo do scroll */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important, visibility 0.8s !important;
  }

  .garrafal-title {
    order: 1 !important;
    margin-bottom: 6px !important;
  }

  .section-badge {
    order: 2 !important;
    margin-bottom: 12px !important;
  }

  .bottom-group {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .garrafal-title .title-line:not(:last-child) {
    margin-bottom: 1.2vw !important; /* Afastamento constante (em vw) para evitar variação por tamanho de fonte */
  }

  .action-buttons {
    margin-top: 6px !important;
  }

  /* Alinhamento dos botões Play e WhatsApp no mobile */
  .bottom-header-row {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important; /* Alinha os textos na mesma linha na base */
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 82px !important;
    margin-bottom: 8px !important;
  }
  
  .company-stats {
    display: contents !important;
  }

  .stat-item {
    position: relative !important;
    opacity: 0;
    transform: translateY(12px) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: auto !important;
    height: auto !important;
  }

  .scrolly-section.active .stat-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.3s !important;
  }

  .stats-placeholder {
    width: 32px !important; /* largura do ícone estatística */
    height: 32px !important;
    visibility: hidden;
  }

  .watch-btn {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: translateY(12px) !important; /* Deslocado para baixo quando inativo */
    margin: 0 !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
  }

  .scrolly-section.active .watch-btn {
    transform: translateY(0) !important; /* Retorna à posição original */
  }
  
  .btn-whatsapp-local {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 0;
    transform: translateY(12px) !important; /* Deslocado para baixo quando inativo */
    pointer-events: none;
    z-index: 10 !important;
  }

  .scrolly-section.active .btn-whatsapp-local {
    opacity: 1 !important;
    transform: translateY(0) !important; /* Retorna ao topo quando ativo */
    pointer-events: auto !important;
  }
}



/* Quando rola para cima, a cascata de delay também pode ser ligeiramente deslocada */
body.scroll-up .garrafal-title .title-word {
  transform: translateY(-20px) translateZ(0);
}

.scrolly-section.active .garrafal-title .title-word {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  transition-delay: calc(0.35s + var(--word-index) * 0.12s); /* Atraso em cascata apenas na entrada (fade-in) */
}

/* bottom-group: agrupa ícones + texto; flex:1 no mobile para preencher espaço vertical */
.bottom-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  margin-top: auto; /* Empurra todo o grupo para a base */
}

/* O slide CONTATO precisa preencher o espaço vertical para distribuir os ícones */
#contato .bottom-group {
  flex: 1;
  margin-top: 24px; /* Substitui o auto para garantir que comece logo abaixo do título */
  justify-content: space-between; /* Distribui entre o card de contato e o texto */
}

/* Exibe o botão assistir centralizado na tela apenas quando a seção ativa o contiver */
.scrolly-section.active .watch-btn {
  opacity: 1;
  pointer-events: auto;
}

.section-desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #FFFFFF;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-weight: 400;
  width: 100%;
  max-width: 100%;
  text-align: justify;
  border-left: none;
  padding-left: 0;
  margin-left: 0;
  box-sizing: border-box;
  
  opacity: 1; /* Mantém 100% visível para não piscar */
  filter: blur(10px); /* Começa desfocado */
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-section.active .section-desc {
  opacity: 1;
  filter: blur(0);
  transition-delay: 0.35s; /* Ajustado para sincronizar com o surgimento do título */
}

/* --- ESTATÍSTICAS DA EMPRESA (DISTRIBUÍDAS VERTICALMENTE ENTRE TÍTULO E TEXTO) --- */
.company-stats {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px; /* Reduzido de 16px */
  width: 100%;
  max-width: 100%;
  margin-top: 8px; /* Reduzido de 14px */
  margin-bottom: 24px; /* Aumentado para mover para cima, aproveitando o espaço abaixo do título */
  padding: 4px 0; /* Reduzido de 8px 0 */
  align-self: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0s;
  pointer-events: none;
}

.scrolly-section.active .company-stats {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
  pointer-events: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza horizontalmente o texto e o cabeçalho */
  gap: 4px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0 !important; /* Reseta padding */
  margin: 0 !important;  /* Reseta margin */
  padding-bottom: 0;
}

.stat-item:hover {
  transform: none;
}

.stat-header-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important; /* Centraliza ícone e número na linha */
  gap: 8px !important;
  width: 100% !important;
  height: 30px !important; /* Altura padronizada no mobile */
  margin: 0 !important;
}

.stat-icon {
  width: 20px; /* Reduzido de 24px */
  height: 20px; /* Reduzido de 24px */
  stroke: var(--accent-cyan);
  color: var(--accent-cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.45)); /* Glow de neon para combinar com os outros */
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  line-height: 1;
  font-family: var(--font-garrafal);
  font-size: 1.25rem; /* Reduzido de 1.6rem */
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: var(--glow-cyan); /* Glow de neon para combinar com os outros */
}

.stat-prefix,
.stat-suffix {
  font-family: var(--font-garrafal);
  font-size: 1rem; /* Reduzido de 1.3rem */
  color: var(--accent-cyan);
}

.stat-label {
  font-family: var(--font-garrafal);
  font-size: 0.75rem; /* Sincronizado com o badge no mobile */
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  line-height: 1.2 !important; /* Altura de linha padronizada */
  text-align: center; /* Centraliza as linhas de texto entre si */
  white-space: normal !important; /* Permite a quebra de linha */
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: var(--glow-cyan); /* Glow de neon para combinar com os outros */
}

@media (min-width: 1024px) and (min-aspect-ratio: 13/10) {
  .company-stats {
    max-width: 540px;
    gap: 20px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 12px 0;
  }

  .stat-item {
    gap: 14px;
    max-width: 110px; /* Limita a largura para forçar a quebra em duas linhas */
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-number-wrapper {
    font-size: 2.1rem;
  }
  
  .stat-prefix,
  .stat-suffix {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.88rem !important; /* Sincronizado com o badge no desktop */
    letter-spacing: 1.5px;
    white-space: normal !important; /* Permite quebrar em duas linhas */
  }

  /* --- DESKTOP: 3 ícones em linha horizontal, logo acima do texto --- */

  #empresa,
  #quem-somos {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    box-sizing: border-box !important;
  }

  .bottom-group {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 50vw;
    max-width: 50vw;
    margin-left: 0;
    margin-top: auto !important;
    min-height: 180px !important; /* Altura mínima garantida para acomodar o bloco */
  }

  .company-stats {
    position: fixed !important;
    top: auto !important;
    bottom: 46px !important; /* Ajustado para alinhar com a base do texto descritivo */
    left: 58vw !important; /* Posiciona um pouco mais para a direita do fim da descrição */
    display: flex !important;
    flex-direction: row !important; /* Ícones em linha */
    align-items: flex-end !important; /* Alinha o texto na mesma linha inferior dos botões */
    gap: 24px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .scrolly-section.active .company-stats {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .stat-item {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    width: max-content !important;
    gap: 8px;
    padding: 0;
    border: none;
  }

  .stat-header-row {
    gap: 12px !important;
    justify-content: center !important;
  }

  .stat-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .stat-number-wrapper {
    font-size: 1.8rem !important; /* Aumentado para 1.8rem */
  }

  .stat-item {
    max-width: 140px !important; /* Limita a largura dos itens para forçar a quebra em duas linhas em todos os slides */
    gap: 4px !important; /* Reduz o espaço vertical entre o ícone/número e a legenda */
  }

  .stat-label {
    font-size: 0.88rem !important; /* Sincronizado com o badge no desktop */
    letter-spacing: 1.5px;
    font-weight: 500 !important;
    white-space: normal !important; /* Permite quebrar em duas linhas */
  }
}

.action-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
  margin: 12px 0 0 0 !important;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.btn {
  font-family: var(--font-garrafal);
  font-size: 0.7rem;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  flex: 1 1 0;
  min-width: 0;
}

.btn-primary,
.btn-secondary {
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.15);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

/* WhatsApp: Escondido no mobile/desktop porque agora usamos os locais por slide */
.btn-whatsapp {
  display: none !important;
}

/* Novo layout para linha de botões de ação na base de cada slide */
.bottom-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.stats-placeholder {
  width: 100px;
  height: 1px;
}

.btn-whatsapp-local {
  position: fixed;
  bottom: 44px; /* Mantém igual ao original no desktop */
  right: 24px;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--accent-cyan); /* Segue a cor ciano do botão Play */
  border: none;
  box-shadow: none; /* Remove o círculo e a sombra ao redor */
  display: flex;
  flex-direction: column; /* Empilha ícone acima do texto */
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 999;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
  transition-delay: 0s;
  flex: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  text-decoration: none !important; /* Remove sublinhado */
  padding: 0 !important; /* Reseta padding padrão */
  margin: 0 !important;  /* Reseta margin padrão */
}

.whatsapp-btn-text {
  display: block; /* Visível por padrão no mobile */
  font-family: var(--font-garrafal);
  font-size: 0.75rem; /* Sincronizado com o badge no mobile */
  font-weight: 500; /* Igualando a espessura */
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  white-space: normal; /* Permite a quebra de linha com <br> */
  text-align: center; /* Centraliza as duas linhas */
  pointer-events: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none !important;
  line-height: 1.2 !important; /* Altura de linha padronizada */
  margin: 0 !important;
  padding: 0 !important;
}

.whatsapp-btn-sub {
  font-size: 0.75rem;
  display: inline-block;
  margin-top: 2px;
}

.scrolly-section.active .btn-whatsapp-local {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.3s, 0.3s, 0s, 0s, 0s; /* Sincroniza com o company-stats */
}

.btn-whatsapp-local:hover,
.btn-whatsapp-local:active {
  background: transparent !important;
  color: #ffffff !important; /* Branco no hover */
  transform: translateY(0) scale(1.1); /* Mantém na posição e aumenta no desktop */
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.85)); /* Glow ciano no hover */
  text-decoration: none !important;
}

.whatsapp-btn-icon {
  width: 24px !important; /* Aumentado no mobile para melhor visibilidade */
  height: 24px !important;
  fill: currentColor;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.45)); /* Brilho ciano suave padrão */
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  display: block !important;
}

/* Assistir: Apenas ícone de Play centralizado nos frames de animação */
.watch-btn {
  position: static !important; /* Static para se alinhar na linha .bottom-header-row no mobile */
  display: flex;
  flex-direction: column; /* Organiza triângulo acima do texto */
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: var(--accent-cyan) !important;
  z-index: 50; /* Abaixo do HUD mas acima do canvas */
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
  padding: 0 !important; /* Reseta padding padrão */
  margin: 0 !important;  /* Reseta margin padrão */
  transition-delay: 0s;
  flex: 1 !important; /* Faz ocupar espaço igual na proporção da linha */
  opacity: 0;
  pointer-events: none;
}

.watch-btn-text {
  display: block; /* Visível por padrão */
  font-family: var(--font-garrafal);
  font-size: 0.75rem; /* Sincronizado com o badge no mobile */
  font-weight: 500; /* Igualando a espessura */
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  white-space: normal; /* Permite a quebra de linha com <br> */
  text-align: center; /* Centraliza as linhas de texto */
  pointer-events: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none !important;
  line-height: 1.2 !important; /* Altura de linha padronizada */
  margin: 0 !important;
  padding: 0 !important;
}

.watch-btn-sub {
  font-size: 0.75rem; /* Ajustado para ter o mesmo tamanho da linha superior */
  display: inline-block;
  margin-top: 2px;
}

.scrolly-section.active .watch-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.3s, 0.3s, 0s, 0s, 0s; /* Sincroniza delay com company-stats */
}

.watch-btn:hover .play-icon {
  transform: scale(1.1) translateY(-2px); /* Triângulo dá zoom e sobe de leve */
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.95)); /* Brilha mais */
}

.watch-btn:hover .watch-btn-text {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.85) !important;
}

.play-icon {
  width: 24px !important; /* Aumentado no mobile para melhor visibilidade */
  height: 24px !important;
  fill: currentColor;
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  display: block !important;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease; /* Transições suaves */
}

.play-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-unread {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: #ff3b30;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  padding: 0 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.9);
  border: 1px solid rgba(14, 20, 33, 0.95);
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.watch-btn.assistido .badge-unread {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* PILLS DE SERVIÇO */
.services-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 24px;
}

.pill {
  font-family: var(--font-garrafal);
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 10px 14px;
  background: rgba(14, 20, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
  color: var(--text-primary);
}

/* SCROLL HINT */
.scroll-hint {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.chevron-down {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* CARD DE CONTATO */
.contact-card,
.contact-cols-container {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Reduzido de 8px para compactar na vertical */
  width: 100%;
  margin-bottom: 8px; /* Reduzido de 12px */
  margin-top: auto;
  
  /* Escondido por padrão, surge com delay */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0s;
  pointer-events: none;
}

.scrolly-section.active .contact-card,
.scrolly-section.active .contact-cols-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s; /* Surge 0.5s após a seção ficar ativa */
  pointer-events: auto;
}



#contato .contact-card-col {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-evenly !important; /* Retorna para space-evenly para distribuição idêntica de espaços */
  align-items: flex-start !important;
  flex: 1 !important;
  margin-top: 0 !important; /* Removido margin extra para padronizar com action-buttons */
  margin-bottom: 0 !important; /* Removido margin extra para padronizar com action-buttons */
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  gap: 8px 16px !important; /* Espaço reduzido para caber na tela */
}

.contact-item-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start; /* Alinhamento na esquerda novamente */
  width: 100%;
}



@media (min-width: 1024px) and (min-aspect-ratio: 13/10) {
  #contato .bottom-group {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-top: 0 !important;
    height: 100% !important;
  }

  #contato .contact-cols-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 50vw !important;
    max-width: 50vw !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    justify-content: space-evenly !important;
    gap: 0 !important;
  }

  #contato .contact-card-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    gap: 0 !important;
  }
}

.contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* Ajustado para o novo tamanho do ícone */
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: static !important;
  transition: transform 0.3s ease;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}



.contact-icon-btn:hover {
  transform: translateY(-3px);
}

.contact-icon-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.contact-icon-btn:hover .icon,
.contact-icon-btn.active-banner-icon .icon {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.phone-card-icon,
.email-card-icon,
.location-card-icon,
.linkedin-card-icon,
.instagram-card-icon,
.facebook-card-icon {
  width: 24px; /* Aumentado */
  height: 24px; /* Aumentado */
  fill: var(--accent-cyan);
  transition: fill 0.3s ease;
}

/* Banner flutuante inline deslizante */
.inline-info-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #0a0f1d;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 3.1vw, 0.85rem);
  white-space: nowrap;
  
  max-width: 0;
  opacity: 0;
  padding: 0;
  margin-left: 0;
  border-width: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 229, 255, 0.35);
}

.inline-info-banner.active {
  max-width: 100%;
  opacity: 1;
  padding: 10px 12px;
  border-width: 1.5px;
  margin-left: 12px; /* Espaço entre o ícone e o banner */
}

.footer-info {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px; /* Altura idêntica ao padding-bottom do mobile (32px) */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100; /* Aumentado para ficar por cima do modal de vídeo */
  font-family: var(--font-body);
  font-size: 0.55rem; /* Reduzido para 0.55rem */
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0 16px;
  background: linear-gradient(0deg, rgba(var(--bg-color-rgb), 0.9) 0%, rgba(var(--bg-color-rgb), 0) 100%); /* Efeito gradiente igual ao cabeçalho (invertido) */
  backdrop-filter: blur(8px); /* Efeito de desfoque igual ao cabeçalho */
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap; /* Garante que fique em uma única linha no mobile */
  box-sizing: border-box;
}




#contato .contact-cols-container {
  margin-top: 0 !important; /* Encostado logo abaixo do botão ASSISTA */
  margin-bottom: 0 !important; /* Rebaixa o último card o máximo possível rente ao rodapé */
  flex: 1 !important;
}

/* Regras mobile para as duas colunas independentes de contato */
@media (max-width: 1023px), (max-aspect-ratio: 13/10) {
  #contato .contact-cols-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    width: 100% !important;
    flex: 1 !important;
    position: static !important;
    transform: none !important;
    padding-bottom: 60px !important; /* Empurra os ícones para cima dentro do frame */
  }

  #contato .contact-card-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
    width: auto !important;
    max-width: 48% !important;
    flex: 1 !important;
    gap: 8px !important;
  }

  #contato #contact-icons-col-left {
    align-items: flex-start !important;
  }

  #contato #contact-icons-col-right {
    align-items: flex-end !important;
  }

  #contato .contact-item-row {
    position: relative !important;
  }

  #contato #contact-icons-col-right .contact-item-row {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
  }

  #contato .inline-info-banner {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: max-content !important;
    z-index: 100 !important;
  }

  #contato #contact-icons-col-left .inline-info-banner {
    left: 44px !important;
  }

  #contato #contact-icons-col-right .inline-info-banner {
    right: 44px !important;
  }

  #contato .inline-info-banner.active {
    max-width: 70vw !important;
    opacity: 1 !important;
    padding: 8px 12px !important;
    border-width: 1.5px !important;
  }
}

.footer-info .copy {
  margin-top: 0; /* Removido o espaçamento */
  font-size: inherit; /* Herda o tamanho menor de 0.55rem */
  opacity: 0.8;
}

.footer-info .copy a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.footer-info .copy a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* --- MODAL VÍDEO FUTURISTA --- */
.modal-overlay {
  position: fixed;
  top: 60px; /* Encosta perfeitamente na base do cabeçalho */
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px); /* Preenche da base do cabeçalho até o final da tela */
  background: var(--bg-color) !important; /* Cor de fundo azul marinho escuro do cabeçalho (rgb(14, 22, 36)) */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
  transition: opacity 0.3s ease, background 0.5s ease;
}

.modal-overlay.loading {
  background: var(--bg-color) !important;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  border: none;
  z-index: 1;
  opacity: 1;
}

.modal-video.hidden {
  display: none !important;
}

/* Vinheta em meio termo perfeito (degradê radial e sombra interna equilibrados na cor azul do cabeçalho) */
.video-vignette,
.video-vignette.hidden {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 100 !important; /* Fica acima da simulação do vídeo e do robô */
  background: radial-gradient(
    ellipse 72% 72% at center,
    rgba(14, 22, 36, 0) 25%,
    rgba(14, 22, 36, 0.6) 62%,
    rgba(14, 22, 36, 0.95) 95%
  ) !important;
  box-shadow: inset 0 0 80px 35px rgba(14, 22, 36, 0.9) !important;
}

.video-close-btn {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  width: auto;
  max-width: 250px;
  padding: 6px 20px;
  font-size: 0.8rem;
  flex: none;
}

.video-close-btn.hidden {
  display: none !important;
}

.video-close-btn:hover {
  transform: translateX(-50%) translateY(-2px);
}

.modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100vw;
  height: 100%;
  max-height: 100%;
  max-width: 100vw;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.video-container {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.robot-video-simulation {
  background: linear-gradient(180deg, rgba(7, 10, 17, 0.35) 0%, rgba(7, 10, 17, 0.8) 100%), url('mikron.webp') no-repeat center center;
  background-size: cover;
  background-color: #070a11;
  border: none;
  border-radius: 0;
  padding: 30px 24px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.hud-scanner {
  display: none !important;
}

.audio-control-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 18px;
  justify-content: center;
  margin-bottom: 4px;
  z-index: 10;
  width: auto;
}

.symbol-play-pause-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  padding: 0 12px;
}

.symbol-play-pause-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 25px var(--accent-cyan);
  transform: scale(1.15);
}

.symbol-play-pause-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: margin 0.2s ease;
}

/* Ajuste visual fino do play (triângulo) para parecer perfeitamente centrado */
.symbol-play-pause-btn:not(.playing) .icon {
  margin-left: 5px;
}

.symbol-play-pause-btn.playing .icon {
  margin-left: 0;
}

.bottom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 15px;
  margin-bottom: 70px; /* Subido de 20px para 70px */
  width: 100%;
  z-index: 5;
}

.audio-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 16px;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.audio-wave span {
  width: 3px;
  height: 100%;
  background: var(--accent-cyan);
  animation: wave 1s infinite ease-in-out;
}

.audio-wave span:nth-child(2) { animation-delay: 0.2s; }
.audio-wave span:nth-child(3) { animation-delay: 0.4s; }
.audio-wave span:nth-child(4) { animation-delay: 0.6s; }
.audio-wave span:nth-child(5) { animation-delay: 0.8s; }

.audio-wave.paused span {
  animation-play-state: paused !important;
  height: 4px !important;
  opacity: 0.4;
}

.discreet-close-btn {
  font-family: var(--font-garrafal);
  font-size: 0.75rem;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  z-index: 10;
}

.discreet-close-btn:hover {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%) !important;
  color: #000 !important;
  border-color: transparent !important;
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
}

@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.robot-avatar {
  display: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.robot-speech {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: auto;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  font-weight: 400;
  z-index: 1;
  text-align: center;
  background: rgba(5, 8, 14, 0.75);
  padding: 14px 28px;
  border-radius: 6px;
  width: 90%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 229, 255, 0.15);
  max-height: none;
  overflow-y: visible;
}

.audio-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 16px;
  z-index: 1;
}

.audio-wave span {
  width: 3px;
  height: 100%;
  background: var(--accent-cyan);
  animation: wave 1s infinite ease-in-out;
}

.audio-wave span:nth-child(2) { animation-delay: 0.2s; }
.audio-wave span:nth-child(3) { animation-delay: 0.4s; }
.audio-wave span:nth-child(4) { animation-delay: 0.6s; }
.audio-wave span:nth-child(5) { animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* RESPONSIVIDADE (DESKTOP ENHANCEMENT) */
@media (min-width: 1024px) and (min-aspect-ratio: 13/10) {
  .hud-header {
    padding-left: 80px !important; /* Logo afastada 80px da borda esquerda */
    padding-right: 80px !important; /* Menu afastado 80px da borda direita */
  }

  #scroll-canvas-wrapper {
    top: 65px !important;    /* Alinha com a parte inferior do cabeçalho no desktop (65px) */
    bottom: 40px !important; /* Alinha com o topo do rodapé no desktop (40px) */
    left: 25vw !important;   /* Desloca 25% para a direita no desktop */
    width: 75vw !important;  /* Reduz a largura para não transbordar pela direita */
    height: calc(100vh - 105px) !important; /* Altura total subtraindo cabeçalho (65px) e rodapé (40px) */
  }

  #scroll-canvas-inner {
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important; /* Força a proporção nativa da animação */
  }

  #scroll-canvas {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Garante que a animação inteira apareça sem cortes */
  }

  #scroll-canvas-vignette {
    background: 
      /* Vinheta local dinâmica e suave baseada na cor de fundo do site (30% no desktop) */
      linear-gradient(180deg, var(--bg-color) 0%, rgba(var(--bg-color-rgb), 0) 30%),
      linear-gradient(0deg, var(--bg-color) 0%, rgba(var(--bg-color-rgb), 0) 30%),
      linear-gradient(270deg, var(--bg-color) 0%, rgba(var(--bg-color-rgb), 0) 30%),
      linear-gradient(90deg, var(--bg-color) 0%, rgba(var(--bg-color-rgb), 0) 30%) !important;
  }

  #slide-identifier-hud {
    position: fixed !important;
    top: calc(65px + 20px) !important; /* Logo abaixo do cabeçalho desktop (65px) */
    bottom: auto !important; /* Reseta o bottom do mobile */
    left: auto !important; /* Reseta o left do mobile */
    right: 80px !important; /* Afastado 80px da margem direita (mesma margem do cabeçalho) */
    font-size: 3.2rem !important; /* Fonte reduzida no desktop */
    text-align: right !important; /* Garante alinhamento de texto à direita */
    transform: translateY(12px) !important; /* Reseta o translate(-50%) do mobile */
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    transition-delay: 0s !important;
  }

  #slide-identifier-hud.active {
    opacity: 0.125 !important; /* Opacidade reduzida no desktop */
    transform: translateY(0) !important; /* Reseta o translate(-50%) do mobile */
    transition-delay: 0.1s !important;
  }

  .hud-header .brand-text {
    font-size: 2.4rem;
  }

  .hud-header .brand-sub {
    font-size: 0.8rem;
  }

  #hero .garrafal-title .title-line:nth-child(2) {
    font-size: 0.85em !important; /* Reduz a fonte de 'DA SUA INDÚSTRIA.' no desktop para o efeito escalonado */
  }

  #inicio .garrafal-title .title-line:nth-child(3),
  #hero .garrafal-title .title-line:nth-child(3) {
    font-size: clamp(25px, 2.2vw, 36px) !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .hud-nav {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 !important;
  }

  .nav-link {
    font-size: 0.9rem !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
  }

  .mobile-only-logo {
    display: none !important; /* Oculta a logo do menu no desktop */
  }

  /* Ajustes específicos para tablets e notebooks com telas menores para evitar encavalamento do cabeçalho */
  @media (min-width: 1024px) and (max-width: 1200px) and (min-aspect-ratio: 13/10) {
    .hud-header {
      padding-left: 30px !important;
      padding-right: 30px !important;
    }
    .hud-nav {
      gap: 10px !important;
    }
    .nav-link {
      font-size: 0.75rem !important;
      padding: 4px 6px !important;
    }
    .hud-header .brand-text {
      font-size: 2.0rem;
    }
    .hud-header .brand-sub {
      font-size: 0.7rem;
    }
  }


  
  /* Seção em tela cheia no desktop para suportar os números em tela cheia no canto direito */
  .scrolly-section {
    max-width: none !important;
    width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 80px !important;
    padding-left: 80px !important;
    padding-right: 80px !important;
    padding-bottom: 40px !important;
  }

  .scrolly-section:last-child {
    margin-bottom: 0 !important;
  }

  #contato .contact-icon-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .footer-info {
    height: 40px !important; /* Ajustado para 40px no desktop */
    justify-content: flex-start !important; /* Alinha o texto à esquerda no desktop */
    padding-left: 80px !important; /* Alinha com a logo e margem esquerda do site */
  }

  /* Ajuste de escala e posicionamento dos números gigantes no desktop */
  .bg-section-number {
    font-size: 90vh !important;
    right: -25vw !important;
  }

  .scrolly-section.active .bg-section-number {
    right: -6vw !important; /* Cortado na margem física direita do desktop */
    opacity: 0.05 !important;
  }

  body.is-scrolling .scrolly-section.active .bg-section-number {
    opacity: 0.25 !important;
  }

  .garrafal-title,
  #contato .garrafal-title {
    font-size: 3.5rem !important;
    order: 1 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important; /* Espaço entre o título e a tag abaixo */
  }

  .section-badge {
    font-size: 0.88rem !important;
    order: 2 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important; /* Espaço abaixo da tag */
    align-self: flex-start !important;
    width: max-content !important;
  }

  .watch-btn {
    order: 3 !important;
    position: fixed !important;
    top: auto !important;
    left: 74vw !important; /* Posicionado no meio exato entre as estatísticas (58vw) e o WhatsApp (90vw) */
    right: auto !important;
    bottom: 46px !important; /* Ajustado para alinhar com a base do texto descritivo */
    width: auto !important;
    height: auto !important;
    transform: translateY(12px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .scrolly-section.active .watch-btn {
    transform: translateY(0) !important;
  }

  .watch-btn:hover,
  .watch-btn:active {
    transform: scale(1.08) !important; /* Sem pulos no desktop */
    color: #ffffff !important;
  }

  .watch-btn-text {
    display: block !important;
    position: static !important; /* Alinhamento estático no fluxo flex vertical */
    transform: none !important;
    font-family: var(--font-garrafal) !important; /* Fonte igual à da tag */
    font-size: 0.88rem !important; /* Sincronizado com o badge no desktop */
    font-weight: 500 !important; /* Igualando a espessura */
    color: var(--accent-cyan) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    letter-spacing: 1.5px !important;
  }

  .watch-btn .play-icon {
    width: 44px !important; /* Aumentado no desktop para compatibilidade com os ícones das estatísticas */
    height: 44px !important;
  }

  .btn-whatsapp-local {
    bottom: 46px !important; /* Ajustado para alinhar com a base do texto descritivo */
    left: 90vw !important; /* Fixado em vw para manter espaçamento constante de 16vw: 58vw -> 74vw -> 90vw */
    right: auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .stat-header-row {
    height: 48px !important; /* Altura padronizada no desktop */
    gap: 12px !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .watch-btn .play-icon,
  .btn-whatsapp-local .whatsapp-btn-icon {
    width: 44px !important; /* Tamanho idêntico ao .stat-icon */
    height: 44px !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
  }

  .btn-whatsapp-local .whatsapp-btn-text {
    display: block !important;
    font-family: var(--font-garrafal) !important;
    font-size: 0.88rem !important; /* Sincronizado com o badge no desktop */
    font-weight: 500 !important; /* Igualando a espessura */
    color: var(--accent-cyan) !important;
    text-shadow: var(--glow-cyan) !important;
    white-space: nowrap !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
  }

  .watch-btn-sub,
  .whatsapp-btn-sub {
    font-size: inherit !important;
  }

  .bottom-group {
    order: 4 !important;
  }

  .section-desc {
    font-size: 16px;
    width: 50vw;
    max-width: 50vw;
    padding-left: 0;
    border-left-width: 0; /* Barra vertical esquerda removida no desktop */
    margin-left: 0;
    margin-top: 0 !important; /* Deixa o fluxo normal atuar, pois bottom-group já é margin-top: auto */
    margin-bottom: 0 !important;
  }

  .action-buttons {
    display: none !important;
  }
}

/* ==========================================================================
   TELA INICIAL / INTRO SCREEN (LOADING DE 3 SEGUNDOS)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050814; /* Tom de azul escuro profundo para casar com o vídeo de fundo do site */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1s;
  pointer-events: auto;
  overflow: hidden;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Contador em Segundo Plano no Intro */
.intro-bg-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-garrafal);
  font-size: 70vh;
  line-height: 1;
  color: var(--accent-cyan);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform, opacity;
}

.intro-bg-number.pulse-number {
  animation: number-trigger 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes number-trigger {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.15;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.035;
  }
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
  animation: intro-zoom 3s linear forwards;
}

@keyframes intro-zoom {
  0% {
    transform: scale(0.96); /* Zoom inicial muito mais sutil */
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: scale(1.04); /* Zoom final reduzido de 1.18 para 1.04 (muito mais sutil) */
    opacity: 0;
  }
}

.intro-line-wrapper {
  opacity: 0;
  transform: translateY(12px);
  animation: intro-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes intro-fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Frase Tipográfica Impactante na Tela de Carregamento */
.intro-phrase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.intro-line-1 {
  font-family: var(--font-garrafal);
  font-size: 1.3rem;
  letter-spacing: 6px;
  color: #8E9BAE;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Retornada a fonte original garrafal */
.intro-line-2,
.intro-line-4 {
  font-family: var(--font-garrafal);
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 35px rgba(0, 229, 255, 0.3);
  animation: shimmer-cyan-glow 3.2s infinite ease-in-out;
}

.intro-line-3 {
  font-family: var(--font-garrafal);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: #FFFFFF;
  margin: 4px 0;
}

/* INDÚSTRIA — fonte maior para destaque na linha intermediária */
.intro-highlight-blue {
  color: #0B72FF;
  font-size: 1.45em;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 0 16px rgba(11, 114, 255, 0.8), 0 0 28px rgba(11, 114, 255, 0.4);
  animation: shimmer-blue-glow 3.7s infinite ease-in-out 0.4s;
}

@media (max-width: 1023px) {
  .intro-line-1 {
    font-size: 1.1rem;
    letter-spacing: 4px;
  }
  .intro-line-2,
  .intro-line-4 {
    font-size: 3.2rem;
    letter-spacing: 2px;
  }
  .intro-line-3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
}
  .intro-logo {
    transform: scale(1.25);
  }
}

/* Modal Responsivo Tela Cheia no Mobile */
@media (max-width: 1023px) {
  .modal-overlay {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    padding: 0;
  }

  .modal-content {
    border-radius: 0;
    border: none;
    height: 100%;
    max-height: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
    background: transparent !important;
  }

  .video-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  .robot-video-simulation {
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    padding: 30px 20px 24px 20px;
    background-size: cover;
  }

  .robot-speech {
    font-size: 0.82rem;
    line-height: 1.45;
    width: 95%;
    max-height: none;
    overflow-y: visible;
  }
  
}

/* Video Loader Overlay */
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050814;
  display: flex;
  font-family: var(--font-garrafal);
  font-size: 70vh;
  line-height: 1;
  color: var(--accent-cyan);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform, opacity;
}

.intro-bg-number.pulse-number {
  animation: number-trigger 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes number-trigger {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.15;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.035;
  }
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
  animation: intro-zoom 3s linear forwards;
}

@keyframes intro-zoom {
  0% {
    transform: scale(0.96); /* Zoom inicial muito mais sutil */
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: scale(1.04); /* Zoom final reduzido de 1.18 para 1.04 (muito mais sutil) */
    opacity: 0;
  }
}

.intro-line-wrapper {
  opacity: 0;
  transform: translateY(12px);
  animation: intro-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes intro-fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Frase Tipográfica Impactante na Tela de Carregamento */
.intro-phrase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.intro-line-1 {
  font-family: var(--font-garrafal);
  font-size: 1.3rem;
  letter-spacing: 6px;
  color: #8E9BAE;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Retornada a fonte original garrafal */
.intro-line-2,
.intro-line-4 {
  font-family: var(--font-garrafal);
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 35px rgba(0, 229, 255, 0.3);
  animation: shimmer-cyan-glow 3.2s infinite ease-in-out;
}

.intro-line-3 {
  font-family: var(--font-garrafal);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: #FFFFFF;
  margin: 4px 0;
}

/* INDÚSTRIA — fonte maior para destaque na linha intermediária */
.intro-highlight-blue {
  color: #0B72FF;
  font-size: 1.45em;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 0 16px rgba(11, 114, 255, 0.8), 0 0 28px rgba(11, 114, 255, 0.4);
  animation: shimmer-blue-glow 3.7s infinite ease-in-out 0.4s;
}

@media (max-width: 1023px) {
  .intro-line-1 {
    font-size: 1.1rem;
    letter-spacing: 4px;
  }
  .intro-line-2,
  .intro-line-4 {
    font-size: 3.2rem;
    letter-spacing: 2px;
  }
  .intro-line-3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  .intro-logo {
    transform: scale(1.25);
  }
}

/* Modal Responsivo Tela Cheia no Mobile */
@media (max-width: 1023px) {
  .modal-overlay {
    padding: 0;
  }

  .modal-content {
    border-radius: 0;
    border: none;
    height: 100%;
    max-height: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
    background: transparent !important;
  }

  .video-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin: 0;
  }

  .robot-video-simulation {
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    padding: 30px 20px 24px 20px;
    background-size: cover;
  }

  .robot-speech {
    font-size: 0.82rem;
    line-height: 1.45;
    width: 95%;
    max-height: none;
    overflow-y: visible;
  }
  
}

/* Video Loader Overlay */
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050814;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-overlay:not(.hidden) {
  display: flex !important;
}

.loader-word {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  font-family: 'Black Ops One', sans-serif; /* Fonte igual à do logo */
  font-size: 5rem; /* Reduzido de 7rem para 5rem */
  letter-spacing: 6px; /* Reduzido proporcionalmente */
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.loader-word.fade-in {
  opacity: 1;
  transform: scale(1);
}

.loader-word.fade-out {
  opacity: 0;
  transform: scale(1.05);
}

@media (max-width: 1023px) {
  .loader-word {
    font-size: 2.6rem; /* Reduzido de 3.2rem para 2.6rem */
    letter-spacing: 3px;
  }
}

