/* =========================
   🎨 DESIGN SYSTEM
========================= */
:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-soft: #dcfce7;

  --dark: #0f172a;
  --dark-2: #020617;

  --text: #1f2937;
  --text-light: #6b7280;

  --white: #ffffff;
  --border: rgba(255,255,255,0.08);

  --radius: 14px;

  --shadow-sm: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-md: 0 20px 60px rgba(0,0,0,0.25);

  --transition: all 0.3s ease;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: var(--dark-2);
  overflow-x: hidden;
}

/* LAYOUT */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container {
    /*width: 92%;*/
    width: 100%;
    max-width: 1100px;
    padding-inline: 1px;
    margin-inline: auto;    
  }
}

/* =========================
   🌌 HERO (AURORA STRIPE)
========================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: 100px;

  background: radial-gradient(circle at 20% 20%, #22c55e22, transparent 40%),
              radial-gradient(circle at 80% 30%, #6366f122, transparent 40%),
              radial-gradient(circle at 50% 80%, #0ea5e922, transparent 40%),
              linear-gradient(
                              -45deg,
                              #020617,
                              #0f172a,
                              #052e16,
                              #14532d
                            );
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;              
}

/* AURORA ANIMADA */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent,
    rgba(34,197,94,0.15),
    rgba(99,102,241,0.15),
    transparent
  );
  filter: blur(80px);
  animation: auroraMove 12s linear infinite;
}

/* GRID TECH */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}

/* ANIMAÇÕES */
@keyframes auroraMove {
  0% { transform: translateX(-10%) }
  50% { transform: translateX(10%) }
  100% { transform: translateX(-10%) }
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* CONTENT */
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  color: white;
}

/* TEXT */
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  opacity: 0.85;
  margin-bottom: 30px;
}




/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1100px);
  padding: 12px 25px;
  border-radius: 50px;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(2,6,23,0.7);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo__img {
  height: clamp(55px, 6vw, 75px);
}

/* =========================
   NAV
========================= */
.nav__list {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav a {
  color: white;
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

/* =========================
   📱 MENU MOBILE FIX
========================= */

/* botão escondido no desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1100;
}

/* overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}



/* =========================
   BOTÕES
========================= */
.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(34,197,94,0.3);
}

.btn--ghost {
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  background: transparent;
}

/* =========================
   GRID / SECTIONS
========================= */
.section {
  padding: 90px 0;
  background: #f9fafb;
}

.section--alt {
  background: #f1f5f9;
}

.section__title {
  text-align: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));*/
  /*grid-template-columns: repeat(auto-fit, minmax(0, 1fr));*/
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 🔥 força 2 colunas */
    gap: 24px;
  
}



/* =========================
   🧊 CARDS PREMIUM
========================= */
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.3s;
  position: relative;
  max-width: 100%;
  /*padding-inline: 10px;*/
  overflow:hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 10px;
}

.card-subtitle {
  color: var(--text-light);
  margin-bottom: 20px;
}

.card-list {
  list-style: none;
  margin-bottom: 20px;
}

.card-list li {
  margin-bottom: 12px;
}

.card-list strong {
  display: block;
}

.card-list span {
  font-size: 13px;
  color: var(--text-light);
}

.card-cta {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}



/* =========================
   💳 CERTIFICADO (DESTAQUE)
========================= */
.certificado-box {
  /*grid-column: span 2;*/
  background: linear-gradient(135deg, #020617, #0f172a);
  color: white;
  padding: 32px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1; /* ocupa linha inteira */
  max-width: 600px;
  justify-self: center; /* 🔥 centraliza */
}

.certificado-box::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.3), transparent);
  top: -150px;
  right: -150px;
}

.certificado-content p {
  opacity: 0.85;
  margin-bottom: 20px;
}

.certificado-benefits {
  list-style: none;
  margin-bottom: 20px;
}

.btn--certificado {
  background: white;
  color: black;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
}

.certificado-link {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
}



/* =========================
   FORM
========================= */
.form {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.form button {
  width: 100%;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  /* mostra botão */
  .menu-toggle {
    display: block;
  }

  /* esconde menu padrão */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: #020617;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 80px 20px;
    z-index: 1000;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {

  .hero__title {
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em; /* 🔥 efeito Stripe */
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
  }

  .section__title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .container {
     padding-inline: 16px;
    box-sizing: border-box;
  }

}



@media (max-width: 768px) {
 
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    display: flex;
    flex-direction: column; /* Coloca um botão embaixo do outro */
    gap: 16px; /* Espaço vertical entre os botões (crucial para não sobrepor) */
    width: 100%;
    margin-top: 30px; /* Espaço entre o subtítulo e os botões */
    align-items: center; /* Centraliza os botões horizontalmente */
  }

  .hero__actions .btn {
    width: 100%; /* Força os botões a ocuparem a largura total do container */
    max-width: 300px; /* Opcional: limita a largura máxima para não ficarem gigantes */
    justify-content: center; /* Centraliza o texto dentro do botão */
    margin: 0; /* Remove margens antigas que podem atrapalhar */
  }


  .section {
    padding: 60px 0; /* antes 90px */
    overflow: hidden; /* Evita scroll lateral indesejado */
  }

  .container {
    width: 100%;
    padding-inline: 20px; /* Margem interna para o card não colar na borda da tela */
    box-sizing: border-box;
  }

  .grid {
    /*grid-template-columns: 1fr;*/
    display: flex; /* Flexbox costuma ser mais previsível para colunas únicas no mobile */
    flex-direction: column;  
    gap: 16px;
    width: 100%;
    justify-items: stretch;/*stretch; /* garante expansão */
  }
  

  .grid > * {
    min-width: 0;
    width: 100%;
  }

  .certificado-box {
    grid-column: span 1;
  }

  .certificado-box {
    padding: 24px;
    border-radius: 16px;
  }

  /*
  .certificado-box {
    max-width: 100%;
    grid-column: 1 / -1;
    justify-self: stretch;
  }
    */
/* Se o certificado-box também estiver desalinhado */
  .certificado-box {
    width: 100% !important;
    max-width: none !important;
    grid-column: 1 / -1;
    justify-self: stretch;
  }    

  .certificado-content h3 {
    font-size: 1.2rem;
  }

  .certificado-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .btn,
  .btn--certificado {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }
 
  /*.card {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    display: block; */
/*    overflow: hidden;*/


 .card {
    width: 100% !important; /* Força a largura total */
    max-width: none !important; /* Remove qualquer trava de largura */
    margin-inline: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .card h3 {
    margin-bottom: 8px;
  }

  .card-subtitle {
    margin-bottom: 16px;
  }

  .card-list {
    margin-bottom: 16px;
  }

  .card-cta {
    margin-top: 8px;
  }

  .card * {
    word-break: break-word;
  }  

  .reveal-left, .reveal-right {
    transform: translateX(0) !important; /* Força o alinhamento central no mobile */
  }

  

}


/* =========================
   ✨ SCROLL REVEAL
========================= */

/* estado inicial (escondido) */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: 
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

/* quando aparece */
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* variações (opcional, deixa mais rico) */
.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right {
  transform: translateX(0);
}

/* =========================
   🚀 HERO REVEAL PREMIUM
========================= */

/* estado inicial */
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__card {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
}

/* animações separadas (com timing) */
.hero__title {
  animation: heroFade 0.9s ease forwards;
  animation-delay: 0.2s;
}

.hero__subtitle {
  animation: heroFade 0.9s ease forwards;
  animation-delay: 0.4s;
}

.hero__actions {
  animation: heroFade 0.9s ease forwards;
  animation-delay: 0.6s;
}

.hero__card {
  animation: heroFade 1s ease forwards;
  animation-delay: 0.8s;
}

/* keyframe principal */
@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 768px) {
  .header {
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
  }
}

.sobre {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sobre p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text-light);
}

.sobre-intro {
  font-size: 1.1rem;
  color: var(--text);
}

.sobre-highlight {
  margin-top: 20px;
  font-weight: 600;
  color: var(--dark);
}

