/* ==========================================================================
   Design System Black & Warm Orange • Dr. Ney Robson / IOC Cursos
   ========================================================================== */

:root {
  --bg-primary: #09070B;
  --bg-surface: #110706;
  --bg-card: #140A09;
  --bg-card-hover: #1E0F0D;
  --border-subtle: #2C1410;
  --border-active: #4A1C14;
  
  --color-orange: #E83D01;
  --color-orange-dark: #5F1502;
  --color-orange-hover: #FF4E12;
  --color-orange-accessible: #FF5E24;
  --color-orange-light: rgba(232, 61, 1, 0.15);
  
  /* Aliases para compatibilidade */
  --color-red: var(--color-orange);
  --color-red-hover: var(--color-orange-hover);
  --color-red-accessible: var(--color-orange-accessible);
  --color-red-light: var(--color-orange-light);
  
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5D;
  
  --text-main: #FFFFFF;
  --text-muted: #B3ABA9;
  --text-dim: #8F8482;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% -20%, rgba(95, 21, 2, 0.35) 0%, #110706 35%, #09070B 80%);
  background-attachment: fixed;
}

/* Tipografia */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-red, .badge-orange {
  background: var(--color-orange-light);
  color: var(--color-orange-accessible);
  border: 1px solid rgba(232, 61, 1, 0.4);
}

.badge-green {
  background: rgba(37, 211, 102, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 10px var(--color-orange);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: linear-gradient(135deg, #E83D01 0%, #BA3000 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px -10px rgba(232, 61, 1, 0.7), 0 0 20px -5px rgba(95, 21, 2, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -8px rgba(232, 61, 1, 0.9), 0 0 25px -4px rgba(95, 21, 2, 0.8);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #072711;
  font-weight: 800;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #072711;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

/* Header & Pill Bar */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(17, 7, 6, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 61, 1, 0.2);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px rgba(9, 7, 11, 0.85);
}

.pill-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.pill-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.pill-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.pill-links a:hover {
  color: #FFFFFF;
}

.pill-cta {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin: 20px 0 16px;
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--color-orange);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-pill-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #D4D4D4;
}

.hero-pricing-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(9, 7, 11, 0.95), 0 0 40px -15px rgba(95, 21, 2, 0.4);
}

.hero-pricing-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

.hero-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.hero-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-orange);
}

.hero-price-display {
  margin: 20px 0;
}

.price-old {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--text-dim);
}

.price-main {
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-main small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-pix-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 6px;
}

/* Sections */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-top: 12px;
}

/* Grade Curricular */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.curriculum-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-smooth);
}

.curriculum-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.curriculum-module-tag {
  color: var(--color-orange-accessible);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.curriculum-card h3 {
  font-size: 1.25rem;
  margin: 10px 0 14px;
}

.curriculum-card ul {
  list-style: none;
}

.curriculum-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.curriculum-card li::before {
  content: '✓';
  color: var(--color-orange-accessible);
  font-weight: 900;
}

/* Autoridade / Sobre */
.authority-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.authority-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232, 61, 1, 0.3);
  box-shadow: 0 25px 60px -15px rgba(95, 21, 2, 0.65), 0 0 35px -8px rgba(232, 61, 1, 0.3);
  background: #110706;
}

.authority-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.authority-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-orange);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Escassez / Urgência */
.urgency-card {
  background: linear-gradient(180deg, #1C0907 0%, #110706 60%, #09070B 100%);
  border: 1px solid rgba(232, 61, 1, 0.4);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: 0 20px 60px -10px rgba(95, 21, 2, 0.7), 0 0 40px -15px rgba(232, 61, 1, 0.3);
}

.progress-bar-wrap {
  width: 100%;
  max-width: 500px;
  height: 14px;
  background: #23110E;
  border-radius: var(--radius-full);
  margin: 24px auto;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5F1502, #E83D01);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* FAQ */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item:hover,
.faq-item.active {
  border-color: rgba(232, 61, 1, 0.4);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-inner p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-icon {
  font-size: 1.3rem;
  line-height: 1;
  display: inline-block;
  color: var(--text-dim);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-orange-accessible);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  background: #09070B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 54px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-copy {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsividade & Otimização Mobile */
@media (max-width: 900px) {
  .hero-grid, .authority-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .pill-links {
    display: none;
  }
  .authority-img-wrap {
    text-align: center;
  }
  .authority-img-wrap img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 110px 0 50px;
  }
  .hero-content h1 {
    font-size: 2.05rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero-highlights {
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-pill-info {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
  .hero-pricing-box {
    padding: 24px 20px;
  }
  .price-main {
    font-size: 2.3rem;
  }
  .authority-content h2,
  .urgency-card h2,
  .section-header h2 {
    font-size: 1.85rem !important;
    line-height: 1.25;
  }
  .authority-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .urgency-card {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 95px 0 40px;
  }
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-content div[style*="display: flex"] {
    flex-direction: column;
  }
  .hero-content .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }
  .price-main {
    font-size: 2.1rem;
  }
  .curriculum-card {
    padding: 22px 18px;
  }
  .authority-stats {
    grid-template-columns: 1fr;
  }
  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .modal-close-btn {
    width: 44px;
    height: 44px;
  }
}

