:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.85);
  --text: #0f172a;
  --muted: #475569;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --border: rgba(15, 23, 42, 0.09);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Background Orbs */
.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}
.orb-1 {
  width: 420px;
  height: 420px;
  background: #14b8a6;
  top: -120px;
  left: -100px;
}
.orb-2 {
  width: 460px;
  height: 460px;
  background: #38bdf8;
  bottom: 10%;
  right: -140px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
}

.brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

.topbar-actions {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; padding: 14px 20px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.28);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  padding: 58px 0 42px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.05rem);
  margin-bottom: 18px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 26px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-trust {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-trust li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  margin-right: 8px;
}

/* 3D Flashcard Demo */
.hero-demo {
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.flashcard-stage {
  perspective: 1200px;
}

.flashcard-3d {
  position: relative;
  min-height: 325px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
}

.flashcard-3d.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(155deg, #ffffff, #f0fdfa);
  color: #0f172a;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border: 1.5px solid rgba(13, 148, 136, 0.24);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.card-face > *:not(.swipe-tint) {
  position: relative;
  z-index: 1;
}

.swipe-tint {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, #f0fdfa, #e0f2fe);
  border-color: rgba(14, 165, 233, 0.3);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tag-teal { background: rgba(13, 148, 136, 0.14); color: #0f766e; }
.tag-amber { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.tag-blue { background: rgba(14, 165, 233, 0.14); color: #0369a1; }

.card-front h2 {
  font-size: 1.15rem;
  line-height: 1.45;
  color: #0f172a;
  text-align: center;
}

.card-answer {
  font-size: 0.96rem;
  line-height: 1.5;
  color: #0f172a;
  text-align: center;
}

.tip-box {
  width: 100%;
  background: rgba(245, 158, 11, 0.12);
  border-top: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #78350f;
  text-align: center;
}

.card-hint {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.swipe-hints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 0 4px;
}

.swipe-hint-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  padding: 6px 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.swipe-hint-action:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}
.swipe-hint-action.left {
  color: #ef4444;
}
.swipe-hint-action.right {
  color: #10b981;
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 38px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
}

.features {
  padding: 54px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.glass-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

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

/* Axes - Modo Claro */
.axes-section {
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
  color: var(--text);
  padding: 68px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.axes-section .section-head p { color: var(--muted); }
.axes-section .eyebrow { color: var(--primary); }

.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.axis-card {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.axis-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.axis-card h3 {
  margin: 8px 0;
  font-size: 1.08rem;
  color: var(--text);
}

.axis-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Simulado */
.simulado-section {
  padding: 68px 0;
}

.quiz-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.quiz-q {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-opt {
  text-align: left;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover:not(:disabled) {
  border-color: var(--primary);
  background: #f0fdfa;
}
.quiz-opt.correct {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
  font-weight: 700;
}
.quiz-opt.wrong {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

.quiz-explain {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f0fdfa;
  border-left: 4px solid var(--primary);
  font-size: 0.92rem;
}

.quiz-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* Pricing */
.pricing-section {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), rgba(14, 165, 233, 0.06));
  padding: 70px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 22px 50px rgba(13, 148, 136, 0.18);
  position: relative;
}

.price-tag {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.price-tag.hot {
  background: rgba(13, 148, 136, 0.14);
  color: var(--primary-dark);
}

.price-desc {
  color: var(--muted);
  font-size: 0.92rem;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 6px 0;
}
.price-value .currency { font-weight: 800; font-size: 1.2rem; }
.price-value .amount { font-weight: 800; font-size: 2.8rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.price-value .period { color: var(--muted); font-size: 0.9rem; margin-left: 4px; }

.price-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.93rem;
}
.price-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  margin-right: 8px;
}

.guarantee-note {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq-section {
  padding: 64px 0;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-item.open .faq-a { display: block; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  display: grid;
  gap: 14px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}
.modal-tip {
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.88rem;
}
.modal-tip ul {
  margin: 8px 0 0 18px;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .axes-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .feature-grid, .axes-grid, .pricing-grid { grid-template-columns: 1fr; }
  .topbar-actions .btn-ghost { display: none; }
}
