/* ========================================
   LearnFloo Landing Page — style.css
   Pure CSS, no frameworks
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --text: #111827;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
  --green: #059669;
  --red: #dc2626;
  --purple: #7c3aed;
  --amber: #f59e0b;
  --gold: #d97706;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Social Proof ---------- */
.social-proof {
  padding: 60px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: inline;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Section Commons ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: #fef3c7;
  color: var(--gold);
}
.badge-red {
  background: #fef2f2;
  color: var(--red);
}
.badge-purple {
  background: #f5f3ff;
  color: var(--purple);
}
.badge-green {
  background: #ecfdf5;
  color: var(--green);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  color: var(--icon-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Gamification ---------- */
.gamification {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.gamification-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.gamification-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}

.gamification-emoji {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.gamification-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.gamification-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Split Content ---------- */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content.reverse {
  direction: rtl;
}
.split-content.reverse > * {
  direction: ltr;
}

.live-section {
  padding: 100px 0;
}

/* Check List */
.check-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* Live Mockup */
.live-mockup {
  background: var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }

.mockup-header span {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-left: auto;
}

.mockup-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  position: relative;
}

.mockup-video {
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}

.mockup-video.main {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  aspect-ratio: 16/10;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80px;
}

.mockup-video.small {
  background: rgba(255,255,255,0.08);
  aspect-ratio: 1;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mockup-ai-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

/* ---------- AI Section ---------- */
.ai-section {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.ai-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple);
}

.ai-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.ai-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ai-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Monetization ---------- */
.monetization {
  padding: 100px 0;
}

.monetization-items {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.monetization-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.monetization-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.monetization-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.monetization-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Revenue Visual */
.revenue-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.revenue-header {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.revenue-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 28px;
}

.revenue-bar-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.revenue-bar {
  position: relative;
}

.revenue-bar-fill {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  transition: width 1s ease-out;
}

.revenue-bar span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.revenue-bar span:last-child {
  float: right;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 100px 0;
  background: var(--bg-alt);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.toggle-label.active {
  color: var(--text);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-switch.active {
  background: var(--primary);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.toggle-switch.active .toggle-knob {
  transform: translateX(24px);
}

.toggle-save {
  background: #ecfdf5;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  opacity: 0;
  transition: opacity var(--transition);
}
.toggle-save.visible {
  opacity: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 20px;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 20px;
}

.pricing-plan-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pricing-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-price {
  margin-bottom: 4px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.price-per-space {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

.price-yearly-note {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 20px;
}

/* Custom Plan */
.custom-plan {
  text-align: center;
  margin: 40px auto 0;
  max-width: 600px;
}

.custom-plan p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.custom-plan a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.custom-plan a:hover {
  text-decoration: underline;
}

.pricing-card .btn {
  margin: 16px 0 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 0.88rem;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li.included {
  color: var(--text);
}

.pricing-features li.excluded {
  color: #c4c4c4;
  text-decoration: line-through;
}

.pricing-features li.included::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}

.pricing-features li.excluded::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  color: #d1d5db;
}

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

.faq h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.faq-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- API / MCP Section ---------- */
.api-section {
  padding: 100px 0;
}

.badge-dark {
  background: #1e293b;
  color: #e2e8f0;
}

.code-mockup {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-mockup .mockup-header {
  background: rgba(255,255,255,0.05);
}

.code-mockup .mockup-header span {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-left: auto;
}

.code-body {
  padding: 24px;
}

.code-body pre {
  margin: 0;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
}

.code-comment { color: #64748b; }
.code-keyword { color: #38bdf8; font-weight: 600; }
.code-string { color: #4ade80; }
.code-key { color: #a78bfa; }
.code-number { color: #fb923c; }
.code-muted { color: #64748b; }

/* ---------- Inline Demo CTA ---------- */
.inline-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(124,58,237,0.06) 100%);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.inline-demo span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 768px) {
  .inline-demo {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ---------- Demo Live ---------- */
.demo-section {
  padding: 100px 0;
}

.demo-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.demo-content {
  position: relative;
  z-index: 1;
}

.demo-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.demo-card > .demo-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.demo-features {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.demo-features span {
  padding: 6px 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.demo-note {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .demo-card {
    padding: 40px 24px;
  }
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding: 80px 0;
  background: var(--bg-alt);
}

.newsletter-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.newsletter-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.newsletter-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.newsletter-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.newsletter-success {
  margin-top: 16px;
  padding: 12px 20px;
  background: #ecfdf5;
  color: var(--green);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  text-align: center;
  color: #fff;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

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

.footer-brand .logo-icon {
  background: rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.gamification-grid .gamification-card:nth-child(2) { transition-delay: 0.05s; }
.gamification-grid .gamification-card:nth-child(3) { transition-delay: 0.1s; }
.gamification-grid .gamification-card:nth-child(4) { transition-delay: 0.15s; }
.gamification-grid .gamification-card:nth-child(5) { transition-delay: 0.2s; }
.gamification-grid .gamification-card:nth-child(6) { transition-delay: 0.25s; }
.gamification-grid .gamification-card:nth-child(7) { transition-delay: 0.3s; }
.gamification-grid .gamification-card:nth-child(8) { transition-delay: 0.35s; }

.features-grid .feature-card:nth-child(2) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.25s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gamification-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-primary {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-actions {
    gap: 8px;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open ~ .nav-actions .btn-ghost,
  .nav-links.open ~ .nav-actions .btn-primary {
    display: inline-flex;
  }

  .hero {
    padding: 120px 0 60px;
  }
  .hero-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-number {
    font-size: 2rem;
  }

  .features-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .gamification-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .split-content,
  .split-content.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .gamification-grid {
    grid-template-columns: 1fr;
  }
}
