/*
Theme Name: Passe na Prova
Theme URI: https://passenaprova.com.br
Author: Passe na Prova
Description: Tema otimizado para conversão - Curso preparatório ENEM
Version: 1.0.0
Text Domain: passenaprova
*/

/* ============================================
   DESIGN SYSTEM - Cores e Variáveis
   ============================================ */

:root {
  /* Deep navy dark theme */
  --background: hsl(213, 50%, 8%);
  --foreground: hsl(210, 40%, 98%);

  --card: hsl(213, 45%, 12%);
  --card-foreground: hsl(210, 40%, 98%);

  /* Magenta primary */
  --primary: hsl(328, 85%, 51%);
  --primary-foreground: hsl(0, 0%, 100%);

  /* Purple secondary */
  --secondary: hsl(265, 50%, 46%);
  --secondary-foreground: hsl(0, 0%, 100%);

  --muted: hsl(213, 40%, 15%);
  --muted-foreground: hsl(210, 20%, 60%);

  --destructive: hsl(0, 84%, 60%);
  --success: hsl(142, 76%, 36%);

  --border: hsl(213, 40%, 20%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(328, 85%, 51%) 0%, hsl(265, 50%, 46%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(213, 50%, 6%) 0%, hsl(213, 50%, 10%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(213, 45%, 14%) 0%, hsl(213, 45%, 10%) 100%);

  --shadow-glow: 0 0 60px hsla(328, 85%, 51%, 0.3);
  --shadow-card: 0 10px 40px -10px hsla(0, 0%, 0%, 0.5);

  --radius: 0.75rem;
}

/* ============================================
   RESET E BASE
   ============================================ */

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gradient-hero);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-card {
  background: var(--gradient-card);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px hsla(328, 85%, 51%, 0.4);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.5rem 4rem;
  font-size: 1.25rem;
  height: 4rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, hsla(328, 85%, 51%, 0.15), transparent);
  pointer-events: none;
}

.hero-logo {
  height: 5rem;
  width: auto;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsla(328, 85%, 51%, 0.1);
  border: 1px solid hsla(328, 85%, 51%, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-video {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.hero-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.hero-feature svg {
  color: var(--success);
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: hsla(328, 85%, 51%, 0.5);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px hsla(328, 85%, 51%, 0.3);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
}

/* ============================================
   COMPARISON SECTION
   ============================================ */

.comparison {
  padding: 5rem 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.comparison-card {
  padding: 2rem;
  border-radius: 1rem;
}

.comparison-card.wrong {
  background: hsla(0, 84%, 60%, 0.05);
  border: 1px solid hsla(0, 84%, 60%, 0.3);
}

.comparison-card.right {
  background: hsla(142, 76%, 36%, 0.05);
  border: 1px solid hsla(142, 76%, 36%, 0.3);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.comparison-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.comparison-card.wrong .comparison-icon {
  background: hsla(0, 84%, 60%, 0.2);
  color: var(--destructive);
}

.comparison-card.right .comparison-icon {
  background: hsla(142, 76%, 36%, 0.2);
  color: var(--success);
}

.comparison-title {
  font-size: 1.5rem;
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: hsla(210, 40%, 98%, 0.8);
}

.comparison-list li svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
}

.comparison-card.wrong .comparison-list li svg {
  color: var(--destructive);
}

.comparison-card.right .comparison-list li svg {
  color: var(--success);
}

.comparison-footer {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.comparison-footer strong {
  color: var(--foreground);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  position: relative;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  color: hsla(328, 85%, 51%, 0.2);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--primary);
  color: var(--primary);
}

.testimonial-content {
  color: hsla(210, 40%, 98%, 0.8);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: 700;
  color: white;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-course {
  font-size: 0.875rem;
  color: var(--primary);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
  position: relative;
  padding: 5rem 0;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(328, 85%, 51%, 0.05), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.pricing-card {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--gradient-card);
  border: 1px solid hsla(328, 85%, 51%, 0.3);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: -2.5rem;
  transform: rotate(45deg);
  padding: 0.25rem 3rem;
  background: var(--gradient-primary);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-original {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.pricing-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-currency {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.pricing-amount {
  font-size: 4rem;
  font-weight: 700;
}

.pricing-cents {
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-installments {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pricing-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: hsla(142, 76%, 36%, 0.2);
  border-radius: 50%;
}

.pricing-feature-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--success);
}

.pricing-cta {
  width: 100%;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-guarantee svg {
  width: 1rem;
  height: 1rem;
  color: var(--success);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.trust-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta {
  position: relative;
  padding: 5rem 0;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(328, 85%, 51%, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(265, 50%, 46%, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.final-cta-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.final-cta-price {
  margin-bottom: 2rem;
}

.final-cta-original {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.final-cta-value {
  font-size: 3rem;
  font-weight: 700;
}

.final-cta-installments {
  color: var(--muted-foreground);
}

.final-cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--muted-foreground);
}

.final-cta-guarantee svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 3rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  height: 4rem;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-description {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .pricing-amount {
    font-size: 3rem;
  }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
