/* StudentAI — Optimized Landing Page */
/* Font: Inter from Google Fonts (closest CDN equivalent to Next.js self-hosted Inter) */

:root {
  --bg: #0e0c1a;
  --bg-surface: #080810;
  --bg-card: #101820;
  --bg-card-alt: #0d1520;
  --fg: #f1f1f1;
  --fg-muted: #98a0a8;
  --fg-subtle: #d0d0d8;
  --purple: #8858f0;
  --purple-light: #a088f8;
  --purple-soft: #a098f8;
  --teal: #a0f0d0;
  --border: rgba(255,255,255,0.08);
  --border-purple: rgba(136,88,240,0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── UTILITY ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 540px;
}
.text-purple { color: var(--purple-light); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(136,88,240,0);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #9a6af5;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(136,88,240,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--fg); }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,12,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: background 0.3s;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--fg); }
.navbar-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav-outline {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-nav-outline:hover { border-color: rgba(255,255,255,0.25); color: var(--fg); }
.btn-nav-primary {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 9px 20px;
  background: var(--purple);
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav-primary:hover { background: #9a6af5; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── HERO ─── */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(136,88,240,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(136,88,240,0.12);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-soft);
  margin-bottom: 24px;
}
.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-h1 .highlight {
  background: linear-gradient(135deg, #8858f0, #a0f0d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-ctas .btn-primary { font-size: 16px; padding: 16px 32px; }
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-stars {
  display: flex;
  gap: 3px;
}
.trust-stars svg { width: 16px; height: 16px; fill: #f59e0b; }
.trust-text {
  font-size: 13px;
  color: var(--fg-muted);
}
.trust-text strong { color: var(--fg); }
.trust-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
}
.trust-badge svg { width: 15px; height: 15px; color: var(--teal); }

/* ─── HERO CHAT MOCKUP ─── */
.hero-visual {
  position: relative;
}
.chat-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(136,88,240,0.1);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,16,0.6);
}
.chat-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8858f0, #a0f0d0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chat-info { flex: 1; }
.chat-name { font-size: 14px; font-weight: 700; }
.chat-status { font-size: 12px; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; display: inline-block; }
.chat-subject {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  animation: fadeInUp 0.4s ease both;
}
.chat-msg.ai {
  background: rgba(136,88,240,0.12);
  border: 1px solid var(--border-purple);
  border-bottom-left-radius: 4px;
  color: var(--fg-subtle);
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.chat-msg.ai strong { color: var(--fg); }
.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(136,88,240,0.08);
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--purple-soft);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(8,8,16,0.4);
}
.chat-input-fake {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--fg-muted);
}
.chat-send {
  width: 38px;
  height: 38px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-send svg { width: 16px; height: 16px; color: #fff; }

/* ─── STORE BADGES ─── */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s;
}
.store-badge:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }
.store-badge svg { width: 18px; height: 18px; }

/* ─── TRUST BAR (social proof below hero) ─── */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-stat {
  text-align: center;
}
.trust-stat .value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--purple-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-stat .label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.trust-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── AI PROF SECTION ─── */
.section-ai-prof {
  padding: 80px 0;
}
.ai-prof-inner {
  text-align: center;
}
.ai-prof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.ai-prof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.ai-prof-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-3px);
}
.ai-prof-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.ai-prof-card .card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ai-prof-card .card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.compatible-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 48px 0 20px;
}
.bts-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bts-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bts-tag:hover {
  background: rgba(136,88,240,0.1);
  border-color: var(--border-purple);
  color: var(--fg);
}
.bts-tag.active {
  background: rgba(136,88,240,0.15);
  border-color: var(--purple);
  color: var(--purple-soft);
}

/* ─── REFERRAL BANNER ─── */
.referral-section { padding: 0 0 64px; }
.referral-card {
  background: linear-gradient(135deg, rgba(136,88,240,0.15) 0%, rgba(160,240,208,0.08) 100%);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.referral-content .referral-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.referral-content .referral-desc {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 400px;
}
.referral-icon { font-size: 48px; }

/* ─── FEATURES GRID ─── */
.features-section { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-3px);
}
.feature-card.wide { grid-column: span 2; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card .feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card .feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── GAME MODES ─── */
.game-section { padding: 80px 0; }
.game-featured {
  background: linear-gradient(135deg, var(--purple) 0%, #6640c8 100%);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(136,88,240,0.3);
}
.game-featured-info .game-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.game-featured-info .game-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}
.game-featured-info .game-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}
.game-featured-icon { font-size: 56px; line-height: 1; }
.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.game-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}
.game-mode-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-3px);
}
.game-mode-icon { font-size: 32px; margin-bottom: 12px; }
.game-mode-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.game-mode-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* ─── 3 STEPS ─── */
.steps-section { padding: 80px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.666% + 16px);
  right: calc(16.666% + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--purple), rgba(136,88,240,0.2));
  pointer-events: none;
}
.step-card { text-align: center; }
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #6640c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(136,88,240,0.35);
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* ─── GAMIFICATION ─── */
.gamification-section { padding: 80px 0; }
.gamification-inner {
  background: linear-gradient(135deg, rgba(136,88,240,0.08), rgba(160,240,208,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
}
.gamification-pillars {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.gamification-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.pillar-title { font-size: 16px; font-weight: 700; }
.pillar-desc { font-size: 13px; color: var(--fg-muted); max-width: 160px; text-align: center; }

/* ─── FREEMIUM ─── */
.freemium-section { padding: 80px 0; }
.freemium-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.freemium-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--fg-subtle);
  animation: fadeInLeft 0.4s ease both;
}
.freemium-check {
  width: 24px;
  height: 24px;
  background: rgba(160,240,208,0.12);
  border: 1px solid rgba(160,240,208,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.freemium-check svg { width: 13px; height: 13px; color: var(--teal); }

/* ─── FAQ ─── */
.faq-section { padding: 80px 0; }
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-purple); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  gap: 16px;
}
.faq-question:hover { color: var(--fg); }
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--purple-soft); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 24px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ─── FINAL CTA ─── */
.final-cta-section { padding: 80px 0; }
.final-cta-card {
  background: linear-gradient(135deg, rgba(136,88,240,0.14) 0%, rgba(160,240,208,0.06) 100%);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(136,88,240,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-card .section-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; }
.final-cta-card .section-sub { margin: 0 auto 40px; }
.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.final-cta-buttons .btn-primary { font-size: 17px; padding: 18px 36px; }

/* ─── FORMATION SECTION ─── */
.formation-section { padding: 0 0 80px; }
.formation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  justify-content: center;
}
.formation-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.formation-tag:hover {
  background: rgba(136,88,240,0.12);
  border-color: var(--border-purple);
  color: var(--fg);
  transform: translateY(-1px);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { }
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-brand .footer-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--purple);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.footer-tagline { font-size: 13px; color: var(--fg-muted); line-height: 1.6; max-width: 220px; }
.footer-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--fg-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 13px; color: var(--fg-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--fg-muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--fg); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 24px;
  background: rgba(8,8,24,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { font-size: 13px; color: var(--fg-muted); max-width: 500px; line-height: 1.5; }
.cookie-text a { color: var(--purple-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-accept {
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.cookie-accept:hover { background: #9a6af5; }
.cookie-decline {
  background: transparent;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8,8,16,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; display: flex; }
.mobile-nav a {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--fg); }
.mobile-nav .btn-primary { text-align: center; justify-content: center; }

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .navbar-links { display: none; }
  .navbar-ctas { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-h1 { font-size: clamp(32px, 7vw, 48px); }

  .ai-prof-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.wide { grid-column: span 2; }
  .game-modes-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { gap: 32px; }
}

@media (max-width: 600px) {
  .ai-prof-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .game-modes-grid { grid-template-columns: repeat(2, 1fr); }
  .referral-card { flex-direction: column; text-align: center; }
  .gamification-pillars { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .final-cta-card { padding: 48px 24px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-trust-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trust-divider { display: none; }
  .trust-stat-divider { display: none; }
  .trust-bar-inner { gap: 20px; }
  .ai-prof-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
