/* ============================================================
   SEÇÃO 9 — EM POUCAS PALAVRAS
   ============================================================ */
#secao-9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 120vh; /* Mantém a altura mínima como solicitado */
  padding-top: 50px; /* Espaçamento para a navbar */
  padding-bottom: 80px; /* Padding inferior para o botão */
  box-sizing: border-box;
  justify-content: flex-start;
}

@media (max-width: 1500px) {
  #secao-9 {
  min-height: 150vh; /* Mantém a altura mínima de 120vh */
  }
}


/* Orbs decorativos */
#secao-9 .s9-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.5;
}
#secao-9 .s9-orb--left {
  width: 500px; height: 500px;
  top: 10%; left: -150px;
  background: radial-gradient(circle, rgba(30,144,255,0.08) 0%, transparent 65%);
}
#secao-9 .s9-orb--right {
  width: 400px; height: 400px;
  bottom: 15%; right: -100px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 65%);
}

/* Grade de fundo */
#secao-9 .s9-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,144,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Container principal */
#secao-9 .s9-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px; /* Espaçamento entre header, track e botão */
  width: 100%;
  max-width: 1200px; /* Limita a largura máxima do conteúdo */
  padding: 0 var(--page-padding-x-desktop);
  position: relative;
  z-index: 10;
}

/* ── CABEÇALHO ── */
#secao-9 .s9-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-top: 40px; /* Espaçamento do topo para o título */
}

#secao-9 .s9-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

#secao-9 .s9-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: var(--blue-accent);
  max-width: 600px;
}

#secao-9 .s9-title-line {
  width: 280px; /* Largura inicial da linha */
  height: 2px;
  background: linear-gradient(90deg, var(--blue-accent), transparent);
  border-radius: 2px;
  margin-top: 4px;
}

/* ── TRILHA DE MÓDULOS (CARDS DE FLUXO) ── */
#secao-9 .s9-track-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px; /* Espaçamento entre os cards e o botão */
}

#secao-9 .s9-connectors {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
  z-index: -1; /* Fica atrás dos cards */
}

#secao-9 .s9-modules {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    justify-content: center;
    padding: 50px 0 0;
}

#secao-9 .s9-mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Distribui o espaço verticalmente */
  background: var(--bg-card);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--glow-soft);
  flex-shrink: 0; /* Impede que os cards encolham */
  flex-grow: 0; /* Impede que os cards cresçam */

  /* Altura padrão para os cards */
  width: 150px; /* Largura padrão */
}

/* Alturas específicas para cada card, conforme a Seção 2 */
#secao-9 #s9-mod-1 { height: 230px; align-items: center; display: flex; justify-content: center; } /* Estudar */
#secao-9 #s9-mod-2 { height: 300px; align-items: center; display: flex; justify-content: center; } /* Ganhar XP (XP Pivot) */
#secao-9 #s9-mod-3 { height: 280px; align-items: center; display: flex; justify-content: center; } /* Desbloquear */
#secao-9 #s9-mod-4 { height: 300px; align-items: center; display: flex; justify-content: center; } /* Investigar */
#secao-9 #s9-mod-5 { height: 280px; align-items: center; display: flex; justify-content: center; } /* Entregar */
#secao-9 #s9-mod-6 { height: 250px; align-items: center; display: flex; justify-content: center; } /* Avaliar */
#secao-9 #s9-mod-7 { height: 230px; align-items: center; display: flex; justify-content: center; } /* Receber feedback (mantido como M1/M7 da S2) */

@media (max-width: 760px) {
/* Alturas específicas para cada card, conforme a Seção 2 */
#secao-9 #s9-mod-1 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Estudar */
#secao-9 #s9-mod-2 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Ganhar XP (XP Pivot) */
#secao-9 #s9-mod-3 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Desbloquear */
#secao-9 #s9-mod-4 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Investigar */
#secao-9 #s9-mod-5 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Entregar */
#secao-9 #s9-mod-6 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Avaliar */
#secao-9 #s9-mod-7 { height: 70px; align-items: center; display: flex; justify-content: center; } /* Receber feedback (mantido como M1/M7 da S2) */
}

#secao-9 .s9-mod-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,212,255,0.1);
  border: 1.5px solid rgba(0,212,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

#secao-9 .s9-mod-icon-wrap svg {
  width: 32px;
  height: 32px;
}

#secao-9 .s9-mod-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
  margin-top: 10px; /* Espaçamento entre ícone e label */
}

/* Estilo específico para o card XP */
#secao-9 .s9-mod--xp {
  background: var(--bg-card);
  border-color: var(--xp-gold);
  box-shadow: 0 0 20px var(--xp-gold-glow);
}

#secao-9 .s9-mod--xp .s9-mod-icon-wrap {
  background: rgba(255,215,0,0.1);
  border-color: var(--xp-gold);
  color: var(--xp-gold);
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
  position: relative;
  overflow: hidden;
}

#secao-9 .s9-mod--xp .s9-xp-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--xp-gold);
  position: relative;
  z-index: 2;
}

#secao-9 .s9-mod--xp .s9-xp-star {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--xp-gold);
  opacity: 0.2;
  z-index: 1;
}

/* ── BOTÃO DE AÇÃO ── */
#secao-9 .s9-action-button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px; /* Espaçamento acima do botão */
}

#secao-9 .s9-action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  background: var(--blue-primary);
  color: var(--text-white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(30,144,255,0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#secao-9 .s9-action-button:hover {
  background: var(--blue-mid);
  box-shadow: 0 0 30px rgba(30,144,255,0.6);
  transform: translateY(-3px);
}

#secao-9 .s9-action-button svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

#secao-9 .s9-action-button:hover svg {
  transform: translateX(5px);
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 1200px) {
  #secao-9 .s9-modules {
    gap: 15px;
  }
  #secao-9 .s9-mod {
    width: 130px;
    /* Alturas específicas para cada card em telas menores */
    #s9-mod-1 { height: 200px; }
    #s9-mod-2 { height: 260px; }
    #s9-mod-3 { height: 240px; }
    #s9-mod-4 { height: 260px; }
    #s9-mod-5 { height: 240px; }
    #s9-mod-6 { height: 220px; }
    #s9-mod-7 { height: 200px; }
  }
  #secao-9 .s9-mod-icon-wrap {
    width: 55px;
    height: 55px;
  }
  #secao-9 .s9-mod-icon-wrap svg {
    width: 30px;
    height: 30px;
  }
  #secao-9 .s9-mod-label {
    font-size: 0.9rem;
  }
  #secao-9 .s9-mod--xp .s9-xp-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 992px) {
  #secao-9 .s9-modules {
    gap: 12px;
  }
  #secao-9 .s9-mod {
    width: 120px;
    /* Alturas específicas para cada card em telas menores */
    #s9-mod-1 { height: 180px; }
    #s9-mod-2 { height: 230px; }
    #s9-mod-3 { height: 210px; }
    #s9-mod-4 { height: 230px; }
    #s9-mod-5 { height: 210px; }
    #s9-mod-6 { height: 190px; }
    #s9-mod-7 { height: 180px; }
  }
  #secao-9 .s9-mod-icon-wrap {
    width: 50px;
    height: 50px;
  }
  #secao-9 .s9-mod-icon-wrap svg {
    width: 28px;
    height: 28px;
  }
  #secao-9 .s9-mod-label {
    font-size: 0.85rem;
  }
  #secao-9 .s9-mod--xp .s9-xp-text {
    font-size: 1rem;
  }
  #secao-9 .s9-connectors {
    display: none; /* Conectores SVG podem ser complexos em telas menores */
  }
}

@media (max-width: 768px) {
  #secao-9 {
    padding-top: 0px;
    padding-bottom: 50px;
   min-height: 160vh;
  }
  #secao-9 .s9-container {
    gap: 40px;
    padding: 50px 5% 60px;
  }
  #secao-9 .s9-header {
    padding-top: 20px;
  }
  #secao-9 .s9-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  #secao-9 .s9-subtitle {
    font-size: 0.9rem;
  }
  #secao-9 .s9-modules {
    gap: 10px;
    justify-content: center;
  }
  #secao-9 .s9-mod {
    width: 100px;
    /* Alturas específicas para cada card em telas menores */
    #s9-mod-1 { height: 150px; }
    #s9-mod-2 { height: 190px; }
    #s9-mod-3 { height: 170px; }
    #s9-mod-4 { height: 190px; }
    #s9-mod-5 { height: 170px; }
    #s9-mod-6 { height: 150px; }
    #s9-mod-7 { height: 150px; }
    padding: 10px;
    border-radius: 16px;
  }
  #secao-9 .s9-mod-icon-wrap {
    width: 40px;
    height: 40px;
  }
  #secao-9 .s9-mod-icon-wrap svg {
    width: 24px;
    height: 24px;
  }
  #secao-9 .s9-mod-label {
    font-size: 0.75rem;
  }
  #secao-9 .s9-mod--xp .s9-xp-text {
    font-size: 0.9rem;
  }
  #secao-9 .s9-action-button {
    padding: 14px 25px;
    font-size: 1rem;
    gap: 10px;
  }
  #secao-9 .s9-action-button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  #secao-9 .s9-modules {
    flex-direction: column; /* Empilha os cards em telas muito pequenas */
    gap: 12px;
    min-height: 100vh;
  }
  #secao-9 .s9-mod {
    width: 80%; /* Ocupa mais largura */
    max-width: 200px; /* Limita a largura máxima */
    height: auto; /* Altura automática */
    flex-direction: row; /* Ícone e label lado a lado */
    justify-content: flex-start;
    gap: 15px;
    padding: 12px 20px;
  }
  #secao-9 .s9-mod-icon-wrap {
    flex-shrink: 0;
  }
  #secao-9 .s9-mod-label {
    text-align: left;
  }
  #secao-9 .s9-orb--left,
  #secao-9 .s9-orb--right {
    display: none; /* Oculta orbs em mobile pequeno */
  }
}