/* =========================================================================
   Gnesis8 — estilos do site
   ========================================================================= */

:root {
  --bg-0: #ffffff;
  --bg-1: #f4f6f8;
  --accent: #03dfd6;
  --accent-2: #009cf9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-0);
  color: #0a0d14;
  font-family: "Cabin", -apple-system, "Segoe UI", Roboto, sans-serif;
  /* clip (não hidden): recorta o transbordo horizontal sem criar container de
     scroll — evita que o body fique mais estreito que a viewport e deixe a
     aurora vazar numa faixa na borda direita. */
  overflow-x: clip;
}

/* -------------------------------------------------------------------------
   LOGIN (link minimalista, canto superior direito)
   ------------------------------------------------------------------------- */
.login-link {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 50;
  font-family: inherit;          /* Cabin, herdada do body */
  font-size: 1rem;
  font-weight: 500;
  color: #334155;                /* cinza escuro (não chega a preto) */
  text-decoration: underline;    /* sublinhado -> indica que é clicável */
  text-underline-offset: 4px;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
}
.login-link:hover,
.login-link:focus-visible {
  opacity: 0.6;
}

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(0,102,255,0.05), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Fundo Aurora (WebGL) — fica atrás de tudo */
#bgParticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   LOGO
   ------------------------------------------------------------------------- */
.logo-wrap {
  position: relative;
  z-index: 2;
  width: min(81vw, 810px);
  filter: drop-shadow(0 0 40px rgba(3,223,214,0.15));
}

.logo-wrap svg { width: 100%; height: auto; display: block; }

/* A animação é aplicada nos wrappers <g class="anim"> injetados via JS,
   para preservar as matrizes de transform originais dos grupos internos. */
.logo-wrap svg g.anim {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: appear 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Letras G E N E S I S — da esquerda para a direita, sobem + fade */
.logo-wrap svg g.anim:nth-child(6)  { animation-name: slideUp; animation-delay: 0.1s; }
.logo-wrap svg g.anim:nth-child(5)  { animation-name: slideUp; animation-delay: 0.25s; }
.logo-wrap svg g.anim:nth-child(2)  { animation-name: slideUp; animation-delay: 0.4s; }
.logo-wrap svg g.anim:nth-child(20) { animation-name: slideUp; animation-delay: 0.55s; }
.logo-wrap svg g.anim:nth-child(21) { animation-name: slideUp; animation-delay: 0.7s; }
.logo-wrap svg g.anim:nth-child(1)  { animation-name: slideUp; animation-delay: 0.85s; }
.logo-wrap svg g.anim:nth-child(3)  { animation-name: slideUp; animation-delay: 1.0s; }
.logo-wrap svg g.anim:nth-child(4)  { animation-name: slideUp; animation-delay: 1.15s; }

/* Símbolo (espirais) — de dentro para fora, escala */
.logo-wrap svg g.anim:nth-child(7)  { animation-name: zoomIn; animation-delay: 1.4s; }
.logo-wrap svg g.anim:nth-child(8)  { animation-name: zoomIn; animation-delay: 1.55s; }
.logo-wrap svg g.anim:nth-child(9)  { animation-name: zoomIn; animation-delay: 1.7s; }
.logo-wrap svg g.anim:nth-child(10) { animation-name: zoomIn; animation-delay: 1.85s; }
.logo-wrap svg g.anim:nth-child(11) { animation-name: zoomIn; animation-delay: 2.0s; }

/* Pequenos detalhes/traços ao redor do símbolo */
.logo-wrap svg g.anim:nth-child(12) { animation-name: appear; animation-delay: 2.15s; }
.logo-wrap svg g.anim:nth-child(13) { animation-name: appear; animation-delay: 2.2s; }
.logo-wrap svg g.anim:nth-child(14) { animation-name: appear; animation-delay: 2.25s; }
.logo-wrap svg g.anim:nth-child(15) { animation-name: appear; animation-delay: 2.3s; }
.logo-wrap svg g.anim:nth-child(16) { animation-name: appear; animation-delay: 2.35s; }
.logo-wrap svg g.anim:nth-child(17) { animation-name: appear; animation-delay: 2.4s; }
.logo-wrap svg g.anim:nth-child(18) { animation-name: appear; animation-delay: 2.45s; }
.logo-wrap svg g.anim:nth-child(19) { animation-name: appear; animation-delay: 2.5s; }
.logo-wrap svg g.anim:nth-child(22) { animation-name: appear; animation-delay: 2.55s; }
.logo-wrap svg g.anim:nth-child(23) { animation-name: appear; animation-delay: 2.6s; }

@keyframes slideUp {
  0%   { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes zoomIn {
  0%   { opacity: 0; transform: scale(0.3) rotate(-45deg); filter: blur(6px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}

@keyframes appear {
  0%   { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------------------------
   TAGLINE  ("Soluções em Tecnologia Empresarial")
   ------------------------------------------------------------------------- */
.tagline {
  position: relative;
  z-index: 2;
  width: min(81vw, 810px); /* mesma largura do logo */

  /* ╔═══════════════════════════════════════════════════════════════════╗
     ║  >>> MARGEM ENTRE O "GNESIS" E A TAGLINE — AJUSTE AQUI <<<        ║
     ║  Valor negativo = tagline mais PERTO/PRA CIMA do logo.            ║
     ║  Escala com a largura da tela (vw) — clamp impede que ultrapasse  ║
     ║  os limites desktop / mobile.                                     ║
     ╚═══════════════════════════════════════════════════════════════════╝ */
  margin-top: clamp(-2.7rem, -4.5vw, -0.9rem);  /* <<< AJUSTE: 1º = desktop, 3º = mobile */

  text-align: left;       /* começa na borda esquerda, alinhado com o "G" */
  opacity: 0;
  animation: fadeUp 1s ease-out 2.8s forwards;
}

.tagline h1 {
  display: inline-block;   /* encolhe à largura do texto p/ poder casar com o wordmark */
  white-space: nowrap;     /* mantém em uma única linha */
  font-size: clamp(0.95rem, 1.9vw, 1.55rem); /* tamanho-base; o JS ajusta p/ casar com "GNESIS" */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #8a8d94;
  letter-spacing: 0.1em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   MOBILE  —  telas com largura máxima de 380px
   ========================================================================= */
@media (max-width: 380px) {

  /* Logo + tagline: usam vw, então já escalam; só ajustamos detalhes finos */
  .logo-wrap {
    width: 88vw; /* aproveita um pouco mais a tela estreita */
  }
  .tagline {
    width: 88vw;
  }
  .tagline h1 {
    letter-spacing: 0.12em; /* tipografia mais respirada no mobile */
  }
}

/* =========================================================================
   SCROLL INDICATOR (HERO)
   ========================================================================= */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

.scroll-indicator.visible {
  opacity: 0.6;
  pointer-events: auto;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 40px;
  border: 2px solid #64748b;
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: #64748b;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.8s ease-in-out infinite;
}

.scroll-indicator .scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #64748b;
  font-weight: 500;
}

@keyframes scrollMouse {
  0% { transform: translate(-50%, 0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* =========================================================================
   COMMON SECTIONS & CONTAINER
   ========================================================================= */
section {
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0d14;
  margin-bottom: 0.4rem;
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #64748b;
  font-weight: 400;
}

/* =========================================================================
   SEÇÃO SOLUÇÕES
   ========================================================================= */
.solucoes {
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.solucoes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 6rem;
}

.solucao-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 3rem 2.2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.solucao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solucao-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 156, 249, 0.06),
              0 0 40px rgba(3, 223, 214, 0.04);
  border-color: rgba(3, 223, 214, 0.3);
}

.solucao-card:hover::before {
  opacity: 1;
}

.solucao-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0a0d14;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.solucao-card p {
  font-size: 0.95rem;
  color: #57657a;
  line-height: 1.65;
}

.ai-highlight {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 156, 249, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.02),
              inset 0 0 30px rgba(0, 156, 249, 0.02);
  position: relative;
  overflow: hidden;
}

.ai-highlight::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(3, 223, 214, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ai-highlight::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 156, 249, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ai-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 156, 249, 0.2);
}

.ai-highlight p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  max-width: 920px;
  margin: 0 auto;
}

/* =========================================================================
   SEÇÃO PLATAFORMAS (SLIDER)
   ========================================================================= */
/* Registra --platform-accent como <color> para poder INTERPOLAR (transicionar)
   suavemente a cor do glow quando muda de slide. */
@property --platform-accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #009cf9;
}
.plataformas {
  /* Fundo opaco (sem backdrop-filter): a aurora já pausa aqui, então o blur só
     custava GPU sem aparecer. Remover evita o empilhamento de blurs com as slides. */
  background: #f4f6f8;
  position: relative;
  z-index: 1;
  --platform-accent: #009cf9;
  /* Morph suave da cor do glow ao trocar de slide (a cor é setada via JS). */
  transition: --platform-accent 0.8s ease;
  overflow: visible; /* Permite que os brilhos ultrapassem os limites da seção */
  padding-bottom: 4rem;
}

/* Brilhos de fundo adaptativos */
.platform-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  /* Glow via radial-gradient em vez de filter:blur — mesmo efeito difuso, sem o
     custo de rasterizar um blur de 140px (que travava na troca de slide). */
  background: radial-gradient(circle, var(--platform-accent) 0%, transparent 68%);
  opacity: 0.4;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

.glow-2 {
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  /* cor vem do radial-gradient em .platform-glow (via --platform-accent) */
}

.plataformas .section-header {
  margin-bottom: 1rem;
}

.plataformas .section-header h2 {
  color: #0a0d14;
}

.plataformas .section-header .section-lead {
  color: #64748b;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 0;
  z-index: 1;
}

.slides-wrapper {
  position: relative;
  height: 440px;
  overflow: hidden;
  border-radius: 24px;
  width: 100%;
}

.slides-track {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: grab;
}

.slides-track:active {
  cursor: grabbing;
}

.slide {
  flex: 0 0 640px;
  width: 640px;
  height: 100%;
  opacity: 0.5;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
  height: 100%;
  /* Efeito glass: fundo translúcido + blur do que está atrás (o glow azul).
     Leveza vem de a SEÇÃO ser opaca (sem blur aninhado) e do overflow:hidden
     do wrapper, que faz só os cards visíveis serem rasterizados. */
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2.5rem 3rem;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.slide-text {
  width: 100%;
}

.slide-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.03));
  margin-bottom: 0.25rem;
}

.slide-logo[src*="usforce"] {
  height: 40px;
}

.slide-text h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0a0d14;
  margin-bottom: 1rem;
}

.slide-text p {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.6;
}

/* Sub-plataformas e Verticais */
.slide-subplatforms {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
}

.subplatform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
}

.subplatform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.subplatform-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.subplatform-logo {
  height: 20px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.subplatform-desc {
  color: #57657a;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #0a0d14;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.slider-btn:hover {
  background: var(--platform-accent);
  border-color: var(--platform-accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.prev-btn {
  left: -70px;
}

.next-btn {
  right: -70px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s ease;
}

.dot.active {
  background: var(--platform-accent);
  transform: scale(1.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   SEÇÃO CONTATO
   ========================================================================= */
.contato {
  background: rgba(244, 246, 248, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.contato-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.contato-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0d14;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contato-info p {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contato-detalhes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detalhe-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: #334155;
  font-weight: 500;
}

.detalhe-icon {
  font-size: 1.5rem;
}

/* Form */
.contato-form-container {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: #0a0d14;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-group label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Floating labels */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -1.25rem;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-2);
}

.submit-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 156, 249, 0.15);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 156, 249, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
  background: #0a0d14;
  padding: 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 0.72rem;
  color: #64748b;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* =========================================================================
   SEÇÃO EMPRESAS PARCEIRAS (QUEM JÁ USA)
   ========================================================================= */
.empresas-clientes {
  background: rgba(244, 246, 248, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 6rem;
  padding-left: 0;
  padding-right: 0;
}

.empresas-clientes .container {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Quem já usa */
.quem-usa {
  text-align: center;
  margin-top: 0;
  position: relative;
}

.quem-usa h3 {
  /* Mesmo tamanho do título "Nossas Plataformas" (.section-header h2) p/ padronizar. */
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0a0d14;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

/* Ticker de logotipos */
.ticker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

/* Blur effects on the sides for premium fade-out */
.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(244, 246, 248, 0.95), transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(244, 246, 248, 0.95), transparent);
}

.ticker-row {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
}

.client-logo {
  /* Slot de largura FIXA: a faixa já tem a largura correta antes das imagens
     carregarem, evitando o reflow que desalinhava o loop e fazia a 3ª linha
     "sumir" até tudo carregar. object-fit: contain mantém cada logo proporcional. */
  width: 96px;
  height: 35px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: grayscale(100%) invert(0.45);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.client-logo:hover {
  filter: grayscale(0%) invert(0);
  opacity: 1;
  transform: scale(1.05);
}

/* Animations */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.ticker-left {
  animation: scroll-left 38s linear infinite;
}

.ticker-right {
  animation: scroll-right 44s linear infinite;
}

/* Pause scroll on hover */
.ticker-row:hover .ticker-track {
  animation-play-state: paused;
}

/* =========================================================================
   RESPONSIVO E ADAPTAÇÕES ADICIONAIS
   ========================================================================= */
@media (max-width: 1024px) {
  .prev-btn { left: -10px; }
  .next-btn { right: -10px; }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none !important;
  }

  .ai-highlight {
    padding: 2.5rem 1.5rem;
  }

  .ai-highlight p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .solucoes {
    background: rgba(244, 246, 248, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  section {
    padding: 5rem 1.5rem;
  }
  
  .solucoes-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .solucao-card {
    width: 100%;
    max-width: 360px;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  
  .slider-container {
    padding: 1rem 0;
  }
  
  .slides-wrapper {
    height: 580px;
    overflow: hidden;
  }
  
  .slide {
    flex: 0 0 85vw;
    width: 85vw;
    height: 100%;
    padding: 1rem 0.5rem;
    opacity: 0.5;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .slide.active {
    opacity: 1;
    transform: scale(1);
    display: flex;
  }
  
  .slide-content {
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .subplatform-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .slide-text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .subplatform-item {
    font-size: 0.78rem;
  }

  .subplatform-title {
    font-size: 0.78rem;
  }

  .subplatform-logo {
    height: 17px;
  }
  
  .plataformas .section-header .section-lead {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .slider-dots {
    margin-top: 2rem;
  }

  .slider-btn {
    display: none !important;
  }
  
  .contato-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contato-info {
    text-align: center;
  }
  
  .contato-detalhes {
    align-items: center;
  }
  
  .contato-form-container {
    padding: 2rem;
  }
  /* Título do contato com o mesmo tamanho do título da seção de logos. */
  .contato-info h2 {
    font-size: 1.3rem;
  }

  /* Sobe um pouco o logo+tagline (compensa a barra de endereço do mobile,
     que deixava o conteúdo abaixo do centro vertical). */
  .hero {
    padding-bottom: 20vh;
  }

  /* Empresas adaptações mobile */
  .quem-usa {
    margin-top: 0;
  }
  .quem-usa h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }
  .client-logo {
    width: 70px;
    height: 26px;
    /* Mobile: tira o filtro de cada logo (eram 90 filtros) — fica 1 por faixa. */
    filter: none;
  }
  /* Filtro aplicado uma vez por faixa, não por logo → muito mais leve na GPU
     e evita estourar o orçamento de camadas (que fazia a 3ª faixa sumir). */
  .ticker-track {
    gap: 1.1rem;
    filter: grayscale(100%) invert(0.45);
  }
  /* Reduz o espaço entre a seção dos logos e a de contato no mobile. */
  .empresas-clientes {
    padding-bottom: 1.5rem;
  }
  .ticker-wrapper {
    padding: 1rem 0;
  }
  .contato {
    padding-top: 2.5rem;
  }
  .ticker-wrapper::before,
  .ticker-wrapper::after {
    width: 60px;
  }
  .empresas-clientes .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

