/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  --sky-blue: #5AB6D9;
  --sky-blue-dark: #3A97BF;
  --sky-blue-light: #87CEEA;
  --green: #4CAF50;
  --green-dark: #388E3C;
  --green-light: #81C784;
  --navy: #1A3A5C;
  --black: #0D0D0D;
  --white: #FFFFFF;

  /* Light Mode */
  --bg-primary: #F4F9FF;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #EEF7FF;
  --text-primary: #0D1B2A;
  --text-secondary: #4A6078;
  --text-muted: #8AA5BE;
  --border: rgba(90, 182, 217, 0.2);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --hero-gradient: linear-gradient(135deg, #E8F6FC 0%, #F0FAF4 50%, #E8F6FC 100%);
  --section-alt: #F0F9FF;
  --navbar-bg: rgba(244, 249, 255, 0.95);
}

[data-theme="dark"] {
  --bg-primary: #0A1628;
  --bg-secondary: #0F1E35;
  --bg-card: #142040;
  --bg-card-hover: #1A2E52;
  --text-primary: #E8F4FD;
  --text-secondary: #9BBDD4;
  --text-muted: #5A7A9A;
  --border: rgba(90, 182, 217, 0.15);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --hero-gradient: linear-gradient(135deg, #0A1628 0%, #0D1E35 50%, #0A1628 100%);
  --section-alt: #0C1A30;
  --navbar-bg: rgba(10, 22, 40, 0.95);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.brand-icon { font-size: 1.4rem; }
.brand-text strong { color: var(--sky-blue); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  width: 44px; height: 44px;
  border: 2px solid var(--border); background: var(--bg-card);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.theme-toggle:hover { border-color: var(--sky-blue); transform: scale(1.1); }
.sun-icon, .moon-icon { position: absolute; transition: all 0.4s ease; }
[data-theme="light"] .moon-icon { opacity: 0; transform: scale(0) rotate(90deg); }
[data-theme="light"] .sun-icon  { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="dark"]  .sun-icon  { opacity: 0; transform: scale(0) rotate(-90deg); }
[data-theme="dark"]  .moon-icon { opacity: 1; transform: scale(1) rotate(0deg); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--sky-blue), var(--sky-blue-dark));
  color: white; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 182, 217, 0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(90, 182, 217, 0.4); }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative; min-height: 100vh;
  background: var(--hero-gradient);
  padding: 120px 0 80px; overflow: hidden;
}
[data-theme="dark"] .hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(90,182,217,0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 30%, rgba(76,175,80,0.06) 0%, transparent 60%);
}
.hero-bg-animation { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floating-emoji {
  position: absolute; left: var(--x); top: var(--y);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay); opacity: 0.15; filter: blur(0.5px);
}
[data-theme="dark"] .floating-emoji { opacity: 0.08; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(90,182,217,0.15), rgba(76,175,80,0.15));
  border: 1px solid rgba(90,182,217,0.3);
  color: var(--sky-blue-dark); padding: 6px 16px;
  border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
[data-theme="dark"] .hero-badge { color: var(--sky-blue-light); }
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px; color: var(--text-primary);
}
.highlight-strike {
  position: relative; font-style: normal; color: var(--text-muted);
  text-decoration: line-through; text-decoration-color: #ef4444; text-decoration-thickness: 3px;
}
.green-text { color: var(--green); font-style: italic; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(76, 175, 80, 0.5); }
.btn-primary.btn-xl { padding: 18px 32px; font-size: 1.1rem; border-radius: 14px; width: 100%; justify-content: center; }
.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 16px 24px; background: var(--bg-card); color: var(--text-primary);
  border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--border); transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--sky-blue); color: var(--sky-blue); transform: translateY(-2px); }
.hero-social-proof { display: flex; align-items: center; gap: 14px; }
.proof-avatars { display: flex; }
.proof-avatars img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg-secondary); margin-left: -10px; object-fit: cover; }
.proof-avatars img:first-child { margin-left: 0; }
.hero-social-proof p { font-size: 0.85rem; color: var(--text-secondary); }

/* 3D Book */
.hero-book { display: flex; justify-content: center; align-items: center; }
.book-3d {
  position: relative; width: 280px;
  transform-style: preserve-3d;
  animation: bookFloat 4s ease-in-out infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotateY(-8deg) rotateZ(1deg); }
  50% { transform: translateY(-15px) rotateY(-5deg) rotateZ(1deg); }
}
.book-cover {
  width: 100%; border-radius: 8px;
  box-shadow: 8px 8px 0 var(--sky-blue-dark), 20px 20px 60px rgba(0,0,0,0.3);
  position: relative; z-index: 2;
}
.book-spine {
  position: absolute; top: 2%; right: -8px;
  width: 8px; height: 96%;
  background: var(--sky-blue-dark); transform: skewY(-2deg);
  border-radius: 0 4px 4px 0;
}
.book-glow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 30px;
  background: radial-gradient(ellipse, rgba(76,175,80,0.4), transparent);
  filter: blur(10px);
}
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* ===========================
   SECTION SHARED STYLES
   =========================== */
section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky-blue); background: rgba(90,182,217,0.1);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 12px;
}
[data-theme="dark"] .section-label { color: var(--sky-blue-light); background: rgba(90,182,217,0.12); }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 550px; margin: 0 auto; }

/* ===========================
   PROBLEMA SECTION
   =========================== */
.problema { background: var(--bg-secondary); }
.problema-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 50px; }
.problema-card {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.problema-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--sky-blue), var(--green));
  border-radius: 4px 0 0 4px;
}
.problema-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky-blue); background: var(--bg-card-hover); }
.problema-icon { font-size: 2.2rem; margin-bottom: 14px; }
.problema-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.problema-card p { font-size: 0.95rem; color: var(--text-secondary); }
.problema-quote {
  background: linear-gradient(135deg, var(--sky-blue), var(--navy));
  border-radius: 16px; padding: 40px; text-align: center;
  position: relative; overflow: hidden;
}
.problema-quote::before {
  content: '"'; position: absolute; top: -20px; left: 20px;
  font-size: 15rem; font-family: Georgia, serif;
  color: rgba(255,255,255,0.05); line-height: 1;
}
.problema-quote blockquote {
  font-size: clamp(1rem, 2vw, 1.3rem); font-style: italic;
  color: white; line-height: 1.7; margin-bottom: 16px; position: relative; z-index: 1;
}
.problema-quote cite { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-style: normal; }

/* ===========================
   SOLUCAO SECTION
   =========================== */
.solucao { background: var(--bg-primary); }
.chapters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.chapter-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; transition: all 0.3s ease;
}
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-blue); }
.chapter-num {
  min-width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--sky-blue), var(--sky-blue-dark));
  color: white; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.chapter-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.chapter-body p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* ===========================
   PREVIEW / TOPICS SECTION
   =========================== */
.preview-section { background: var(--section-alt); }

/* Summary block */
.preview-summary {
  display: flex; align-items: flex-start; gap: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 40px;
  margin-bottom: 48px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.preview-summary::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--sky-blue), var(--green), var(--sky-blue));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.summary-icon { font-size: 3rem; flex-shrink: 0; line-height: 1; margin-top: 4px; }
.summary-text h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.summary-text p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }
.summary-text strong { color: var(--sky-blue); }
[data-theme="dark"] .summary-text strong { color: var(--sky-blue-light); }

/* Topic cards grid */
.preview-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.topic-card {
  background: var(--bg-card); border-radius: 16px; padding: 24px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.topic-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0.06; transition: opacity 0.3s ease; border-radius: 16px;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.topic-card:hover::before { opacity: 0.12; }

/* Color variants */
.topic-blue   { border-left: 4px solid #5AB6D9; }
.topic-green  { border-left: 4px solid #4CAF50; }
.topic-purple { border-left: 4px solid #9C6FDE; }
.topic-orange { border-left: 4px solid #F97316; }
.topic-teal   { border-left: 4px solid #14B8A6; }
.topic-red    { border-left: 4px solid #EF4444; }

.topic-blue::before   { background: #5AB6D9; }
.topic-green::before  { background: #4CAF50; }
.topic-purple::before { background: #9C6FDE; }
.topic-orange::before { background: #F97316; }
.topic-teal::before   { background: #14B8A6; }
.topic-red::before    { background: #EF4444; }

.topic-blue:hover   { border-color: #5AB6D9; box-shadow: 0 12px 40px rgba(90,182,217,0.2); }
.topic-green:hover  { border-color: #4CAF50; box-shadow: 0 12px 40px rgba(76,175,80,0.2); }
.topic-purple:hover { border-color: #9C6FDE; box-shadow: 0 12px 40px rgba(156,111,222,0.2); }
.topic-orange:hover { border-color: #F97316; box-shadow: 0 12px 40px rgba(249,115,22,0.2); }
.topic-teal:hover   { border-color: #14B8A6; box-shadow: 0 12px 40px rgba(20,184,166,0.2); }
.topic-red:hover    { border-color: #EF4444; box-shadow: 0 12px 40px rgba(239,68,68,0.2); }

.topic-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.topic-blue  .topic-tag { background: rgba(90,182,217,0.15);  color: #5AB6D9; }
.topic-green .topic-tag { background: rgba(76,175,80,0.15);   color: #4CAF50; }
.topic-purple .topic-tag{ background: rgba(156,111,222,0.15); color: #9C6FDE; }
.topic-orange .topic-tag{ background: rgba(249,115,22,0.15);  color: #F97316; }
.topic-teal  .topic-tag { background: rgba(20,184,166,0.15);  color: #14B8A6; }
.topic-red   .topic-tag { background: rgba(239,68,68,0.15);   color: #EF4444; }

.topic-card h4 { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; line-height: 1.3; }

.topic-items { display: flex; flex-direction: column; gap: 8px; }
.topic-items li {
  font-size: 0.875rem; color: var(--text-secondary);
  padding-left: 18px; position: relative; line-height: 1.5;
}
.topic-items li::before {
  content: '▸'; position: absolute; left: 0;
  font-size: 0.75rem; color: var(--text-muted);
}

/* ===========================
   BENEFÍCIOS SECTION
   =========================== */
.beneficios { background: var(--bg-secondary); }
.beneficios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.beneficios-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 30px; }
.benefits-list { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.benefit-item strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.benefit-item p { font-size: 0.9rem; color: var(--text-secondary); }

.beneficios-mockup { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mockup-phone {
  width: 220px; background: var(--bg-primary);
  border-radius: 36px; padding: 16px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(90,182,217,0.05);
}
.mockup-phone::before {
  content: ''; display: block; width: 80px; height: 6px;
  background: var(--border); border-radius: 3px; margin: 0 auto 12px;
}
.phone-screen { border-radius: 24px; overflow: hidden; aspect-ratio: 9/16; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.mockup-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 20px;
  box-shadow: var(--shadow); font-size: 1.8rem;
}
.mockup-badge strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.mockup-badge small { font-size: 0.8rem; color: var(--text-secondary); }

/* ===========================
   DEPOIMENTOS SECTION
   =========================== */
.depoimentos { background: var(--bg-primary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky-blue); }
.stars { font-size: 1rem; margin-bottom: 14px; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text-secondary); font-style: italic; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testimonial-author strong { display: block; font-size: 0.9rem; font-weight: 700; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   FAQ SECTION
   =========================== */
.faq { background: var(--bg-secondary); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: border-color 0.3s ease;
}
.faq-item.open { border-color: var(--sky-blue); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  text-align: left; gap: 16px; font-family: 'Inter', sans-serif; transition: color 0.3s ease;
}
.faq-question:hover { color: var(--sky-blue); }
.faq-icon { font-size: 1.5rem; color: var(--sky-blue); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ===========================
   CTA FINAL SECTION
   =========================== */
.cta-final { background: var(--bg-primary); padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1A5276 100%);
  border-radius: 28px; padding: 60px 48px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center; overflow: hidden; position: relative;
  box-shadow: 0 30px 80px rgba(26, 58, 92, 0.4);
}
[data-theme="dark"] .cta-card {
  background: linear-gradient(135deg, #0A2540 0%, #0F3460 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cta-card::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(90,182,217,0.15), transparent 60%);
  pointer-events: none;
}
.cta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.05em; margin-bottom: 16px;
}
.cta-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: white; margin-bottom: 14px; line-height: 1.2; }
.cta-content h2 em { color: var(--green-light); font-style: italic; }
.cta-content > p { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; }

/* Price Table */
.price-table {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.price-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.price-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 4px 0;
}
.price-row-highlight .price-label {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 1rem;
}
.price-old {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
}
.price-new {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-light);
  letter-spacing: -0.02em;
}
.price-savings {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: var(--green-light);
  font-weight: 600;
  text-align: center;
}
.cta-guarantee {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 24px;
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.cta-guarantee span { font-size: 1.2rem; }
.cta-payment-info {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.cta-book { position: relative; width: 260px; flex-shrink: 0; }
.cta-book img {
  width: 100%; border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 8px 8px 0 rgba(90,182,217,0.4);
  transform: rotateY(-8deg) rotateZ(1deg); transition: transform 0.5s ease;
}
.cta-book:hover img { transform: rotateY(-2deg) rotateZ(0deg) scale(1.02); }
.cta-book-shine {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: 10px; pointer-events: none;
}

/* ===========================
   FOOTER
   =========================== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-content { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.footer-brand .brand-icon { font-size: 1.4rem; }
.footer-brand strong { color: var(--sky-blue); }
.footer-desc { font-size: 0.95rem; color: var(--text-secondary); max-width: 480px; margin: 0 auto 24px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.footer-links a {
  padding: 8px 18px; border-radius: 100px; font-size: 0.9rem;
  color: var(--text-secondary); border: 1px solid var(--border); transition: all 0.3s ease;
}
.footer-links a:hover { border-color: var(--sky-blue); color: var(--sky-blue); background: rgba(90,182,217,0.08); }
.footer-legal { font-size: 0.8rem; color: var(--text-muted); }

/* ===========================
   BACK TO TOP
   =========================== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--sky-blue), var(--sky-blue-dark));
  color: white; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(90, 182, 217, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0; visibility: hidden; transform: translateY(20px); z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 28px rgba(90, 182, 217, 0.5); }

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta-group { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-content { order: 1; }
  .hero-book { order: 2; }
  .book-3d { width: 220px; }
  .beneficios-grid { grid-template-columns: 1fr; }
  .beneficios-mockup { flex-direction: row; align-items: center; }
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-book { width: 200px; margin: 0 auto; }
  .price-row { flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 900px) {
  .preview-topics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav-container { padding: 0 12px; gap: 8px; }
  
  /* Corrige o header para evitar aperto com botão Hotmart no mobile */
  .nav-brand { font-size: 0.9rem; gap: 6px; }
  .brand-icon { font-size: 1.1rem; }
  .nav-actions { gap: 10px; }
  .theme-toggle { width: 34px; height: 34px; flex-shrink: 0; font-size: 1rem; }
  
  #nav-buy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important; /* Impede que quebre 'Comprar' e 'Ebook' em 2 linhas */
    height: 34px !important;
    border-radius: 6px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }
  .hero { padding: 100px 0 60px; }
  .hero-container { gap: 32px; }
  .hero-title { font-size: 1.9rem; }
  .problema-grid { grid-template-columns: 1fr; }
  .chapters-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
  .beneficios-mockup { flex-direction: column; }
  .preview-summary { flex-direction: column; padding: 28px 24px; }
}

@media (max-width: 600px) {
  .preview-topics { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .book-3d { width: 200px; }
  
  /* Ajuste ultra-fino para telas muito pequenas como iPhone SE */
  .nav-brand { font-size: 0.85rem; }
  .nav-actions { gap: 6px; }
  .theme-toggle { width: 30px; height: 30px; font-size: 0.9rem; }
  #nav-buy-btn { font-size: 0.75rem !important; padding: 4px 10px !important; height: 30px !important; }
}
