/* ---- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS ---- */
:root {
  --cor-fundo: #121212;
  --cor-fundo-secundario: #1e1e1e;
  --cor-texto-principal: #e0e0e0;
  --cor-texto-secundario: #a0a0a0;
  --cor-destaque: #00ff9d;
  --cor-hover-botao: #00e68a;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto-principal);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--cor-destaque);
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

section {
  padding: 60px 0; /* Espaçamento padrão para seções */
}

/* ---- CABEÇALHO (HEADER) ---- */
header {
  background-color: rgba(18,18,18,0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--cor-fundo-secundario);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cor-destaque);
  text-decoration: none;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.menu a {
  color: var(--cor-texto-principal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 10px;
}

.menu a:hover {
  color: var(--cor-destaque);
}

#menuBtn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--cor-destaque);
  cursor: pointer;
  z-index: 2001; /* Garante que fique acima do menu aberto */
}

/* ---- SEÇÃO HERO ---- */
.hero {
  height: 100vh;
  min-height: 500px; /* Altura mínima para telas baixas */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px; /* Compensa o header fixo */
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

.hero-content {
  padding: 0 15px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- BOTÕES ---- */
.cta-btn {
  background-color: var(--cor-destaque);
  color: var(--cor-fundo);
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block; /* Garante que o padding funcione corretamente */
}

.cta-btn:hover {
  background-color: var(--cor-hover-botao);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.2);
}

/* ---- SEÇÃO DE CURSOS / PACKS ---- */
#packs, #cursos, #pacotes {
  padding-top: 80px;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.curso-card {
  background-color: var(--cor-fundo-secundario);
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.curso-card:hover {
  transform: translateY(-10px);
  border-color: var(--cor-destaque);
}

.video-destaque {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.curso-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.curso-card p {
    color: var(--cor-texto-secundario);
    flex-grow: 1; /* Faz o parágrafo ocupar o espaço e alinhar os botões */
    margin-bottom: 20px;
}

.preco {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.preco-parcelado {
  font-size: 1rem;
  color: var(--cor-texto-secundario);
  margin-bottom: 20px;
}

.curso-badge {
    background: rgba(0,255,157,0.1);
    color: var(--cor-destaque);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

/* ---- SEÇÃO BÔNUS HERO ---- */
.bonus-hero {
  background: linear-gradient(180deg, rgba(0,255,157,0.05), transparent);
  padding: 90px 20px 60px;
  margin-top: -1px; /* Evita linhas estranhas entre seções */
}

.bonus-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}

.bonus-hero h1 {
  font-size: 2.6rem;
  margin: 12px 0 18px;
  color: var(--cor-destaque);
}

.bonus-hero p {
  font-size: 1.15rem;
  color: var(--cor-texto-secundario);
  margin-bottom: 20px;
}

.badge-bonus {
  display: inline-block;
  background: rgba(0,255,157,0.1);
  color: var(--cor-destaque);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .6px;
  font-size: .85rem;
}

.bonus-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  aspect-ratio: 1/1; /* Garante proporção do vídeo */
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--cor-destaque), var(--cor-hover-botao));
  color: #000;
  padding: 8px 14px;
  font-weight: 800;
  border-radius: 999px;
  z-index: 10;
}

/* ---- MÉTRICAS ---- */
.metricas-wrapper {
    padding-top: 60px;
}
.metricas-section {
  padding: 30px 0;
  text-align: center;
}
.titulo-com-setas {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.8rem;
  gap: 12px;
}
.seta {
  font-size: 1.4rem;
  color: #00ffff;
  animation: pulsar 2s infinite;
}
@keyframes pulsar {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.7; transform: scale(1); }
}
.metricas-imagem-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease;
}
.metricas-imagem-container:hover {
  transform: scale(1.01);
}
.metricas-imagem {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- BENEFÍCIOS ---- */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.beneficio-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(30,30,30,0.85);
  border: 1px solid var(--cor-fundo-secundario);
}
.beneficio-item .icone {
  font-size: 2.5rem;
  color: var(--cor-destaque);
}

/* ---- AVALIAÇÕES / DEPOIMENTOS ---- */
.depoimento-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  background-color: var(--cor-fundo-secundario);
  border-radius: 12px;
  overflow: hidden;
}
.depoimento-video {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.depoimento-content {
  padding: 30px;
  border-left: 5px solid var(--cor-destaque);
}
.avaliacao {
    color: #ffc107;
    margin-bottom: 15px;
}
blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cor-texto-principal);
}
cite {
  font-weight: 700;
  color: var(--cor-destaque);
  display: block;
  margin-top: 15px;
}

/* ---- FAQ ---- */
.faq-container {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--cor-fundo-secundario);
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}
.faq-pergunta {
    width: 100%;
    background: none;
    border: none;
    color: var(--cor-texto-principal);
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-pergunta i {
    transition: transform 0.3s ease;
}
.faq-resposta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-resposta p {
    padding: 0 20px 20px;
    color: var(--cor-texto-secundario);
}
.faq-item.active .faq-pergunta i {
    transform: rotate(180deg);
}
.faq-item.active .faq-resposta {
    max-height: 200px; /* Altura suficiente para o conteúdo */
}

/* ---- FOOTER ---- */
footer {
  background-color: var(--cor-fundo-secundario);
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}
.social-links { margin-top: 20px; }
.social-links a {
  color: var(--cor-texto-principal);
  font-size: 2rem;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--cor-destaque);
}
footer p {
  margin-top: 20px;
  color: var(--cor-texto-secundario);
}

/* ---- PLAYER DE VÍDEO BÔNUS ---- */
.player-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 5;
}
.bonus-preview:hover .player-controls {
    opacity: 1;
}
.control-btn {
    background: none; border: none;
    color: var(--cor-texto-principal);
    font-size: 1.2rem; cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.control-btn:hover {
    color: var(--cor-destaque);
    transform: scale(1.1);
}
.progress-bar, .volume-slider {
    -webkit-appearance: none; appearance: none;
    background: transparent; cursor: pointer;
}
.progress-bar { flex-grow: 1; height: 5px; }
.volume-slider { width: 80px; height: 4px; }
input[type="range"] {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--cor-destaque); margin-top: -5px;
}
.time-display {
    font-size: 0.9rem; font-weight: 500;
    color: var(--cor-texto-principal); min-width: 45px;
    text-align: center;
}
.volume-container { display: flex; align-items: center; gap: 8px; }

/* ---- POPUP ---- */
#popup {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center; align-items: center;
    z-index: 3000;
}
#popup-content {
    background: #1e1e1e;
    padding: 30px; border-radius: 15px;
    text-align: center; max-width: 400px;
    width: 90%; color: #fff;
    animation: popup-entrance 0.5s ease-out;
}
#popup-content button, .btn-redirecionar {
    padding: 12px 25px; cursor: pointer; margin-top: 15px;
    border: none; border-radius: 5px; transition: all 0.3s ease;
    font-weight: bold;
}
#popup-content .btn-redirecionar {
    display: inline-block; background: var(--cor-destaque);
    color: #000; text-decoration: none;
}
#popup-content .btn-redirecionar:hover {
    background: var(--cor-hover-botao);
}
.close-btn { background: #ff4c4c; color: #fff; }
.close-btn:hover { background: #e03a3a; }
@keyframes popup-entrance {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==================================== */
/* ---- RESPONSIVIDADE PARA CELULAR ---- */
/* ==================================== */

/* Breakpoint para tablets e celulares maiores (até 900px) */
@media (max-width: 900px) {
    .bonus-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bonus-preview {
        order: -1; /* Joga o vídeo para cima */
        max-width: 500px;
        margin: 0 auto 30px auto;
    }
    .depoimento-wrapper {
        flex-direction: column;
    }
    .depoimento-video {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 16/9;
    }
    .depoimento-content {
        border-left: none;
        border-top: 5px solid var(--cor-destaque);
    }
}

/* Breakpoint principal para celulares (até 768px) */
@media (max-width: 768px) {
  section {
    padding: 40px 0; /* Menos espaçamento no celular */
  }
  h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  /* Menu Hamburguer */
  .menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--cor-fundo);
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  .menu.open {
    display: flex;
    transform: translateX(0);
  }
  .menu ul {
    flex-direction: column;
    gap: 20px;
  }
  .menu a {
    font-size: 1.8rem;
  }
  #menuBtn {
    display: block;
  }

  /* Hero Section Mobile */
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  
  /* Seções de Cursos e Packs */
  .cursos-grid {
    gap: 20px;
  }
  .curso-card {
    padding: 20px;
  }
  .preco {
    font-size: 2.2rem;
  }
  
  /* Métricas */
  .titulo-com-setas {
      font-size: 1.5rem;
  }

  /* Player de vídeo */
  .player-controls {
      opacity: 1; /* Sempre visível no mobile */
      padding: 10px;
      gap: 10px;
  }
  .volume-container { display: none; } /* Esconde o volume, que é difícil de usar */
}

/* Ajustes finos para telas muito pequenas (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .cta-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .bonus-hero h1 {
        font-size: 1.8rem;
    }
    footer .social-links a {
        font-size: 1.8rem;
        margin: 0 10px;
    }
}
/* ---- MÉTRICAS CUSTOM ---- */
.metricas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.metrica-card {
  background: var(--cor-fundo-secundario);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metrica-card:hover {
  transform: translateY(-6px);
  border-color: var(--cor-destaque);
}

.metrica-card h3 {
  font-size: 1rem;
  color: var(--cor-texto-secundario);
  margin-bottom: 12px;
}

.metrica-card .valor {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cor-destaque);
}
