/* ============================================================
   Ghoscode Landing Page — Style
   ============================================================ */

:root {
  --bg-primary:    #030308;
  --bg-secondary:  #0a0a14;
  --bg-card:       #121223;
  --bg-editor:     #0d0d1b;
  --accent:        #9333ea;
  --accent-hover:  #a855f7;
  --accent-glow:   rgba(147, 51, 234, 0.3);
  --cyan:          #06b6d4;
  --cyan-glow:     rgba(6, 182, 212, 0.3);
  --ghost-color:   #4a4a6a;
  --ghost-bright:  #666680;
  --text-primary:  #f8fafc;
  --text-secondary:#cbd5e1;
  --text-muted:    #64748b;
  --border:        rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --success:       #10b981;
  --warning:       #f59e0b;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 32px var(--accent-glow);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--text-secondary); }

code, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  text-wrap: balance;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 3, 8, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-bottom 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: screen; /* fundo preto vira transparente */
}

/* ── Hero logo ── */
.hero-logo {
  margin-bottom: 24px;
}
.hero-logo img {
  height: 140px;
  width: auto;
  margin: 0 auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 32px rgba(139,92,246,0.35));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 8px 20px; font-size: 0.9rem; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lang-toggle a {
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.lang-toggle a.active {
  color: var(--accent);
  background: var(--accent-glow);
}
.lang-toggle a:hover:not(.active) { color: var(--text-secondary); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all 0.3s; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding-top: 128px;
  padding-bottom: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  background: var(--bg-secondary);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.proof-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Ghost Demo ── */
.ghost-demo-wrapper {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: left;
}
.ghost-demo-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ghost-demo-label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.ghost-editor {
  background: var(--bg-editor);
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(139,92,246,0.1);
  position: relative;
}
.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #252526;
  border-bottom: 1px solid #333;
}
.editor-dot { width: 12px; height: 12px; border-radius: 50%; }
.editor-dot.red   { background: #ff5f56; }
.editor-dot.yellow{ background: #ffbd2e; }
.editor-dot.green { background: #27c93f; }
.editor-filename {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #999;
  font-family: 'JetBrains Mono', monospace;
}
.editor-body {
  display: flex;
  padding: 16px 0;
  min-height: 140px;
  cursor: text;
  position: relative;
}
.editor-gutter {
  padding: 0 16px;
  min-width: 48px;
  text-align: right;
  user-select: none;
}
.editor-gutter span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}
.editor-code {
  flex: 1;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  outline: none;
  white-space: pre;
  overflow: hidden;
  position: relative;
}
.ghost-char {
  color: var(--ghost-bright);
  transition: opacity 0.3s ease, color 0.3s ease;
}
.ghost-char.fading {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.typed-char { color: #ce9178; }
.typed-char.keyword { color: #569cd6; }
.typed-char.fn-name { color: #dcdcaa; }
.typed-char.param   { color: #9cdcfe; }
.typed-char.number  { color: #b5cea8; }
.typed-char.string  { color: #ce9178; }
.typed-char.operator{ color: #d4d4d4; }
.cursor-demo {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.editor-hint {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.editor-hint kbd {
  padding: 2px 6px;
  background: #333;
  border-radius: 4px;
  border: 1px solid #555;
  font-family: inherit;
  font-size: 0.7rem;
}
.demo-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.demo-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.2s ease;
  width: 0%;
}
.demo-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}
.demo-complete {
  display: none;
  text-align: center;
  padding: 16px;
  background: rgba(16,185,129,0.1);
  border-top: 1px solid rgba(16,185,129,0.2);
}
.demo-complete.visible { display: block; }
.demo-complete p {
  color: var(--success);
  font-weight: 600;
  margin-bottom: 8px;
}
.demo-complete small {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.demo-reset {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}
.demo-reset button {
  color: var(--accent);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

/* Hidden input for mobile */
#ghost-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  top: 0; left: 0;
  width: 1px; height: 1px;
}

/* ================================================================
   PROBLEM
   ================================================================ */
.problem { background: var(--bg-secondary); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.problem-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.problem-card:hover::before { opacity: 1; }
.problem-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.problem-card h3 { margin-bottom: 8px; font-size: 1rem; }
.problem-cta {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
}
.problem-cta h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.problem-cta p { margin-bottom: 0; }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border), var(--accent));
  opacity: 0.4;
}
.step { text-align: center; }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 8px; }

/* ================================================================
   VIDEO
   ================================================================ */
.video-section { background: var(--bg-secondary); }
.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow);
  position: relative;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-editor) 0%, var(--bg-card) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.video-placeholder video.loaded { display: block; }
.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 0 8px var(--accent-glow);
}
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { width: 28px; height: 28px; color: #fff; margin-left: 4px; }
.video-caption { color: var(--text-muted); font-size: 0.9rem; }
.video-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,0.7);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  backdrop-filter: blur(4px);
}

/* ================================================================
   DIFERENTIALS
   ================================================================ */
.diffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.diff-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.diff-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.diff-card h3 { margin-bottom: 8px; }


/* ================================================================
   CURRICULUM
   ================================================================ */
.curriculum { background: var(--bg-secondary); }
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.pill {
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--text-primary); }
.pill.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-dot.python   { background: #3776ab; }
.pill-dot.js       { background: #f7df1e; }
.pill-dot.ts       { background: #3178c6; }
.pill-dot.c        { background: #a8b9cc; }
.pill-dot.java     { background: #f89820; }
.pill-dot.en       { background: #22d3ee; }
.pill-dot.ptg      { background: #009c3b; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.project-card {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--border-bright); }
.project-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 8px;
}
.project-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.project-lang {
  font-size: 0.75rem;
  color: var(--accent);
}
.curriculum-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================================================================
   Professor Ghos
   ================================================================ */
.professor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.professor-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-style: italic;
}
.professor-desc {
  margin-bottom: 32px;
  font-size: 1rem;
}
.professor-layers { display: flex; flex-direction: column; gap: 16px; }
.layer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.layer-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: 2px;
}
.layer-badge.macro { background: rgba(139,92,246,0.2); color: var(--accent); }
.layer-badge.meso  { background: rgba(34,211,238,0.2); color: var(--cyan); }
.layer-badge.micro { background: rgba(16,185,129,0.2); color: var(--success); }
.layer-text h4 { font-size: 0.9rem; margin-bottom: 2px; }
.layer-text p  { font-size: 0.85rem; }

/* Professor Panel visual */
.professor-panel {
  background: #252526;
  border-radius: var(--radius);
  border: 1px solid #444;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-header {
  padding: 12px 16px;
  background: #2d2d2d;
  border-bottom: 1px solid #444;
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-header svg { width: 16px; height: 16px; color: var(--accent); }
.panel-body { padding: 20px; }
.panel-concept {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: monospace;
}
.panel-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #444;
}
.panel-tab {
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.panel-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.panel-explanation {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 16px;
}
.panel-analogy {
  background: rgba(139,92,246,0.1);
  border-left: 3px solid var(--accent);
  padding: 12px;
  font-size: 0.8rem;
  color: #aaa;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
}
.panel-chat {
  display: flex;
  gap: 8px;
}
.panel-chat input {
  flex: 1;
  padding: 8px 12px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #ccc;
  outline: none;
}
.panel-chat button {
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing { background: var(--bg-secondary); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-accent);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-plan { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-price .amount { font-size: 2.5rem; font-weight: 700; }
.pricing-price .period { color: var(--text-muted); font-size: 0.9rem; }
.pricing-desc { font-size: 0.85rem; margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-features li .check { color: var(--success); font-size: 1rem; margin-top: 1px; }
.pricing-features li .cross { color: var(--text-muted); font-size: 1rem; margin-top: 1px; }
.pricing-cta { width: 100%; text-align: center; justify-content: center; }
.pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-secondary);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-card); }
.faq-question.open { border-color: var(--accent); border-bottom-color: transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; color: var(--accent); }
.faq-question.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.faq-answer.open { max-height: 300px; }
.faq-answer-inner {
  padding: 16px 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { margin-bottom: 40px; font-size: 1.1rem; }
.final-cta .btn-primary { font-size: 1.1rem; padding: 16px 36px; }
.final-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-secondary);
}
.footer-logo svg { width: 20px; height: 20px; color: var(--accent); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .problem-grid   { grid-template-columns: 1fr; }
  .steps          { grid-template-columns: 1fr; gap: 32px; }
  .steps::before  { display: none; }
  .diffs-grid     { grid-template-columns: 1fr 1fr; }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .professor-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 420px; }

  /* Demo editor: fonte menor */
  .editor-code { font-size: 0.8rem; }

  /* Professor panel: não mostrar no mobile para não pesar */
  .professor-panel { display: none; }
  .professor-grid  { grid-template-columns: 1fr; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .container { padding: 0 16px; }

  /* Nav */
  .nav-links           { display: none; }
  .nav-cta             { display: none; }
  .hamburger           { display: flex; }
  .nav-logo img        { height: 32px; }

  /* Hero */
  .hero { padding-top: 100px; padding-bottom: 56px; }
  .hero-logo img       { height: 100px; }
  .hero-subtitle       { font-size: 1rem; }
  .hero-actions        { flex-direction: column; width: 100%; }
  .hero-actions .btn   { width: 100%; justify-content: center; }
  .hero-social-proof   { gap: 12px; }
  .proof-divider       { display: none; }
  .proof-number        { font-size: 1.2rem; }

  /* Ghost demo */
  .ghost-demo-wrapper  { margin-bottom: 40px; }
  .editor-body         { min-height: 110px; }
  .editor-code         { font-size: 0.75rem; }
  .editor-gutter       { min-width: 32px; padding: 0 8px; }
  .editor-hint         { display: none; }

  /* Grids */
  .diffs-grid          { grid-template-columns: 1fr; }
  .projects-grid       { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Pricing */
  .pricing-grid        { max-width: 100%; }
  .pricing-card        { padding: 28px 24px; }
  .pricing-card.featured { margin-top: 16px; }

  /* Steps */
  .step-number         { width: 44px; height: 44px; font-size: 1rem; }

  /* FAQ */
  .faq-question        { font-size: 0.9rem; padding: 16px 18px; }

  /* Footer */
  .footer-inner        { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links        { gap: 16px; }

  /* Final CTA */
  .final-cta .btn-primary { font-size: 1rem; padding: 14px 24px; width: 100%; justify-content: center; }
}

/* ── Muito pequeno (≤ 380px) ── */
@media (max-width: 380px) {
  .projects-grid { grid-template-columns: 1fr; }
  .lang-pills    { gap: 6px; }
  .pill          { font-size: 0.75rem; padding: 4px 12px; }
  .hero-logo img { height: 80px; }
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { font-size: 1rem; color: var(--text-secondary); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 16px; }
