/* ===================================
   APRENDA COBOL - NOVO SITE MODERNO
   Design Premium & Mobile-First
=================================== */

/* -------- CSS RESET & VARIABLES -------- */
:root {
  /* Cores principais */
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --primary-light: #8B84FF;
  --secondary: #00D084;
  --secondary-dark: #00B870;
  --accent: #FF6B35;
  --accent-dark: #E55A28;
  
  /* Cores de fundo */
  --bg-dark: #0B0B1E;
  --bg-darker: #050510;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-gradient: linear-gradient(135deg, #0B0B1E 0%, #1A1A3E 50%, #0B0B1E 100%);
  
  /* Cores de texto */
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8D0;
  --text-muted: #6B6B8A;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF8C5A 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  
  /* Sombras */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
  --shadow-glow-green: 0 0 40px rgba(0, 208, 132, 0.3);
  
  /* Tipografia */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Sora', 'Inter', sans-serif;
  
  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------- UTILITY CLASSES -------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent);
}

.text-green {
  color: var(--secondary);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-primary);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

/* Animação de pulso para CTAs */
.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(108, 99, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}

/* -------- HEADER / NAVIGATION -------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  background: rgba(11, 11, 30, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 11, 30, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* -------- HERO SECTION -------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 1.25rem;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-image {
  margin: var(--spacing-lg) auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

@media (min-width: 576px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------- FEATURES / PARA QUEM -------- */
.features {
  background: var(--bg-gradient);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-5px);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
}

.feature-content h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.feature-content p {
  font-size: 0.95rem;
  margin: 0;
}

/* -------- WHY COBOL SECTION -------- */
.why-cobol {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

/* -------- BENEFITS SECTION -------- */
.benefits {
  background: var(--bg-gradient);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 2rem;
}

.benefit-card h4 {
  margin-bottom: var(--spacing-xs);
}

/* -------- MODULES SECTION -------- */
.modules {
  background: var(--bg-darker);
  position: relative;
}

.modules::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module-card {
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 208, 132, 0.05) 100%);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.module-card:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.module-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  font-size: 1.75rem;
}

.module-card h4 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-sm);
}

/* -------- TESTIMONIALS -------- */
.testimonials {
  background: var(--bg-gradient);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.testimonial-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* -------- INSTRUCTOR SECTION -------- */
.instructor {
  background: var(--bg-dark);
}

.instructor-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .instructor-content {
    grid-template-columns: 1fr 2fr;
  }
}

.instructor-image {
  text-align: center;
}

.instructor-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.instructor-name {
  margin-top: var(--spacing-md);
}

.instructor-name img {
  max-width: 200px;
  height: auto;
}

.instructor-info h3 {
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
}

.instructor-info p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* -------- FAQ SECTION -------- */
.faq {
  background: var(--bg-gradient);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* -------- PRICING SECTION -------- */
.pricing {
  background: var(--bg-darker);
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(0, 208, 132, 0.1) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.pricing-old {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: var(--spacing-xs);
}

.pricing-current {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.pricing-features {
  list-style: none;
  margin: var(--spacing-lg) 0;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--secondary);
  font-size: 1.25rem;
}

.guarantee {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(0, 208, 132, 0.1);
  border: 1px solid rgba(0, 208, 132, 0.3);
  border-radius: var(--radius-md);
  text-align: left;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.guarantee-icon img {
  width: 100%;
  height: auto;
}

.guarantee-text h5 {
  color: var(--secondary);
  margin-bottom: var(--spacing-xs);
}

.guarantee-text p {
  font-size: 0.875rem;
  margin: 0;
}

/* -------- FOOTER -------- */
.footer {
  background: var(--bg-darker);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--spacing-md);
}

/* -------- SCROLL ANIMATIONS -------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* -------- MOBILE MENU -------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* -------- RESPONSIVE ADJUSTMENTS -------- */
@media (max-width: 576px) {
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
  }
  
  .pricing-card {
    padding: var(--spacing-lg);
  }
}

/* -------- FLOATING CTA (Mobile) -------- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm);
  background: rgba(11, 11, 30, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(108, 99, 255, 0.3);
  z-index: 999;
}

.floating-cta .btn {
  width: 100%;
}

@media (max-width: 767px) {
  .floating-cta {
    display: block;
  }
  
  .footer {
    padding-bottom: 100px;
  }
}

/* -------- DECORATIVE ELEMENTS -------- */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  filter: blur(80px);
  pointer-events: none;
}

.decoration-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -10%;
}

.decoration-2 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: -5%;
  background: var(--secondary);
}

/* -------- WAVE DIVIDERS -------- */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top {
  top: 0;
  transform: rotate(180deg);
}

.wave-bottom {
  bottom: 0;
}

.wave-top svg,
.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-top svg path,
.wave-bottom svg path {
  fill: var(--bg-dark);
}

/* -------- SPECIAL EFFECTS -------- */
.glow-text {
  text-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
