/* =============================================
   VARIÁVEIS GLOBAIS
   ============================================= */
:root {
  --cor-preta: #0a0a0a;
  --cor-branca: #ffffff;
  --cor-azul: #487ffa;
  --cor-azul-hover: #306be8;

  --fonte-titulo: 'Inter', sans-serif;
  --fonte-corpo: 'DM Sans', sans-serif;

  --navbar-altura: 68px;
  --navbar-padding: 0 2.5rem;
  --transicao: 0.3s ease;
}

/* SCROLL SUAVE DE ÂNCORAS */
html {
  scroll-behavior: smooth;
}

/* =============================================
   RESET BÁSICO
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--cor-preta);
  font-family: var(--fonte-corpo);
  color: var(--cor-branca);
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   VÍDEO DE FUNDO GLOBAL
   ============================================= */
.video-bg-global {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.video-bg-global video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.685); /* 0.5 = 50% de opacidade, ajuste entre 0 e 1 */
    z-index: 1;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: relative;               
  left: 0;
  width: 100%;
  height: var(--navbar-altura);
  z-index: 1000;                 /* Fica na frente de tudo */

  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(72, 127, 250, 0.15);

  transition:
    background-color var(--transicao),
    border-color var(--transicao),
    backdrop-filter var(--transicao);
}

/* Container interno: centraliza e limita largura */
.navbar__container {
  max-width: 1280px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: var(--navbar-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* =============================================
   LOGO
   ============================================= */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-left: 0;
}

.logo__nexa {
  color: var(--cor-branca);
}

.logo__a {
  color: var(--cor-azul);
}

/* Imagem da logo */
.logo__img {
  height: 72px;        
  width: auto;         
  display: block;
  object-fit: contain;
}

/* Fallback texto */
.logo__text {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* =============================================
   LINKS DE NAVEGAÇÃO
   ============================================= */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto; /* Empurra os links para a direita */
}

.navbar__link {
  font-family: var(--fonte-corpo);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
  position: relative;

  transition: color var(--transicao);
}

/* Sublinhado animado no hover */
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--cor-azul);
  transition: width var(--transicao);
}

.navbar__link:hover {
  color: var(--cor-branca);
}

.navbar__link:hover::after {
  width: 100%;
}

/* =============================================
   BOTÕES DE AÇÃO
   ============================================= */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Estilo base dos botões */
.btn {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color var(--transicao),
    color var(--transicao),
    border-color var(--transicao),
    transform var(--transicao);
}

.btn:active {
  transform: scale(0.97);
}

/* Log In: borda + texto branco, sem fundo */
.btn--outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--cor-branca);
}

.btn--outline:hover {
  border-color: var(--cor-branca);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Cadastro: fundo azul sólido */
.btn--primary {
  background-color: var(--cor-azul);
  border: 1px solid var(--cor-azul);
  color: var(--cor-branca);
}

.btn--primary:hover {
  background-color: var(--cor-azul-hover);
  border-color: var(--cor-azul-hover);
}

/* =============================================
   HAMBURGUER (só aparece no mobile)
   ============================================= */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--cor-branca);
  border-radius: 2px;
  transition:
    transform var(--transicao),
    opacity var(--transicao);
}

/* Animação do X quando o menu abre */
.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Botões dentro do menu mobile (oculto no desktop) */
.navbar__actions--mobile {
  display: none;
}

/* =============================================
   RESPONSIVIDADE - NAVBAR (tablet / mobile)
   ============================================= */
@media (min-width: 1024px) {
  .navbar__container {
    padding: 0.1rem;
  }
}

@media (max-width: 768px) {
 
  .navbar__hamburger {
    display: flex; /* Mostra o hamburguer */
  }
 
  .navbar__actions {
    display: none; /* Esconde botões no mobile */
  }
 
  /* Menu mobile: desce de cima quando aberto */
  .navbar__nav {
    position: absolute;
    top: var(--navbar-altura);
    left: 0;
    width: 100%;
 
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
 
    background-color: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(72, 127, 250, 0.15);
 
    /* Animação de entrada */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding var(--transicao);
  }
 
  .navbar__nav.open {
    max-height: 420px;
    padding: 1rem 0 1.5rem;
  }
 
  .navbar__link {
    width: 100%;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
  }
 
  .navbar__link::after {
    display: none;
  }
 
  /* Logo menor no mobile */
  .logo__img {
    height: 62px; 
  }
 
  /* Mostra os botões dentro do menu mobile */
  .navbar__actions--mobile {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem 2.5rem 0.25rem;
    width: 100%;
  }
 
  .navbar__actions--mobile .btn {
    flex: 1;
    text-align: center;
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--cor-preta); /* fallback se o vídeo não carregar */
}
 
/* --- Polígono branco --- */
.hero__polygon {
  position: absolute;
  inset: 0;
  z-index: 1;            /* na frente do vídeo */
  background-color: #ffffff;
  clip-path: polygon(
    0% 0%,
    68% 0%,
    52% 42%,
    62% 100%,
    0% 100%
  );
}
 
/* =============================================
   HERO — MOBILE
   ============================================= */
@media (max-width: 768px) {
 
  /* Polígono cobre a tela inteira — sem corte diagonal */
  .hero__polygon {
    clip-path: none;
  }
 
  /* Vídeo some no mobile (fundo fica só branco via polígono) */
  .hero__video-bg {
    display: none;
  }
}

/* =============================================
   HERO — CONTEÚDO
   ============================================= */
 
/* Container que centraliza o conteúdo dentro do polígono */
.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;            /* mesmo valor do polígono no clip-path */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 5% 3rem 5%;
  gap: 1.5rem;

  img {
    width: 120%;
    height: 20rem; /* ajuste esse valor até bater com o tamanho que você quer */
    object-fit: cover; /* evita distorcer a imagem ao forçar uma altura fixa */
    margin-left: -5rem;
  }
}
 
/* --- Logo hero --- */
.hero__logo {
  display: inline-flex;
  align-items: center;
}
 
.hero__logo-img {
  height: clamp(180px, 20vw, 210px);
  width: auto;
  object-fit: contain;
  margin-left: 30px;
  margin-bottom: -50px;
}
 

.hero__logo-text {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 3rem;
  color: var(--cor-preta);
}
 
/* --- Tags --- */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
 
.hero__tag {
  font-family: var(--fonte-corpo);
  font-size: clamp(0.4rem, 0.8vw, 0.65rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cor-azul-hover);
  border: 1px solid var(--cor-azul);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
}
 
/* --- Título --- */
.hero__title {
  font-family: var(--fonte-titulo);
  font-size: clamp(2rem, 3vw, 3.5rem); /* cresce com a tela, mas tem limites */
  font-weight: 800;
  line-height: 1.1;
  color: var(--cor-preta);
  letter-spacing: -0.02em;
  margin-bottom: -10px;
}
 
.hero__title-destaque {
  color: var(--cor-azul);
}
 
/* --- Subtítulo --- */
.hero__subtitle {
  font-family: var(--fonte-corpo);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  color: #444;
  max-width: clamp(280px, 38vw, 480px);
}
 
/* =============================================
   HERO CONTEÚDO — MOBILE
   ============================================= */
@media (max-width: 768px) {
 
  /* No mobile o polígono cobre tudo, então o conteúdo ocupa 100% */
  .hero__content {
    margin-top: -100px;
    width: 100%;            /* mesmo valor do polígono no clip-path */
    padding: 2rem 5% 3rem 5%;
    align-items: center;

    img {
      width: 100%;
      height: 20rem; /* ajuste esse valor até bater com o tamanho que você quer */
      object-fit: contain; /* evita distorcer a imagem ao forçar uma altura fixa */
      margin-left: 0;
    }
  }
 
  .hero__logo-img {
    height: clamp(200px, 30vw, 300px);
  }
 
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    max-width: 80%;
  }
}
 
 
/* =============================================
   RESPONSIVIDADE — 4K (2560px+)
   ============================================= */
@media (min-width: 2560px) {
 
  .navbar__container {
    max-width: 2000px;
  }
 
  .logo__img {
    height: 90px;
  }
 
  .navbar__link {
    font-size: 1.7rem;
  }
 
  .btn {
    font-size: 1.5rem;
    padding: 0.7rem 1.75rem;
  }
 
  .hero__content {
    width: 60%;
    padding-left: 6%;
  }
 
  .hero__logo-img {
    height: clamp(660px, 24vw, 720px);
    margin-left: -150px;
    margin-top: -180px;
    margin-bottom: -150px;
  }
 
  .hero__tag {
    font-size: 1.5rem;
    padding: 0.4rem 1rem;
  }
  
  .hero__title {
    font-family: var(--fonte-titulo);
    font-size: clamp(2rem, 4vw, 6rem); /* cresce com a tela, mas tem limites */
    font-weight: 800;
    line-height: 1.1;
    color: var(--cor-preta);
    letter-spacing: -0.02em;
  }

  .hero__subtitle {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    max-width: clamp(600px, 50vw, 800px);
    line-height: 1.6;
  }

}
 
/* =============================================
   RESPONSIVIDADE — Mobile L (425px)
   ============================================= */
@media (max-width: 425px) {
 
  :root {
    --navbar-altura: 60px;
    --navbar-padding: 0 1.25rem;
  }
 
  .hero__content {
    padding: calc(var(--navbar-altura) + 1.5rem) 1.25rem 2rem;
    gap: 1rem;
    align-items: center;
  }
 
  .hero__logo-img {
    height: clamp(150px, 32vw, 200px);
    margin-bottom: -42px;
    margin-left: 5px
  }
 
  .hero__tags {
    justify-content: center;
  }
 
  .hero__tag {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
  }
 
  .hero__title {
    font-size: 1.85rem;
  }
 
  .hero__subtitle {
    font-size: 0.875rem;
    max-width: 100%;
  }
}
 
/* =============================================
   RESPONSIVIDADE — Mobile M (375px)
   ============================================= */
@media (max-width: 375px) {
  .hero__logo-img {
    height: clamp(80px, 34vw, 120px);
    margin-bottom:-30px;
  }
 
  .hero__title {
    font-size: 1.65rem;
  }
 
  .hero__tag {
    font-size: 0.55rem;
  }
 
  .navbar__actions--mobile .btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }
}
 
/* =============================================
   RESPONSIVIDADE — Mobile S (320px)
   ============================================= */
@media (max-width: 320px) {
 
  :root {
    --navbar-altura: 56px;
  }
 
  .hero__logo-img {
    height: clamp(120px, 32vw, 300px);
    margin-top: -150px;
    margin-bottom: -100px;
  }
 
  .hero__title {
    font-size: 1.4rem;
  }
 
  .hero__subtitle {
    font-size: 0.8rem;
  }
 
  .hero__tags {
    gap: 0.35rem;
  }
 
  .hero__tag {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
  }
 
  .navbar__actions--mobile {
    flex-direction: column;
  }
}

/* =============================================
   SERVIÇOS
   ============================================= */
.servicos {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: black;
  margin-top: -1px;
}

/* Polígono branco (7 vértices) */
.servicos__polygon {
  position: relative;
  display:flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  clip-path: polygon(
    0% 0%,
    62% 0%,
    100% 32%,
    100% 100%,
    90% 90%,
    10% 90%,
    0% 100%
  );
}

/* =============================================
   SERVIÇOS — CONTEÚDO
   ============================================= */

.servicos__header {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.servicos__titulo {
  font-family: Syne;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--cor-azul);
  letter-spacing: -0.02em;
  margin-top: 80px;
  /* margin-bottom: -40px; */
}

.servicos__titulo-destaque {
  color: var(--cor-azul);
}

/* Grid de cards */
.servicos__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  /* padding: 4rem; */
  max-width: 1280px;
  margin: 3rem auto 0;
}

/* Card base */
.servicos__card {
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--cor-branca);
  min-height: 280px;
}

.servicos__card--1 { background-color: #0a0a0a; }
.servicos__card--2 { background-color: #1a2f6e; }
.servicos__card--3 { background-color: #2d5ac7; }
.servicos__card--4 { background-color: #487ffa; }

/* Ícone — quadrado com borda azul */
.servicos__card-icone {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--cor-branca);
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicos__card-icone svg {
  width: 22px;
  height: 22px;
  stroke: var(--cor-branca);
  stroke-width: 1.75;
}

/* Body do card */
.servicos__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Título */
.servicos__card-titulo {
  font-family: var(--fonte-titulo);
  font-size: 4rem;
  font-weight: 600;
  color: var(--cor-branca);
}

/* Linha separadora */
.servicos__card-linha {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* Descrição */
.servicos__card-desc {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.85;
}

/* Botão branco */
.servicos__card-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background-color: var(--cor-branca);
  color: var(--cor-azul);
  border-radius: 8px;
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: opacity var(--transicao);
}

.servicos__card-btn:hover {
  transform: translateY(-2px);
  transition: opacity 0.4s, transform 0.3s;
}

/* =============================================
   SERVIÇOS — RESPONSIVIDADE
   ============================================= */

/* 4K (2560px+) */
@media (min-width: 2560px) {
  .servicos__titulo {
    font-size: 6rem;
    margin-top: 200px;
  }

  .servicos__cards {
    max-width: 2000px;
    gap: 2rem;
    padding: 0 6rem 8rem;
    margin: 5rem auto 0;
  }

  .servicos__card {
    min-height: 480px;
    padding: 2.5rem 2rem;
    border-radius: 16px;
  }

  .servicos__card-icone {
    width: 82px;
    height: 82px;
  }

  .servicos__card-icone svg {
    width: 46px;
    height: 46px;
  }

  .servicos__card-titulo {
    font-size: 1.8rem;
  }

  .servicos__card-desc {
    font-size: 1.6rem;
    line-height: 1.6;
  }

  .servicos__card-btn {
    font-size: 1.6rem;
    padding: 1rem 1.5rem;
  }
}

/* Laptop (1024px) */
@media (max-width: 1024px) {
  .servicos__cards {
    padding: 0 2rem 5rem;
    gap: 1rem;
  }

  .servicos__card {
    min-height: 100px;
    padding: 1.5rem 1.25rem;
    max-width: 460px;
  }

  .servicos__card-icone {
    width: 40px;
    height: 40px;
  }

  .servicos__card-icone svg {
    width: 18px;
    height: 18px;
  }

  .servicos__card-titulo {
    font-size: 0.9rem;
  }

  .servicos__card-desc {
    font-size: 0.8rem;
  }

  .servicos__card-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Tablet (768px) — grade 2x2 */
@media (max-width: 768px) {
  .servicos__polygon {
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% 100%,
      90% 95%,
      10% 95%,
      0% 100%
    );
  }

  .servicos__header {
    padding: 4rem 2rem 2rem;
  }

  .servicos__titulo {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: -100px;
    margin-top: -20px;
  }

  .servicos__cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 2rem 5rem;
    margin: 2rem auto 0;
    max-width: 560px;
  }

  .servicos__card {
    min-height: 240px;
  }
}

/* Mobile L (425px) — 1 por linha */
@media (max-width: 425px) {
  .servicos__titulo {
    font-size: 1.6rem;
    margin-top: -30px;
    margin-bottom: -150px;
  }

  .servicos__header {
    padding: 3rem 1.5rem 1.5rem;
  }

  .servicos__cards {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 4rem;
    margin: 1.5rem auto 0;
    max-width: 285px;
  }

  .servicos__card {
    min-height: unset;
  }
}

/* Mobile M (375px) */
@media (max-width: 375px) {
  .servicos__polygon {
    padding-bottom: 3rem;
  }

  .servicos__cards {
    padding: 0 1rem 3.2rem;

  }

  .servicos__card-titulo {
    font-size: 0.95rem;
  }

  .servicos__card-desc {
    font-size: 0.6rem;
  }

  .servicos__card-btn {
    font-size: 0.8rem;
  }
}

/* Mobile S (320px) */
@media (max-width: 320px) {
  .servicos__polygon {
    min-height: 100%;
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% 100%,
      90% 90%,
      10% 90%,
      100% 0%,
    );
    padding-bottom: 3rem;
  }

  .servicos__titulo {
    font-size: 1.4rem;
  }

  .servicos__cards {
    padding: 0 0.75rem 3rem;
    gap: 0.75rem;
    max-width: 250px;
    margin-top: -10px;
  }

  .servicos__card {
    padding: 1.25rem 1rem;
  }

  .servicos__card-icone {
    width: 30px;
    height: 30px;
  }

  .servicos__card-icone svg {
    width: 16px;
    height: 16px;
  }
}
 
/* =============================================
   DEMOS DE SISTEMAS
   ============================================= */

.demos {
  position: relative;
  width: 100%;
  padding: 6rem 4rem 4rem;
  z-index: 1;
  background-color: black;
}

/* =============================================
   TÍTULO DA SEÇÃO DEMO DE SISTEMAS
   ============================================= */

.demos__header {
  margin-bottom: 2.5rem;
}

.demos__titulo {
  font-family: Syne;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--cor-branca);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Linha de destaque em azul (segunda linha do título) */
.demos__titulo-destaque {
  color: var(--cor-azul);
}

/* =============================================
   ABAS DE FILTRO
   ============================================= */
.demos__filtros {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  /* Linha separadora abaixo das abas */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0;
}

.demos__filtro-btn {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem 1rem;
  /* Posicionamento relativo para a borda inferior animada */
  position: relative;
  bottom: -1px; /* "Senta" em cima da borda do container */
  border-bottom: 2px solid transparent;
  transition: color var(--transicao), border-color var(--transicao);
}

.demos__filtro-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Estado ativo: texto branco + borda azul embaixo */
.demos__filtro-btn--ativo {
  color: var(--cor-branca);
  font-weight: 500;
  border-bottom-color: var(--cor-azul);
}

/* =============================================
   CORPO PRINCIPAL: PLAYER + LISTA
   ============================================= */

.demos__corpo {
  display: grid;
  /* Player ocupa ~60% da largura, lista ~40% */
  grid-template-columns: 1fr 0.65fr;
  gap: 1.5rem;
  align-items: start;
}

/* =============================================
   PLAYER PRINCIPAL (coluna esquerda)
   ============================================= */

.demos__player-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Container da mídia (vídeo ou imagem) */
.demos__player-midia {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Vídeo dentro do player: ocupa todo o espaço */
.demos__player-midia video,
.demos__player-midia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----  PLACEHOLDER (quando não há mídia disponível) ----- */
.demos__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #111;
}

.demos__placeholder-icone {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(72, 127, 250, 0.1);
  border: 1px solid rgba(72, 127, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demos__placeholder-icone svg {
  width: 28px;
  height: 28px;
  stroke: var(--cor-azul);
  stroke-width: 1.5;
}

.demos__placeholder-texto {
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* -----  OVERLAY DE PLAY (aparece em cima da imagem/vídeo parado) ----- */
.demos__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background-color var(--transicao);
}

.demos__play-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.demos__play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(72, 127, 250, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transicao), background-color var(--transicao);
}

.demos__play-overlay:hover .demos__play-btn {
  transform: scale(1.1);
  background-color: var(--cor-azul);
}

.demos__play-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--cor-branca);
  stroke-width: 2;
  /* O ícone de play do Lucide fica levemente deslocado visualmente;
     este pequeno ajuste o centraliza melhor no círculo */
  margin-left: 3px;
}

/* ----- INFORMAÇÕES ABAIXO DO PLAYER ----- */

.demos__player-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Tag de categoria (ex: "GESTÃO", "AUTOMAÇÃO") */
.demos__player-tag {
  display: inline-block;
  font-family: var(--fonte-corpo);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cor-azul);
  background-color: rgba(72, 127, 250, 0.12);
  border: 1px solid rgba(72, 127, 250, 0.3);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  /* Garante que a tag não ocupe a linha toda */
  width: fit-content;
}

.demos__player-titulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--cor-branca);
  line-height: 1.3;
}

.demos__player-desc {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 560px;
}

/* =============================================
   LISTA LATERAL (coluna direita)
   ============================================= */

.demos__lista-wrapper {
  /* Altura máxima com scroll interno — isso evita que a lista
     fique maior que o player quando há muitos itens */
  max-height: 460px;
  overflow-y: auto;
  /* Barra de scroll discreta e estilizada */
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 127, 250, 0.4) transparent;
}

/* Webkit (Chrome/Safari) */
.demos__lista-wrapper::-webkit-scrollbar {
  width: 4px;
}
.demos__lista-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.demos__lista-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(72, 127, 250, 0.35);
  border-radius: 4px;
}

/* Reset de lista */
.demos__lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.5rem; /* Espaço para a scrollbar não sobrepor o conteúdo */
}

/* -----  CADA ITEM DA LISTA ----- */
.demos__lista-item {
  display: grid;
  /* Miniatura fixa + conteúdo flex */
  grid-template-columns: 100px 1fr;
  gap: 0.875rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition:
    background-color var(--transicao),
    border-color var(--transicao);
}

.demos__lista-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Estado ativo: item selecionado */
.demos__lista-item--ativo {
  background-color: rgba(72, 127, 250, 0.1);
  border-color: rgba(72, 127, 250, 0.35);
}

/* ----- MINIATURA DO ITEM ----- */
.demos__lista-thumb {
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background-color: #1a1a1a;
  position: relative;
  flex-shrink: 0;
}

.demos__lista-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder da miniatura quando não há imagem */
.demos__lista-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1e1e;
}

.demos__lista-thumb-placeholder svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}

/* Ícone de play sobre a miniatura */
.demos__lista-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demos__lista-play svg {
  width: 20px;
  height: 20px;
  stroke: var(--cor-branca);
  stroke-width: 2;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

/* ----- TEXTO DO ITEM ----- */
.demos__lista-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0; /* Necessário para o text-overflow funcionar em grid */
}

.demos__lista-titulo {
  font-family: var(--fonte-titulo);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cor-branca);
  /* Garante que títulos longos não quebrem o layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demos__lista-categoria {
  font-family: var(--fonte-corpo);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--cor-azul);
  opacity: 0.85;
}

/* =============================================
   RODAPÉ DA SEÇÃO
   ============================================= */

.demos__rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demos__rodape-texto {
  font-family: var(--fonte-corpo);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0;
}

/* O número "20" em destaque azul */
.demos__rodape-destaque {
  color: var(--cor-azul);
  font-weight: 700;
}

.demos__rodape-btn {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cor-branca);
  background-color: var(--cor-azul);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color var(--transicao), transform var(--transicao);
}

.demos__rodape-btn:hover {
  background-color: var(--cor-azul-hover);
  transform: translateY(-2px);
}

/* =============================================
   DEMOS — RESPONSIVIDADE
   ============================================= */

/* 4K (2560px+) */
@media (min-width: 2560px) {
  .demos {
    padding: 10rem 8rem 6rem;
  }

  .demos__titulo {
    font-size: 3.8rem;
  }

  .demos__filtro-btn {
    font-size: 1.5rem;
    padding: 1rem 1.75rem;
  }

  .demos__lista-wrapper {
    max-height: 760px;
  }

  .demos__lista-item {
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }

  .demos__lista-thumb {
    width: 160px;
  }

  .demos__lista-titulo {
    font-size: 1.8rem;
  }

  .demos__lista-categoria {
    font-size: 1.5rem;
  }

  .demos__player-tag {
    font-size: 1.8rem;
    padding: 0.35rem 0.9rem;
  }

  .demos__player-titulo {
    font-size: 2.5rem;
  }

  .demos__player-desc {
    font-size: 1.8rem;
    max-width: 990px;
  }

  .demos__rodape-texto {
    font-size: 1.6rem;
    margin-left: 50px
  }

  .demos__rodape-btn {
    font-size: 1.8rem;
    padding: 1rem 2.5rem;
  }
}

/* Laptop (1024px) */
@media (max-width: 1024px) {
  .demos {
    padding: 4rem 2.5rem 3rem;
  }

  .demos__lista-item {
    grid-template-columns: 80px 1fr;
  }

  .demos__lista-thumb {
    width: 80px;
  }
}

/* Tablet (768px) — empilha player e lista */
@media (max-width: 768px) {
  .demos {
    padding: 4rem 2rem 3rem;
  }

  /* No tablet, lista desce para baixo do player */
  .demos__corpo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Lista lateral vira horizontal com scroll */
  .demos__lista-wrapper {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .demos__lista {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding-right: 0;
    padding-bottom: 0.5rem; /* Espaço para a scrollbar horizontal */
  }

  /* Cada item tem largura fixa no modo horizontal */
  .demos__lista-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-width: 140px;
    max-width: 140px;
    flex-direction: column;
  }

  .demos__lista-thumb {
    width: 100%;
  }

  .demos__rodape {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .demos__rodape-btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile L (425px) */
@media (max-width: 425px) {
  .demos {
    padding: 3rem 1.25rem 2.5rem;
  }

  .demos__titulo {
    font-size: 1.1rem;
  }

  .demos__filtros {
    gap: 0;
    overflow-x: auto; /* Abas rolam horizontalmente se não couberem */
  }

  .demos__filtro-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
}

/* Mobile M (375px) */
@media (max-width: 375px) {
  .demos__player-titulo { font-size: 1rem; }
  .demos__player-desc   { font-size: 0.8rem; }

  .demos__rodape {
    flex-direction: column;
    align-items: flex-start;
  }

  .demos__rodape-btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile S (320px) */
@media (max-width: 320px) {
  .demos {
    padding: 2.5rem 1rem 2rem;
  }

  .demos__filtro-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

    .demos__rodape {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .demos__rodape-texto {
    margin-left: 0;       /* remove o margin-left: 500px */
    font-size: 0.8rem;
  }

  .demos__rodape-btn {
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}

/* =============================================
   CARROSSEL DE LANDING PAGES
   ============================================= */

.lp-carousel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  z-index: 1;
  background-color: rgba(10, 10, 10, 0.9);
}

/* =============================================
   FUNDO DINÂMICO
   ============================================= */

/* Imagem de fundo — trocada pelo JS conforme o card ativo */
.lp-carousel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.35) saturate(0.6);
  transform: scale(1.08); /* Evita bordas brancas do blur */
  transition: background-image 0.6s ease;
  z-index: 0;
}

/* Overlay escuro extra para garantir contraste */
.lp-carousel__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.2) 40%,
    rgba(10,10,10,0.6) 100%
  );
  z-index: 0;
}

/* Todo o conteúdo fica na frente do fundo */
.lp-carousel__header,
.lp-carousel__stage,
.lp-carousel__nav,
.lp-carousel__dots,
.lp-carousel__cta {
  position: relative;
  z-index: 1;
}

/* =============================================
   TÍTULO
   ============================================= */

.lp-carousel__header {
  text-align: center;
  margin-bottom: 3rem;
}

.lp-carousel__titulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: var(--cor-branca);
  letter-spacing: -0.02em;
}

/* =============================================
   STAGE (trilho do carrossel)
   ============================================= */

.lp-carousel__stage {
  width: 100%;
  max-width: 1100px;
  height: 480px;
  /* perspective: distância do olho do usuário ao plano 3D.
     Quanto menor, mais dramático o efeito de perspectiva. */
  perspective: 1200px;
  position: relative;
}

/* =============================================
   CARDS
   ============================================= */

.lp-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  /* Proporção A4 aproximada — boa para screenshots de landing pages */
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  /* transform-origin center garante que a rotação Y seja em torno
     do próprio centro do card */
  transform-origin: center center;
  transform: translateX(-50%) translateY(-50%);
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.55s ease,
    box-shadow 0.55s ease;
  /* Sombra sutil padrão */
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  background-color: #1a1a1a;
  /* Necessário para que o rotateY seja renderizado em 3D */
  transform-style: preserve-3d;
}

/* Imagem do card */
.lp-carousel__card-img {
  width: 100%;
  height: calc(100% - 52px); /* Reserva espaço para o botão */
  object-fit: cover;
  object-position: top;      /* Mostra o topo da landing page */
  display: block;
}

/* Placeholder quando não há imagem */
.lp-carousel__card-placeholder {
  width: 100%;
  height: calc(100% - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #111;
}

.lp-carousel__card-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 1.5;
}

.lp-carousel__card-placeholder span {
  font-family: var(--fonte-corpo);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

/* Rodapé do card: botão "Ver página" */
.lp-carousel__card-footer {
  height: 52px;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.lp-carousel__card-link {
  font-family: var(--fonte-corpo);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cor-azul);
  letter-spacing: 0.04em;
  transition: color var(--transicao);
}

.lp-carousel__card-link:hover {
  color: var(--cor-branca);
}

/* =============================================
   POSICIONAMENTO DOS CARDS 
   ============================================= */

/* Card ativo (central): sem rotação, maior, sombra azul */
.lp-carousel__card--ativo {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(72,127,250,0.15);
  z-index: 10;
}

/* Cards não-ativos: cursor de pointer clicável */
.lp-carousel__card:not(.lp-carousel__card--ativo):hover {
  filter: brightness(1.1);
}

/* =============================================
   NAVEGAÇÃO (setas)
   ============================================= */

.lp-carousel__nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.lp-carousel__seta {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color var(--transicao),
    border-color var(--transicao),
    transform var(--transicao);
}

.lp-carousel__seta:hover {
  background-color: rgba(72,127,250,0.2);
  border-color: var(--cor-azul);
  transform: scale(1.08);
}

.lp-carousel__seta svg {
  width: 20px;
  height: 20px;
  stroke: var(--cor-branca);
  stroke-width: 2;
}

/* =============================================
   DOTS DE PAGINAÇÃO
   ============================================= */

.lp-carousel__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.lp-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  cursor: pointer;
  transition:
    background-color var(--transicao),
    transform var(--transicao),
    width var(--transicao);
  border: none;
}

/* Dot ativo vira uma pílula */
.lp-carousel__dot--ativo {
  background-color: var(--cor-azul);
  width: 20px;
  border-radius: 3px;
}

/* =============================================
   CTA
   ============================================= */

.lp-carousel__cta {
  margin-top: 2.5rem;
}

.lp-carousel__cta-btn {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cor-branca);
  background-color: var(--cor-azul);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  transition: background-color var(--transicao), transform var(--transicao);
}

.lp-carousel__cta-btn:hover {
  background-color: var(--cor-azul-hover);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* 4K */
@media (min-width: 2560px) {
  .lp-carousel__stage {
    max-width: 1800px;
    height: 780px;
    perspective: 2000px;
  }

  .lp-carousel__card {
    width: 420px;
    height: 640px;
  }

  .lp-carousel__titulo {
    font-size: 4rem;
  }

  .lp-carousel__cta-btn {
    font-size: 1.5rem;
    padding: 1.25rem 3rem;
  }

  .lp-carousel__seta {
    width: 64px;
    height: 64px;
  }

  .lp-carousel__seta svg {
    width: 32px;
    height: 32px;
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .lp-carousel {
    padding: 4rem 1.5rem 3rem;
  }

  .lp-carousel__stage {
    height: 380px;
  }

  .lp-carousel__card {
    width: 200px;
    height: 310px;
  }
}

/* Mobile L (425px) */
@media (max-width: 425px) {
  .lp-carousel__stage {
    height: 340px;
  }

  .lp-carousel__card {
    width: 170px;
    height: 270px;
  }

  .lp-carousel__titulo {
    font-size: 1.35rem;
  }
}

/* Mobile M (375px) */
@media (max-width: 375px) {
  .lp-carousel__card {
    width: 150px;
    height: 240px;
  }
}

/* Mobile S (320px) */
@media (max-width: 320px) {
  .lp-carousel__card {
    width: 130px;
    height: 210px;
  }

  .lp-carousel__titulo {
    font-size: 1.15rem;
  }
}

/* =============================================
   NEXA ACADEMY
   ============================================= */

.academy {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 6rem 4rem 5rem;
  z-index: 1;
  background-color: black;
}

/* Cabeçalho */
.academy__header {
  margin-bottom: 3rem;
}

.academy__tag {
  font-family: var(--fonte-corpo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cor-azul);
  display: block;
  margin-bottom: 0.75rem;
}

.academy__titulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.academy__titulo-branco { color: var(--cor-branca); }
.academy__titulo-azul   { color: var(--cor-azul); }

.academy__subtitulo {
  font-family: var(--fonte-corpo);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  line-height: 1.6;
}

/* Grid de cards */
.academy__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.academy__card {
  background-color: #111;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 3px solid var(--cor-azul);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.academy__card-num {
  font-family: var(--fonte-titulo);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cor-azul);
  letter-spacing: 0.05em;
}

.academy__card-titulo {
  font-family: var(--fonte-titulo);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cor-branca);
  line-height: 1.3;
}

.academy__card-desc {
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* Rodapé */
.academy__rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.academy__rodape-texto {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.academy__rodape-link {
  color: var(--cor-azul);
  font-weight: 500;
  transition: color var(--transicao);
}

.academy__rodape-link:hover {
  color: var(--cor-branca);
}

.academy__rodape-btn {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cor-preta);
  background-color: var(--cor-branca);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color var(--transicao), transform var(--transicao);
}

.academy__rodape-btn:hover {
  background-color: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* 4K */
@media (min-width: 2560px) {
  .academy {
    padding: 10rem 8rem 7rem;
  }

  .academy__tag       { font-size: 1.2rem; }
  .academy__subtitulo { font-size: 1.6rem; max-width: 900px; }
  .academy__cards     { gap: 1.5rem; }

  .academy__card {
    padding: 2.5rem;
    border-left-width: 5px;
  }

  .academy__card-num    { font-size: 1.2rem; }
  .academy__card-titulo { font-size: 1.6rem; }
  .academy__card-desc   { font-size: 1.4rem; }

  .academy__rodape-texto { font-size: 1.4rem; }
  .academy__rodape-btn   { font-size: 1.4rem; padding: 1rem 2.5rem; }
}

/* Laptop (1024px) */
@media (max-width: 1024px) {
  .academy { padding: 5rem 2.5rem 4rem; }
}

/* Tablet (768px) — 2x2 */
@media (max-width: 768px) {
  .academy { padding: 4rem 2rem 3rem; }

  .academy__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .academy__rodape {
    flex-direction: column;
    align-items: flex-start;
  }

  .academy__rodape-btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile L (425px) — 1 coluna */
@media (max-width: 425px) {
  .academy { padding: 3rem 1.25rem 2.5rem; }

  .academy__cards {
    grid-template-columns: 1fr;
  }
}

/* Mobile S (320px) */
@media (max-width: 320px) {
  .academy { padding: 2.5rem 1rem 2rem; }
  .academy__card-titulo { font-size: 0.9rem; }
  .academy__card-desc   { font-size: 0.8rem; }
}

/* =============================================
   CTA PRINCIPAL
   ============================================= */

.cta {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0);
}

/* Polígono branco — 4 vértices, espelha o Hero mas invertido */
.cta__polygon {
  position: absolute;
  bottom: 0;          /* ancora na base */
  left: 0;
  width: 100%;
  height: 70px;      /* só uma faixa na base */
  background-color: #ffffff;
  clip-path: polygon(
    0% 100%,
    10% 0%,
    90% 0%,
    100% 100%
  );
  z-index: 1;
  min-height: unset;  /* remove o min-height: 100vh herdado */
}

/* Layout interno: texto + formulário lado a lado */
.cta__conteudo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* =============================================
   TEXTO (lado esquerdo)
   ============================================= */

.cta__titulo {
  font-family: var(--cor-branca);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cor-branca);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.cta__titulo-destaque {
  color: var(--cor-azul);
}

.cta__subtitulo {
  font-family: var(--fonte-corpo);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: #555;
  line-height: 1.65;
  max-width: 360px;
}

/* =============================================
   FORMULÁRIO (lado direito)
   ============================================= */

.cta__form {
  background-color: #111;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta__campo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cta__label {
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.cta__input {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  color: var(--cor-branca);
  outline: none;
  transition: border-color var(--transicao);
  width: 100%;
}

.cta__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.cta__input:focus {
  border-color: var(--cor-azul);
}

.cta__input--textarea {
  resize: vertical;
  min-height: 100px;
}

.cta__btn {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--cor-azul);
  color: var(--cor-branca);
  border: none;
  border-radius: 8px;
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transicao), transform var(--transicao);
  margin-top: 0.25rem;
}

.cta__btn:hover {
  background-color: var(--cor-azul-hover);
  transform: translateY(-2px);
}

.cta__btn:active {
  transform: scale(0.98);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* 4K */
@media (min-width: 2560px) {
  .cta__conteudo {
    max-width: 2000px;
    padding: 10rem 8rem;
    gap: 6rem;
  }

  .cta__subtitulo { font-size: 1.6rem; max-width: 600px; }
  .cta__label     { font-size: 1.3rem; }
  .cta__input     { font-size: 1.4rem; padding: 1rem 1.25rem; }
  .cta__btn       { font-size: 1.5rem; padding: 1.25rem; }
}

/* Laptop (1024px) */
@media (max-width: 1024px) {
  .cta__conteudo {
    padding: 5rem 2.5rem;
    gap: 2.5rem;
  }
}

/* Tablet (768px) — empilha */
@media (max-width: 768px) {
  .cta__polygon {
    clip-path: polygon(
      0% 4%,
      100% 0%,
      100% 100%,
      0% 100%
    );
  }

  .cta__conteudo {
    grid-template-columns: 1fr;
    padding: 5rem 2rem 3rem;
    gap: 2rem;
  }

  .cta__subtitulo {
    max-width: 100%;
  }
}

/* Mobile L (425px) */
@media (max-width: 425px) {
  .cta__conteudo {
    padding: 4rem 1.25rem 2.5rem;
  }

  .cta__form {
    padding: 1.5rem;
  }
}

/* Mobile S (320px) */
@media (max-width: 320px) {
  .cta__polygon {
    height: 5px;
  }

  .cta__titulo {
    font-size: 1.75rem;
  }
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  z-index: 1;
  padding: 3.5rem 4rem 2rem;
  margin-top: -1px;
}

/* Topo: 3 colunas */
.footer__topo {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

/* Coluna */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Logo */
.footer__logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-left: -20px;
  margin-bottom: -30px;
}

.footer__logo-fallback {
  align-items: center;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.4rem;
}

.footer__logo-nexa { color: var(--cor-preta); }
.footer__logo-a    { color: var(--cor-azul); }

.footer__desc {
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  max-width: 220px;
}

/* Títulos das colunas */
.footer__col-titulo {
  font-family: var(--fonte-corpo);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
}

/* Links */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-family: var(--fonte-corpo);
  font-size: 0.875rem;
  color: #333;
  transition: color var(--transicao);
}

.footer__link:hover {
  color: var(--cor-azul);
}

/* Divisória */
.footer__divider {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid #e5e5e5;
}

/* Bottom */
.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy,
.footer__dev {
  font-family: var(--fonte-corpo);
  font-size: 0.78rem;
  color: #999;
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* 4K */
@media (min-width: 2560px) {
  .footer {
    padding: 6rem 8rem 3rem;
  }

  .footer__topo      { max-width: 2000px; gap: 5rem; }
  .footer__bottom    { max-width: 2000px; }
  .footer__divider   { max-width: 2000px; }
  .footer__logo-img  { 
    height: 200px;
    margin-top: -100px;
    margin-bottom: -50px;
    margin-left: -50px;
   }
  .footer__desc      { font-size: 1.3rem; max-width: 380px; }
  .footer__col-titulo{ font-size: 1.1rem; }
  .footer__link      { font-size: 1.3rem; }
  .footer__copy,
  .footer__dev       { font-size: 1.2rem; }
}

/* Tablet (768px) — 2 colunas */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 2rem 1.5rem;
  }

  .footer__topo {
    grid-template-columns: 1fr 1fr;
  }

  /* Marca ocupa linha inteira */
  .footer__col--marca {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* Mobile L (425px) — 1 coluna */
@media (max-width: 425px) {
  .footer__topo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile S (320px) */
@media (max-width: 320px) {
  .footer {
    padding: 2.5rem 1rem 1.5rem;
  }
}