/* ------------------ SEÇÃO ETAPAS NEXSPIRE -------------------- */
.etapas-nexspire {
  background-color: #0a0f1c;
  padding: 100px 20px;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
}

.etapas-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 100px; /* espaço inferior para o CTA */
}

.etapas-titulo {
  text-shadow: 0 0 10px #00f7ff44;
  font-size: 50px;
  margin-bottom: 30px;
  color: #ffffff;
}

#etapas-nexspire {
  scroll-margin-top: -100px; /* altura aproximada do header */
}

/* ---------- ETAPA BASE ---------- */
.etapa {
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(80px) scale(0.95) rotateX(10deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
  perspective: 1000px;
  will-change: transform, opacity;
}

.etapa.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}

.etapa-icone {
  background: linear-gradient(145deg, #00f7ff, #008f99);
  color: #0a0f1c;
  font-size: 1.6rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 20px #00f7ff;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  filter: blur(5px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity, filter;
}

.etapa.show .etapa-icone {
  opacity: 1;
  transform: scale(1.2);
  filter: blur(0);
  animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

.etapa-conteudo {
  background-color: #111827;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  margin-top: 20px;
  flex: 1;
  box-shadow: 0 8px 24px rgba(0, 247, 255, 0.08);
  transition: opacity 0.8s ease, transform 0.8s ease;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  will-change: transform, opacity;
}

.etapa.show .etapa-conteudo {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.3s; /* entra depois do ícone */
}

.etapa-conteudo h3 {
  font-size: 1.5rem;
  color: #00f7ff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.etapa-conteudo p {
  color: #d1d5db;
  line-height: 1.6;
}

/* Glow pulsante no ícone */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5), 0 0 20px rgba(0, 247, 255, 0.2);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.9), 0 0 40px rgba(0, 247, 255, 0.4);
    transform: scale(1.1);
  }
}

/* ---------- MOBILE (até 1023px) ---------- */
/* ---------- MOBILE (até 1023px) ---------- */
@media (max-width: 1023px) {
  .etapas-linha {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 60px;
  }

  .etapa {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    text-align: center;
    z-index: 1; /* etapas ficam acima da linha */
  }

  .etapa-icone {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    margin-bottom: 10px;
    box-shadow: 0 0 15px #00f7ff;
    position: relative;
    z-index: 2; /* ícones acima da linha */
  }

  .etapa-conteudo {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
  }

  /* Linha única, agora dinâmica */
  .etapas-linha::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: var(--scroll-height, 0); /* controlada pelo JS */
    background: #00f7ff;
    transform: translateX(-50%);
    z-index: 0;
  }

  /* Oculta a numeração visível (se não quiser usar) */
  .etapa-numero-visivel {
    display: none;
  }
}

.quebra-mobile {
  display: inline;
}

@media (max-width: 768px) {
  .quebra-mobile {
    display: block; /* força quebra só no mobile */
  }
}



/* ---------- DESKTOP (a partir de 1024px) ---------- */
@media (min-width: 1024px) {
  .etapas-titulo {
    margin-bottom: 80px;
  }

  /* Grid 3 colunas x 2 linhas */
  .etapas-linha {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
  }

  .etapa-icone {
    background: #0e0e0e;
    border: 3px solid #00f7ff;
    color: #00f7ff;
    font-size: 2rem;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
  }

  .etapa-icone:hover {
    background: #00f7ff;
    color: #0e0e0e;
    transform: scale(1.15);
    box-shadow: 0 0 15px #00f7ff, 0 0 30px #00f7ff;
  }

  /* Numeração grande atrás */
  .etapa::before {
    content: attr(data-step);
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 247, 255, 0.05);
    z-index: 0;
  }

  /* Linha de conexão horizontal */
  .etapa::after {
    content: "";
    position: absolute;
    top: 35px;
    left: 100%;
    width: calc(100% - 70px);
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 247, 255, 0.5), transparent);
    z-index: 1;
  }

  /* Remove linha na última coluna */
  .etapa:nth-child(3)::after,
  .etapa:nth-child(6)::after {
    display: none;
  }

  .etapa-numero-visivel {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}

/* ---------- CTA FINAL ---------- */
.cta-final-etapas {
  background-color: #0a0f1c;
  text-align: center;
  padding: 15px 20px 10px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 100px;
}

.cta-final-etapas h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-final-etapas h2 span {
  color: #00f7ff;
}

.cta-botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.botao-primario,
.botao-secundario {
  padding: 16px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.botao-primario {
  background: #00f7ff;
  color: #0a0f1c;
  box-shadow: 0 0 15px #00f7ff80;
}

.botao-primario:hover {
  background: #00c6d6;
  box-shadow: 0 0 20px #00f7ffaa;
}

.botao-secundario {
  background: #111827;
  color: #d1d5db;
  border: 1px solid #2d3748;
}

.botao-secundario:hover {
  background: #1f2937;
  color: #00f7ff;
  border-color: #00f7ff;
}

.botao-primario i,
.botao-secundario i {
  font-size: 1.1rem;
}

/* ----- ANIMAÇÕES MAIS IMPACTANTES ----- */
.cta-final-etapas {
  opacity: 0;
  transform: translateY(100px) scale(0.95);
  filter: blur(6px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-final-etapas.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* título ganha um efeito de zoom leve */
.cta-final-etapas h2 {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}
.cta-final-etapas.show h2 {
  opacity: 1;
  transform: scale(1);
}

/* Botões com efeito bounce suave */
.cta-botoes a {
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cta-final-etapas.show .cta-botoes a {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cta-final-etapas.show .cta-botoes a:nth-child(1) {
  transition-delay: 0.4s;
}
.cta-final-etapas.show .cta-botoes a:nth-child(2) {
  transition-delay: 0.7s;
}



/* ----- INTERAÇÕES COM O MOUSE ----- */
.cta-final-etapas {
  transition: transform 0.3s ease;
}

.cta-final-etapas.mouse-active {
  transform: scale(1.02);
}

/* Brilho animado nos botões */
.cta-botoes a {
  position: relative;
  overflow: hidden;
}

.cta-botoes a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-botoes a:hover::after {
  left: 100%;
}



/* Botão primário: mantém aparência atual */
.botao-primario {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: efeito sutil apenas */
.botao-primario:hover {
  transform: scale(1.05); /* leve aumento */
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.4); /* brilho sutil */
}

/* Gradiente de fundo suave mantém o mesmo */
.botao-primario::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0ff1e0, #00bcd4);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.botao-primario:hover::before {
  opacity: 1;
}


/* ----- EFEITO CONTÍNUO + BRILHO ANIMADO PARA MOBILE ----- */
@media (max-width: 1023px) {

  /* Botão primário: pulsação azul */
  .botao-primario {
    animation: pulseBotaoPrimario 2s infinite ease-in-out;
  }

  @keyframes pulseBotaoPrimario {
    0% {
      transform: scale(1);
      box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    }
    50% {
      transform: scale(1.08);
      box-shadow: 0 0 25px rgba(0, 200, 255, 0.5);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    }
  }

  /* Botão secundário: pulsação verde + reflexo animado */
  .botao-secundario {
    position: relative;
    overflow: hidden;
  }

  @keyframes pulseBotaoSecundario {
    0% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(0, 255, 100, 0.3);
    }
    50% {

      box-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
    }
    100% {

      box-shadow: 0 0 10px rgba(0, 255, 100, 0.3);
    }
  }

  /* Reflexo animado */
  .botao-secundario::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      120deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.4) 50%,
      rgba(255,255,255,0) 100%
    );
    transform: skewX(-30deg);
    pointer-events: none;
    animation: shine 3s infinite;
  }

  @keyframes shine {
    0% { left: -100%; }
    100% { left: 110%; }
  }
}
