/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff; color: #111827; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --ink: #111827; --ink-2: #374151; --ink-3: #6B7280; --ink-4: #9CA3AF;
  --line: #E5E7EB; --line-2: #F3F4F6; --surface: #F9FAFB; --white: #ffffff;
  --accent: #4F46E5; --accent-lt: #EEF2FF;
  --green: #059669; --green-lt: #ECFDF5;
  --amber: #D97706; --amber-lt: #FFFBEB;
  --red: #DC2626; --red-lt: #FEF2F2;
  --blue: #2563EB; --blue-lt: #EFF6FF;
  --purple: #7C3AED; --purple-lt: #F5F3FF;
  --r: 12px; --r-sm: 8px; --r-lg: 20px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: none; transition: all .18s ease; white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1f2937; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #4338CA; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,.3); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--r); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  height: 60px; display: flex; align-items: center; gap: 0;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--ink); margin-right: auto; }
.nav-logo strong { color: var(--accent); }
.nav-logo-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; gap: 4px; margin-right: 20px; }
.nav-links a { color: var(--ink-3); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-cta { padding: 8px 18px; font-size: 14px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ink-2); border-radius: 2px; transition: all .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.nav-mobile a { padding: 12px 4px; color: var(--ink-2); font-size: 15px; border-bottom: 1px solid var(--line-2); }
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile.open { display: flex; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 130px 0 80px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--accent-lt) 100%); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 28px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.hero-title { font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--ink-3); max-width: 600px; margin: 0 auto 40px; line-height: 1.75; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stat-pill { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 20px; font-size: 14px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.stat-num { font-weight: 800; color: var(--ink); }

/* ── Section base ─────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header.light .section-title { color: #fff; }
.section-header.light .eyebrow { color: var(--amber); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow.amber { color: var(--amber); }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--ink-3); max-width: 540px; margin: 0 auto; line-height: 1.7; }
.section-sub.light { color: #9CA3AF; }
.cta-section { padding: 80px 0; }

/* ── Segmented Controls (reusable) ────────────────────────────────────────── */
.seg-ctrl, .mini-summarizer .seg-ctrl, .para-style, .para-length, .mm-toggle, .sol-mode-tabs, .math-modes, .vocab-level, .explainer-level, .flash-settings, .setting-row.compact { display: flex; gap: 4px; }
.seg { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; color: var(--ink-3); background: var(--line-2); cursor: default; white-space: nowrap; }
.seg.active { background: var(--accent); color: #fff; }

/* ── Tools Showcase Grid ──────────────────────────────────────────────────── */
.tools-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
}
.tool-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.tool-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tool-icon { width: 44px; height: 44px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-card-header h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.tool-cat { font-size: 11px; color: var(--ink-4); font-weight: 500; }
.tool-badge { margin-left: auto; padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; }
.tool-badge.popular { background: var(--accent-lt); color: var(--accent); }
.tool-badge.hot { background: var(--red-lt); color: var(--red); }

/* Tool Preview Area */
.tool-preview {
  background: var(--surface); border-radius: var(--r); padding: 16px;
  margin-bottom: 14px; flex: 1; min-height: 180px; overflow: hidden;
}
.tool-features-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-features-list span { font-size: 11px; color: var(--ink-3); background: var(--line-2); padding: 3px 10px; border-radius: 100px; }

/* ── Mini Chat (AI Assistant) ─────────────────────────────────────────────── */
.mini-chat { display: flex; flex-direction: column; gap: 8px; }
.mini-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.chip { padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 500; background: #fff; border: 1px solid var(--line); color: var(--ink-3); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.msg-row { display: flex; }
.msg-row.user { justify-content: flex-end; }
.bubble-sm { padding: 8px 12px; border-radius: 12px; font-size: 12px; line-height: 1.55; max-width: 90%; }
.bubble-sm.dark { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bubble-sm.light { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-label { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.msg-actions { display: flex; gap: 8px; padding-left: 4px; }
.reaction { font-size: 12px; opacity: .5; cursor: pointer; }
.reaction:hover { opacity: 1; }

/* ── Mini Summarizer ──────────────────────────────────────────────────────── */
.mini-summarizer { display: flex; flex-direction: column; gap: 10px; }
.setting-row { display: flex; align-items: center; gap: 8px; }
.setting-label { font-size: 11px; font-weight: 600; color: var(--ink-3); min-width: 40px; }
.text-input-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.text-lines { display: flex; flex-direction: column; gap: 4px; }
.text-line { height: 6px; border-radius: 3px; background: var(--line); }
.text-line.dark { background: #D1D5DB; }
.text-line.accent { background: #C7D2FE; }
.word-count { font-size: 10px; color: var(--ink-4); text-align: right; margin-top: 6px; }
.summary-output { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.output-label { font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.bullet-item { font-size: 11px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.bullet-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.output-stats { display: flex; gap: 12px; font-size: 10px; color: var(--ink-4); margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-2); }

/* ── Mini Translator ──────────────────────────────────────────────────────── */
.mini-translator { display: flex; flex-direction: column; gap: 8px; }
.lang-row { display: flex; align-items: center; gap: 8px; justify-content: center; }
.lang-select { padding: 6px 14px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }
.lang-arrow { font-size: 16px; color: var(--ink-4); }
.trans-input, .trans-output { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.trans-text { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.trans-text.accent { color: var(--accent); font-weight: 500; }
.trans-divider { text-align: center; }
.lang-options { display: flex; flex-wrap: wrap; gap: 4px; }
.lang-chip { padding: 2px 8px; border-radius: 100px; font-size: 10px; background: var(--line-2); color: var(--ink-3); }

/* ── Mini Grammar ─────────────────────────────────────────────────────────── */
.mini-grammar { display: flex; flex-direction: column; gap: 8px; }
.grammar-input { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.grammar-text { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.error-word { background: #FEE2E2; color: var(--red); padding: 1px 4px; border-radius: 3px; font-weight: 600; text-decoration: underline wavy var(--red); }
.warn-word { background: #FEF3C7; color: var(--amber); padding: 1px 4px; border-radius: 3px; font-weight: 500; }
.grammar-results { display: flex; flex-direction: column; gap: 6px; }
.grammar-item { display: flex; gap: 8px; padding: 8px; border-radius: var(--r-sm); font-size: 11px; }
.grammar-item.error { background: var(--red-lt); }
.grammar-item.warning { background: var(--amber-lt); }
.g-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.g-hint { font-size: 10px; color: var(--ink-4); }

/* ── Mini Essay ───────────────────────────────────────────────────────────── */
.mini-essay { display: flex; flex-direction: column; gap: 8px; }
.essay-options { display: flex; flex-direction: column; gap: 6px; }
.essay-opt { display: flex; align-items: center; gap: 6px; }
.opt-label { font-size: 10px; font-weight: 600; color: var(--ink-3); min-width: 70px; }
.opt-vals { display: flex; gap: 4px; }
.val { padding: 3px 8px; border-radius: 4px; font-size: 10px; color: var(--ink-3); background: var(--line-2); }
.val.active { background: var(--accent); color: #fff; }
.essay-output { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.essay-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.essay-body { display: flex; flex-direction: column; gap: 4px; }
.essay-para { height: 6px; }
.essay-meta { font-size: 10px; color: var(--ink-4); margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-2); }

/* ── Mini Paraphraser ─────────────────────────────────────────────────────── */
.mini-paraphraser { display: flex; flex-direction: column; gap: 8px; }
.para-compare { display: flex; gap: 8px; align-items: center; }
.para-box { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.para-label { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--ink-4); }
.para-arrow { font-size: 18px; color: var(--ink-4); flex-shrink: 0; }

/* ── Mini Quiz Generator ─────────────────────────────────────────────────── */
.mini-quizgen { display: flex; flex-direction: column; gap: 8px; }
.quiz-question { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: flex; gap: 10px; }
.q-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.q-text { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.q-options { display: flex; flex-direction: column; gap: 4px; }
.q-opt { font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; }
.q-opt.correct { background: var(--green-lt); color: var(--green); font-weight: 600; }
.q-radio { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; }
.q-radio.checked { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 2px #fff; }

/* ── Mini Planner ─────────────────────────────────────────────────────────── */
.mini-planner { display: flex; flex-direction: column; gap: 8px; }
.planner-options { display: flex; flex-direction: column; gap: 6px; }
.plan-opt { display: flex; align-items: center; gap: 6px; }
.plan-timeline { display: flex; flex-direction: column; gap: 6px; }
.plan-day { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.day-label { font-size: 11px; font-weight: 700; color: var(--ink); min-width: 30px; }
.day-tasks { display: flex; gap: 4px; flex-wrap: wrap; }
.task-chip { padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.task-chip.math { background: var(--accent-lt); color: var(--accent); }
.task-chip.sci { background: var(--green-lt); color: var(--green); }
.task-chip.eng { background: var(--purple-lt); color: var(--purple); }
.task-chip.review { background: var(--amber-lt); color: var(--amber); }

/* ── Mini Flashcards ──────────────────────────────────────────────────────── */
.mini-flashcards { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.flash-card-stack { position: relative; margin: 8px 0; }
.flash-card { width: 200px; padding: 20px; background: #fff; border: 2px solid var(--accent); border-radius: var(--r); text-align: center; position: relative; z-index: 2; }
.flash-card-shadow { width: 180px; height: 8px; background: var(--line); border-radius: 50%; margin: -2px auto 0; filter: blur(3px); }
.flash-label { font-size: 10px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.flash-text { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.flash-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.flash-btn { font-size: 14px; color: var(--accent); cursor: pointer; font-weight: 700; }
.flash-counter { font-size: 11px; color: var(--ink-4); }
.flash-hint { font-size: 10px; color: var(--ink-4); }

/* ── Mini Mind Map ────────────────────────────────────────────────────────── */
.mini-mindmap { display: flex; flex-direction: column; gap: 8px; }
.mm-canvas { position: relative; height: 140px; display: flex; align-items: center; justify-content: center; }
.mm-center-node { padding: 8px 16px; border-radius: 100px; color: #fff; font-size: 11px; font-weight: 700; z-index: 2; position: relative; }
.mm-branch { position: absolute; z-index: 1; }
.mm-branch-tl { top: 8px; left: 20px; }
.mm-branch-tr { top: 8px; right: 20px; }
.mm-branch-bl { bottom: 8px; left: 30px; }
.mm-branch-br { bottom: 8px; right: 30px; }
.mm-node { padding: 5px 10px; border-radius: 100px; color: #fff; font-size: 9px; font-weight: 600; white-space: nowrap; }
.mm-line { display: none; }

/* ── Mini Predictor ───────────────────────────────────────────────────────── */
.mini-predictor { display: flex; flex-direction: column; gap: 8px; }
.pred-selectors { display: flex; gap: 8px; }
.pred-sel { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; }
.sel-label { font-size: 9px; color: var(--ink-4); display: block; }
.sel-val { font-size: 11px; font-weight: 600; color: var(--ink); }
.pred-questions { display: flex; flex-direction: column; gap: 6px; }
.pred-q { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.pred-q-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 700; margin-bottom: 4px; }
.pred-q-badge.likely { background: var(--green-lt); color: var(--green); }
.pred-q-badge.medium { background: var(--amber-lt); color: var(--amber); }
.pred-q-text { font-size: 12px; font-weight: 600; color: var(--ink); }
.pred-q-meta { font-size: 10px; color: var(--ink-4); margin-top: 4px; }

/* ── Mini Vocab ───────────────────────────────────────────────────────────── */
.mini-vocab { display: flex; flex-direction: column; gap: 8px; }
.vocab-cards { display: flex; flex-direction: column; gap: 6px; }
.vocab-word-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.vocab-word { font-size: 16px; font-weight: 800; color: var(--ink); }
.vocab-pos { font-size: 10px; color: var(--ink-4); font-style: italic; margin-bottom: 4px; }
.vocab-def { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.vocab-example { font-size: 11px; color: var(--accent); font-style: italic; margin-bottom: 4px; }
.vocab-tip { font-size: 11px; color: var(--amber); background: var(--amber-lt); padding: 4px 8px; border-radius: 4px; }

/* ── Mini Explainer ───────────────────────────────────────────────────────── */
.mini-explainer { display: flex; flex-direction: column; gap: 8px; }
.explainer-suggestions { display: flex; flex-wrap: wrap; gap: 4px; }
.sug-chip { padding: 3px 8px; border-radius: 100px; font-size: 10px; background: var(--amber-lt); color: var(--amber); font-weight: 500; }
.explainer-output { display: flex; flex-direction: column; gap: 6px; }
.exp-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.exp-label { font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.exp-label.simple { color: var(--blue); }
.exp-label.formula { color: var(--accent); }
.exp-label.real { color: var(--green); }
.exp-text { font-size: 11px; color: var(--ink-2); line-height: 1.5; }
.exp-formula { font-size: 18px; font-weight: 800; color: var(--ink); text-align: center; padding: 4px; font-family: 'Georgia', serif; }

/* ── Mini Math Solver ─────────────────────────────────────────────────────── */
.mini-math { display: flex; flex-direction: column; gap: 8px; }
.math-input-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.math-equation { font-size: 16px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 8px; font-family: 'Georgia', serif; }
.math-keyboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.math-keyboard span { padding: 5px; text-align: center; background: var(--line-2); border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.math-solution { display: flex; flex-direction: column; gap: 4px; }
.sol-step { display: flex; gap: 8px; align-items: center; padding: 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-lt); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.step-content { font-size: 12px; color: var(--ink-2); }
.sol-answer { text-align: center; font-size: 14px; font-weight: 800; color: var(--green); padding: 6px; background: var(--green-lt); border-radius: var(--r-sm); }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HOMEWORK SOLVER SECTION */
/* ═══════════════════════════════════════════════════════════════════════════ */
.homework-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }

/* Scan Sheet */
.scan-sheet { background: #1F2937; border-radius: var(--r-lg); padding: 24px; color: #fff; }
.scan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.scan-title { font-size: 16px; font-weight: 700; }
.scan-limit { font-size: 11px; color: #9CA3AF; background: rgba(255,255,255,.1); padding: 3px 10px; border-radius: 100px; }
.scan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.scan-img-slot { aspect-ratio: 1; border-radius: var(--r-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.scan-img-slot.filled { background: #374151; border: 2px solid #4B5563; }
.scan-img-slot.add { background: rgba(255,255,255,.05); border: 2px dashed #4B5563; cursor: pointer; transition: border-color .2s; }
.scan-img-slot.add:hover { border-color: var(--accent); }
.scan-add-icon { font-size: 24px; color: #6B7280; }
.scan-add-text { font-size: 9px; color: #6B7280; }
.scan-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.scan-badge { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.scan-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.scan-btn { flex: 1; padding: 10px; border-radius: var(--r-sm); border: 1px solid #4B5563; background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: background .2s; }
.scan-btn:hover { background: rgba(255,255,255,.08); }
.scan-submit { text-align: center; padding: 12px; background: var(--accent); border-radius: var(--r-sm); font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; }

/* Solution Card */
.solution-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.sol-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sol-mode { padding: 6px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--line-2); cursor: pointer; }
.sol-mode.active { background: var(--accent); color: #fff; }
.sol-image-nav { display: flex; gap: 6px; }
.img-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.img-dot.active { background: var(--accent); }
.sol-thinking { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--accent-lt); border-radius: var(--r-sm); margin-bottom: 16px; }
.thinking-anim { display: flex; gap: 4px; }
.thinking-anim span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bounce .6s ease infinite; }
.thinking-anim .dot-2 { animation-delay: .15s; }
.thinking-anim .dot-3 { animation-delay: .3s; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.thinking-text { font-size: 12px; color: var(--accent); font-weight: 500; }
.sol-output { margin-bottom: 16px; }
.sol-q { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sol-steps { display: flex; flex-direction: column; gap: 6px; }
.sol-s { font-size: 12px; color: var(--ink-2); padding: 6px 10px; background: var(--surface); border-radius: 6px; }
.sol-s.highlight { background: var(--green-lt); color: var(--green); font-weight: 700; }
.sol-divider { height: 1px; background: var(--line); margin: 16px 0; }
.sol-followup { margin-bottom: 12px; }
.followup-label { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.followup-msg { font-size: 12px; line-height: 1.5; margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; }
.followup-msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; max-width: 85%; margin-left: auto; }
.followup-msg.ai { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sol-input { display: flex; gap: 8px; }
.sol-input-field { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 12px; color: var(--ink-4); background: var(--surface); }
.sol-send-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; cursor: pointer; }

/* HW Features Row */
.hw-features-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hw-feat { text-align: center; padding: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); }
.hw-feat-icon { font-size: 28px; margin-bottom: 10px; }
.hw-feat h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.hw-feat p { font-size: 12px; color: #9CA3AF; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ANALYTICS DASHBOARD */
/* ═══════════════════════════════════════════════════════════════════════════ */
.analytics-dashboard-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.analytics-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.a-stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.a-stat-icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.a-stat-val { font-size: 22px; font-weight: 800; color: var(--ink); }
.a-stat-label { font-size: 12px; color: var(--ink-3); }
.a-stat-change { font-size: 11px; margin-top: 4px; }
.a-stat-change.up { color: var(--green); }
.a-stat-change.neutral { color: var(--amber); }

.analytics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.analytics-row:last-child { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 0; }

.a-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.a-card-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }

/* Heatmap */
.heatmap { }
.heatmap-grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 2px; margin-bottom: 8px; }
.hm-cell-sm { width: 100%; aspect-ratio: 1; border-radius: 2px; }
.heatmap-legend { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-4); justify-content: flex-end; }
.hm-cell { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Subject Bars */
.subject-bars { display: flex; flex-direction: column; gap: 10px; }
.subj-bar { display: grid; grid-template-columns: 80px 1fr 36px; align-items: center; gap: 8px; }
.subj-name { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.bar-track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 1.5s ease; }
.subj-pct { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }

/* Mastery Rings */
.mastery-rings { display: flex; justify-content: space-around; gap: 8px; }
.mastery-ring { text-align: center; }
.mastery-ring svg { width: 70px; height: 70px; }
.mastery-ring span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; font-weight: 500; }

/* XP Chart */
.xp-chart { }
.xp-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; margin-bottom: 10px; }
.xp-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.xp-bar { width: 100%; background: var(--accent-lt); border-radius: 4px 4px 0 0; transition: height 1s ease; }
.xp-bar.active { background: var(--accent); }
.xp-bar-wrap span { font-size: 10px; color: var(--ink-4); }
.xp-total { font-size: 12px; font-weight: 600; color: var(--accent); text-align: center; }

/* Streak Card */
.streak-display { text-align: center; margin-bottom: 14px; }
.streak-number { font-size: 48px; font-weight: 900; color: var(--amber); line-height: 1; }
.streak-label { font-size: 12px; color: var(--ink-3); }
.streak-week { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.streak-day { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.streak-day.done { background: var(--green-lt); color: var(--green); }
.streak-day.today { background: var(--amber); color: #fff; }
.streak-milestones { display: flex; gap: 6px; justify-content: center; }
.milestone { padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 600; }
.milestone.achieved { background: var(--green-lt); color: var(--green); }
.milestone.current { background: var(--amber-lt); color: var(--amber); }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FEATURES MEGA GRID */
/* ═══════════════════════════════════════════════════════════════════════════ */
.features-mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.mega-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: box-shadow .25s, transform .25s;
}
.mega-feature:hover { box-shadow: 0 8px 32px rgba(0,0,0,.06); transform: translateY(-2px); }
.mega-feature.compact { grid-template-columns: 160px 1fr; padding: 20px; }
.mega-feature.compact .mega-visual.small { max-width: 140px; }

.mega-visual { display: flex; justify-content: center; }
.mega-text h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.mega-text p { font-size: 13px; color: var(--ink-3); line-height: 1.65; margin-bottom: 10px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 12px; }

/* ── Notes Mock ───────────────────────────────────────────────────────────── */
.notes-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; position: relative; }
.notes-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.notes-title { font-size: 14px; font-weight: 700; }
.notes-search { font-size: 14px; }
.notes-list { display: flex; flex-direction: column; gap: 8px; }
.note-item { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.note-tag { padding: 2px 6px; border-radius: 4px; font-size: 8px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.note-tag.math { background: var(--accent-lt); color: var(--accent); }
.note-tag.sci { background: var(--green-lt); color: var(--green); }
.note-tag.eng { background: var(--purple-lt); color: var(--purple); }
.note-preview strong { font-size: 11px; color: var(--ink); }
.notes-fab { position: absolute; bottom: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }

/* ── Countdown Mock ───────────────────────────────────────────────────────── */
.countdown-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.cd-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.cd-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cd-card { padding: 10px; border-radius: var(--r-sm); border-left: 4px solid; }
.cd-card.red { border-color: var(--red); background: var(--red-lt); }
.cd-card.blue { border-color: var(--blue); background: var(--blue-lt); }
.cd-card.green { border-color: var(--green); background: var(--green-lt); }
.cd-exam { font-size: 12px; font-weight: 700; color: var(--ink); }
.cd-days { font-size: 11px; color: var(--ink-2); }
.cd-num { font-size: 18px; font-weight: 800; color: var(--ink); }
.cd-date { font-size: 10px; color: var(--ink-4); }
.cd-add { text-align: center; padding: 8px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: 11px; color: var(--accent); font-weight: 600; }

/* ── Student of Week ──────────────────────────────────────────────────────── */
.sotw-mock { width: 100%; background: linear-gradient(135deg, var(--amber-lt), #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.sotw-badge { font-size: 11px; font-weight: 700; color: var(--amber); margin-bottom: 8px; }
.sotw-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin: 0 auto 6px; }
.sotw-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.sotw-class { font-size: 10px; color: var(--ink-4); margin-bottom: 6px; }
.sotw-stats { display: flex; gap: 8px; justify-content: center; font-size: 10px; color: var(--ink-3); }

/* ── Referral Mock ────────────────────────────────────────────────────────── */
.referral-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.ref-header { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ref-code-box { background: var(--accent-lt); border-radius: var(--r-sm); padding: 10px; text-align: center; margin-bottom: 10px; }
.ref-code-label { font-size: 10px; color: var(--accent); }
.ref-code { font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: .05em; margin: 4px 0; font-family: monospace; }
.ref-copy { font-size: 11px; color: var(--accent); font-weight: 600; cursor: pointer; }
.ref-stats-row { display: flex; gap: 10px; margin-bottom: 10px; }
.ref-stat { flex: 1; text-align: center; padding: 8px; background: var(--surface); border-radius: var(--r-sm); }
.ref-stat-num { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.ref-stat { font-size: 10px; color: var(--ink-3); }
.ref-tree { display: flex; align-items: center; gap: 12px; justify-content: center; }
.ref-node { padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 600; }
.ref-node.you { background: var(--accent); color: #fff; }
.ref-node.l1 { background: var(--green-lt); color: var(--green); }
.ref-node.l2 { background: var(--amber-lt); color: var(--amber); }
.ref-branch { display: flex; flex-direction: column; gap: 4px; }

/* ── Notification Mock ────────────────────────────────────────────────────── */
.notif-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.notif-header { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.notif-item { padding: 8px; border-radius: var(--r-sm); margin-bottom: 6px; font-size: 11px; line-height: 1.4; }
.notif-item.study { background: var(--blue-lt); }
.notif-item.achievement { background: var(--amber-lt); }
.notif-item.social { background: var(--green-lt); }
.notif-item span { font-size: 10px; color: var(--ink-3); }

/* ── Contribute Mock ──────────────────────────────────────────────────────── */
.contribute-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.contrib-header { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.contrib-types { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.contrib-type { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 11px; color: var(--ink-2); }
.contrib-badge { text-align: center; padding: 6px; background: var(--amber-lt); border-radius: var(--r-sm); font-size: 11px; color: var(--amber); font-weight: 600; }

/* ── Bookmark Mock ────────────────────────────────────────────────────────── */
.bookmark-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.bm-header { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.bm-list { display: flex; flex-direction: column; gap: 6px; }
.bm-item { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.bm-icon { font-size: 12px; }

/* ── QR Code Mock ─────────────────────────────────────────────────────────── */
.qr-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; }
.qr-header { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.qr-code-pattern { width: 80px; height: 80px; margin: 0 auto 8px; }
.qr-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; width: 100%; height: 100%; }
.qr-cell { border-radius: 1px; }
.qr-name { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.qr-actions { display: flex; gap: 6px; justify-content: center; }
.qr-btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; font-size: 10px; color: var(--ink-2); }

/* ── Streak Widget Mock ───────────────────────────────────────────────────── */
.streak-widget-mock { width: 100%; background: linear-gradient(135deg, var(--amber-lt), #fff); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: center; }
.sw-header { font-size: 13px; font-weight: 700; }
.sw-big { font-size: 28px; font-weight: 900; color: var(--amber); margin: 4px 0; }
.sw-calendar { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.sw-day { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; }
.sw-day.done { background: var(--green-lt); color: var(--green); }
.sw-day.today { background: var(--amber); color: #fff; }
.sw-milestones { display: flex; gap: 4px; justify-content: center; }
.sw-ms { padding: 2px 8px; border-radius: 100px; font-size: 9px; font-weight: 600; }
.sw-ms.done { background: var(--green-lt); color: var(--green); }
.sw-ms.active { background: var(--amber-lt); color: var(--amber); }

/* ── Support Mock ─────────────────────────────────────────────────────────── */
.support-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.sup-header { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.sup-cats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.sup-cat { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 11px; color: var(--ink-2); }
.sup-ticket { text-align: center; padding: 8px; background: var(--accent-lt); border-radius: var(--r-sm); font-size: 11px; color: var(--accent); font-weight: 600; }

/* ── Achievement Mock ─────────────────────────────────────────────────────── */
.achieve-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.achieve-header { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.achieve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.achieve-badge { text-align: center; padding: 8px; border-radius: var(--r-sm); }
.achieve-badge.unlocked { background: var(--amber-lt); }
.achieve-badge.locked { background: var(--line-2); opacity: .5; }
.badge-icon { font-size: 20px; }
.badge-name { font-size: 9px; font-weight: 600; color: var(--ink); }
.badge-xp { font-size: 9px; color: var(--amber); font-weight: 600; }

/* ── Profile Mock ─────────────────────────────────────────────────────────── */
.profile-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: center; position: relative; }
.prof-cover { height: 40px; background: linear-gradient(135deg, var(--accent), #7C3AED); }
.prof-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin: -20px auto 4px; border: 3px solid #fff; }
.prof-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.prof-meta { font-size: 10px; color: var(--ink-4); margin-bottom: 8px; }
.prof-stats { display: flex; justify-content: center; gap: 16px; padding: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.prof-stat { font-size: 11px; color: var(--ink-3); }
.prof-stat strong { color: var(--ink); display: block; }
.prof-badges { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.prof-badge { font-size: 16px; }
.prof-edit { padding: 8px; font-size: 11px; color: var(--accent); font-weight: 600; border-top: 1px solid var(--line); }

/* ── Chat Mock ────────────────────────────────────────────────────────────── */
.chat-mock { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.chat-header-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-back { font-size: 14px; color: var(--ink-3); }
.chat-name { font-size: 13px; font-weight: 700; color: var(--ink); flex: 1; }
.chat-status.online { font-size: 10px; color: var(--green); }
.chat-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 11px; line-height: 1.4; }
.chat-msg.received { background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.sent { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input-bar { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-field { flex: 1; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 11px; color: var(--ink-4); }
.chat-send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ── Scroll animations ────────────────────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-inner-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px 48px; display: grid; grid-template-columns: 1fr auto; gap: 80px; }
.footer-brand p { font-size: 14px; color: var(--ink-4); margin-top: 10px; max-width: 240px; line-height: 1.65; }
.footer-cols { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--ink-3); transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom-bar { border-top: 1px solid var(--line); padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-4); max-width: 1120px; margin: 0 auto; }
.footer-bottom-bar a { color: var(--ink-4); transition: color .15s; }
.footer-bottom-bar a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .footer-inner-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .footer-bottom-bar { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tools-showcase { grid-template-columns: 1fr; }
  .homework-showcase { grid-template-columns: 1fr; }
  .analytics-stats { grid-template-columns: repeat(2, 1fr); }
  .analytics-row { grid-template-columns: 1fr; }
  .analytics-row:last-child { grid-template-columns: 1fr 1fr; }
  .features-mega-grid { grid-template-columns: 1fr; }
  .mega-feature { grid-template-columns: 200px 1fr; }
  .mega-feature.compact { grid-template-columns: 140px 1fr; }
  .hw-features-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-title { font-size: 32px; }
  .hero-stats { flex-direction: column; align-items: center; }
  .analytics-stats { grid-template-columns: 1fr; }
  .analytics-row:last-child { grid-template-columns: 1fr; }
  .mega-feature, .mega-feature.compact { grid-template-columns: 1fr; text-align: center; }
  .mega-visual, .mega-visual.small { max-width: 280px; margin: 0 auto; }
  .hw-features-row { grid-template-columns: 1fr; }
  .mastery-rings { flex-wrap: wrap; }
  .streak-milestones { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .btn-lg { width: 100%; justify-content: center; }
  .scan-grid { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid { grid-template-columns: repeat(2, 1fr); }
}
