/* ============================================================
   Landing Page — Curso de IA | Rodrigo Ferri Parisotto
   Mobile first · Variáveis CSS · Sem frameworks
   ============================================================ */

:root {
  --bg: #070D17;
  --bg-alt: #0B1322;
  --bg-card: #101B2E;
  --bg-footer: #04080F;
  --blue: #2479C7;
  --blue-bright: #4FB3FF;
  --text: #FFFFFF;
  --text-muted: #9DB4CC;
  --green: #25D366;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, Segoe UI, sans-serif;

  --glow-blue: 0 0 18px rgba(79, 179, 255, 0.45);
  --radius: 12px;
  --container: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; }

/* ---------- Seções ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section--alt {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(36, 121, 199, 0.1), transparent 65%),
    var(--bg-alt);
}

/* Separador com gradiente teal → transparente */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 179, 255, 0.5), transparent);
}

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.divider-line {
  display: block;
  width: 80px;
  height: 3px;
  margin: 0 auto 1.75rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  box-shadow: var(--glow-blue);
}
.divider-line--left { margin: 0 0 1.5rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.6rem;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn--whatsapp {
  background: linear-gradient(135deg, #1DA851 0%, #137A39 100%);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.5), 0 0 22px rgba(29, 168, 81, 0.45);
}

.btn--sympla {
  background: linear-gradient(135deg, #2A78C2 0%, #123E6E 100%);
  box-shadow: inset 0 0 0 1px rgba(79, 179, 255, 0.35);
}
.btn--sympla:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: inset 0 0 0 1px rgba(79, 179, 255, 0.55), var(--glow-blue);
}

.btn--lg { font-size: 1.1rem; padding: 1.15rem 2.2rem; }

/* ============================================================
   SEÇÃO 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 9, 17, 0.96) 0%, rgba(5, 9, 17, 0.82) 45%, rgba(5, 9, 17, 0.35) 100%),
    var(--bg-alt) url('hero_banner.webp') center right / cover no-repeat;
  padding: 5rem 0 6rem;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__content { max-width: 640px; }

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  border: 1px solid rgba(79, 179, 255, 0.6);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 12px rgba(79, 179, 255, 0.12), 0 0 12px rgba(79, 179, 255, 0.2);
  background: rgba(36, 121, 199, 0.12);
}

.hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero__info {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.75rem;
  border-top: 1px solid rgba(79, 179, 255, 0.25);
  padding-top: 1.5rem;
}

.hero__info li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__info svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-bright);
  filter: drop-shadow(0 0 6px rgba(79, 179, 255, 0.6));
}

/* ============================================================
   SEÇÃO 2 — DOR
   ============================================================ */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pain__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.pain__card:hover {
  box-shadow: var(--glow-blue);
  border-left-color: var(--blue-bright);
  transform: translateY(-3px);
}

.pain__card svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--blue-bright);
  filter: drop-shadow(0 0 6px rgba(79, 179, 255, 0.5));
}

.pain__card p { font-size: 1.05rem; font-weight: 500; }

/* ============================================================
   SEÇÃO 3 — SOLUÇÃO
   ============================================================ */
.solution__inner { text-align: center; max-width: 760px; }

.solution .section__title { margin-bottom: 1.5rem; }

.solution__text {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
}

/* ============================================================
   SEÇÃO 4 — MÉTODO P.A.R.A.
   ============================================================ */
.para__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.para__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.para__card {
  background: var(--bg-card);
  border: 1px solid rgba(79, 179, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.para__card:hover {
  border-color: rgba(79, 179, 255, 0.65);
  box-shadow: var(--glow-blue);
  transform: translateY(-4px);
}

.para__letter {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--blue-bright);
  text-shadow: 0 0 18px rgba(79, 179, 255, 0.8), 0 0 40px rgba(79, 179, 255, 0.4);
  margin-bottom: 0.5rem;
}

.para__card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.35rem; }

.para__card p { font-size: 0.92rem; color: var(--text-muted); }

.para__note {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.para__figure img {
  border-radius: var(--radius);
  border: 1px solid rgba(79, 179, 255, 0.3);
  box-shadow: 0 0 30px rgba(79, 179, 255, 0.18);
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
}

/* ============================================================
   SEÇÃO 5 — O QUE VOCÊ VAI APRENDER
   ============================================================ */
.learn__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.learn__card {
  background: var(--bg-card);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.learn__card:hover {
  transform: translateY(-6px);
  border-top-color: var(--blue-bright);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), var(--glow-blue);
}

.learn__icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }

.learn__card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }

.learn__card p { font-size: 0.95rem; color: var(--text-muted); }

/* ============================================================
   SEÇÃO 6 — FERRAMENTAS
   ============================================================ */
.tools__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tools__list li {
  background: var(--bg);
  border: 1px solid var(--blue);
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  font-weight: 500;
  font-size: 1.05rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.tools__list li:hover {
  border-color: var(--blue-bright);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

/* ============================================================
   SEÇÃO 7 — SOBRE RODRIGO
   ============================================================ */
.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about__figure img {
  border-radius: var(--radius);
  border: 1px solid rgba(79, 179, 255, 0.3);
  box-shadow: 0 0 30px rgba(79, 179, 255, 0.15);
}

.about__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.about__content h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 0.35rem; }

.about__role { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.25rem; }

.about__bio { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.about__stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--blue-bright);
  text-shadow: 0 0 14px rgba(79, 179, 255, 0.5);
  line-height: 1.1;
}

.about__stat span { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   SEÇÃO 8 — PROVA SOCIAL (oculta por padrão via style inline)
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonials__card {
  background: var(--bg-card);
  border: 1px solid rgba(79, 179, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.testimonials__quote { color: var(--text-muted); margin-bottom: 1rem; }

.testimonials__author { font-weight: 700; font-size: 0.95rem; }

.testimonials__note {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1.75rem;
}

/* ============================================================
   SEÇÃO 9 — DETALHES DO EVENTO
   ============================================================ */
.details__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.details__list { list-style: none; display: grid; gap: 1.1rem; }

.details__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid rgba(79, 179, 255, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.details__list li:hover {
  border-color: rgba(79, 179, 255, 0.55);
  box-shadow: var(--glow-blue);
}

.details__list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-bright);
  filter: drop-shadow(0 0 6px rgba(79, 179, 255, 0.5));
}

.details__list span { color: var(--text-muted); }

.details__list strong { color: var(--text); font-weight: 700; }

.details__figure img {
  border-radius: var(--radius);
  border: 1px solid rgba(79, 179, 255, 0.3);
  box-shadow: 0 0 30px rgba(79, 179, 255, 0.18);
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
}

/* ============================================================
   SEÇÃO 10 — FAQ
   ============================================================ */
.faq__container { max-width: 800px; }

.faq__item {
  background: var(--bg-card);
  border: 1px solid rgba(79, 179, 255, 0.2);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq__item.open {
  border-color: rgba(79, 179, 255, 0.55);
  box-shadow: var(--glow-blue);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}

.faq__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-bright);
  transition: transform 0.3s ease;
}

.faq__item.open .faq__question svg { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
}

/* ============================================================
   SEÇÃO 11 — CTA FINAL
   ============================================================ */
.cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(36, 121, 199, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 5.5rem 0;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 179, 255, 0.5), transparent);
}

.cta__inner { text-align: center; }

.cta h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 24px rgba(79, 179, 255, 0.35);
}

.cta__text {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.cta__small { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  background: var(--bg-footer);
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.footer__logo { font-weight: 700; font-size: 1.05rem; }

.footer__logo span { font-weight: 400; color: var(--text-muted); }

.footer__copy { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.5rem; }

/* ============================================================
   BARRA FLUTUANTE MOBILE
   ============================================================ */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
}

.mobile-bar__btn {
  flex: 1 1 50%;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  padding: 1rem 0.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.mobile-bar__btn--whatsapp { background: linear-gradient(135deg, #1DA851 0%, #137A39 100%); color: #FFFFFF; }
.mobile-bar__btn--sympla { background: linear-gradient(135deg, #2A78C2 0%, #123E6E 100%); }

/* Em mobile, reserva espaço para a barra não cobrir o rodapé */
body { padding-bottom: 64px; }

/* ============================================================
   ANIMAÇÃO DE ENTRADA (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 640px) {
  .pain__grid { grid-template-columns: 1fr 1fr; }
  .learn__grid { grid-template-columns: 1fr 1fr; }
  .cta__actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 900px) {
  .section { padding: 6rem 0; }

  .learn__grid { grid-template-columns: repeat(3, 1fr); }

  .para__layout { grid-template-columns: 1.15fr 0.85fr; }

  .about__layout { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }

  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }

  .details__layout { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }

  /* Esconde a barra flutuante em telas grandes */
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ============================================================
   SEÇÃO — FORMULÁRIO DE INSCRIÇÃO
   ============================================================ */
.enroll__container { max-width: 720px; }

.enroll__sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: -1.25rem;
  margin-bottom: 2.5rem;
}

.enroll__form { display: grid; gap: 1.25rem; }

.enroll__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

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

.field > label,
.field legend { font-weight: 700; font-size: 0.95rem; color: var(--text); }

.field legend { margin-bottom: 0.5rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(79, 179, 255, 0.25);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder { color: #5d7390; }

.field input:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: var(--glow-blue);
}

fieldset.field { border: none; padding: 0; margin: 0; }

.radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-bright);
  flex-shrink: 0;
}

.enroll__form .btn { width: 100%; margin-top: 0.5rem; }

/* Validação */
.field .err { color: #ff8a8a; font-size: 0.85rem; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #ff6b6b; }
.field.invalid legend { color: #ff8a8a; }

/* Honeypot anti-spam (escondido dos humanos) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.enroll__status { text-align: center; font-weight: 500; min-height: 1.2em; color: var(--text-muted); }

.enroll__success {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(79, 179, 255, 0.3);
  border-radius: var(--radius);
  padding: 2.75rem 1.75rem;
  box-shadow: var(--glow-blue);
}

.enroll__success h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.enroll__success p { color: var(--text-muted); margin-bottom: 1.75rem; }

.enroll__success-actions { display: flex; flex-direction: column; gap: 0.85rem; }

@media (min-width: 640px) {
  .enroll__row { grid-template-columns: 1fr 1fr; }
}
