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

:root {
  --brand: #5B3FE8;
  --brand-light: #7C62F0;
  --brand-dark: #3B1FC4;
  --accent: #06B6D4;
  --bg: #FAFAF8;
  --bg-white: #ffffff;
  --bg-dark: #0E0B20;
  --text: #16132B;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E8E6F0;
  --border-soft: #F0EEF8;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-md: 0 8px 32px rgba(91,63,232,0.12);
  --shadow-lg: 0 24px 64px rgba(91,63,232,0.16);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: all 0.18s ease; white-space: nowrap; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-light); border-color: var(--brand-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,63,232,0.28); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #F5F3FF; }
.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn--full { width: 100%; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,250,248,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.07); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav__logo { font-size: 1.35rem; font-weight: 800; color: var(--text); text-decoration: none; flex-shrink: 0; letter-spacing: -0.02em; }
.nav__logo span { color: var(--brand); }
.nav__links { display: flex; list-style: none; gap: 20px; }
.nav__links a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; gap: 8px; margin-left: auto; }
.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: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.nav__mobile { display: none; flex-direction: column; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--border); background: var(--bg-white); }
.nav__mobile a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 6px 0; }
.nav__mobile-ctas { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.nav__mobile.open { display: flex; }

/* ── Hero ── */
.hero { padding: 88px 0 80px; text-align: center; background: var(--bg); }
.hero__eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--brand); background: #EDE9FF; padding: 5px 16px; border-radius: 999px; margin-bottom: 24px; }
.hero__headline { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.04em; color: var(--text); margin-bottom: 18px; max-width: 800px; margin-left: auto; margin-right: auto; }
.gradient-text { background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__sub { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 36px; line-height: 1.75; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero__trust { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.78rem; color: var(--text-light); flex-wrap: wrap; }

/* ── Problem Section ── */
.problem { padding: 80px 0; background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.problem__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #EF4444; margin-bottom: 16px; }
.problem__headline { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.14; margin-bottom: 48px; color: var(--text); }
.problem__stack { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; }
.problem__tool { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); min-width: 88px; }
.problem__tool span { font-size: 0.88rem; font-weight: 700; }
.problem__tool small { font-size: 0.68rem; color: var(--text-light); text-align: center; }
.problem__tool--faded { background: var(--bg); opacity: 0.6; }
.problem__tool--mestr { background: var(--brand); border-color: var(--brand); }
.problem__tool--mestr span, .problem__tool--mestr small { color: #fff; opacity: 1; }
.problem__plus { font-size: 1.1rem; color: var(--text-light); font-weight: 300; }
.problem__arrow { font-size: 1.4rem; color: var(--brand); padding: 0 8px; }
.problem__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 740px; margin: 0 auto; text-align: left; }
.problem__stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--brand); letter-spacing: -0.03em; margin-bottom: 6px; }
.problem__stat span { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; color: var(--brand); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* ── Tabs ── */
.for-who { padding: 96px 0; background: var(--bg); }
.tabs__nav { display: flex; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); padding: 5px; gap: 4px; max-width: 560px; margin: 0 auto 48px; }
.tab-btn { flex: 1; padding: 9px 12px; border: none; background: transparent; border-radius: 11px; font-size: 0.84rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; }
.tab-panel__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 10px; }
.tab-panel__text h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; line-height: 1.2; }
.tab-panel__text > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.72; margin-bottom: 28px; }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.value-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }
.value-list strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.value-list span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.check-list li::before { content: '✓'; color: var(--brand); font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }

/* ── Mini Dashboard ── */
.mini-dashboard { background: #16132B; border-radius: var(--radius); overflow: hidden; font-size: 0.82rem; }
.mini-dash__header { background: #100D22; padding: 11px 16px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.4); font-size: 0.72rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mini-dash__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.mini-dash__row { display: grid; gap: 1px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mini-dash__row.three { grid-template-columns: repeat(3, 1fr); }
.mini-dash__stat { background: #16132B; padding: 14px 12px; text-align: center; }
.mini-dash__val { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px; }
.mini-dash__lbl { font-size: 0.65rem; color: rgba(255,255,255,0.32); line-height: 1.3; }
.mini-dash__tasks { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.mini-dash__task { font-size: 0.75rem; padding: 5px 9px; border-radius: 5px; }
.mini-dash__task.done { color: rgba(255,255,255,0.45); }
.mini-dash__task.pending { color: rgba(255,255,255,0.3); }
.mini-dash__task.warning { color: #FCD34D; background: rgba(252,211,77,0.07); }

/* ── School Ops ── */
.school-ops { padding: 96px 0; background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ops-card { background: var(--bg-white); padding: 32px 26px; transition: background 0.2s; }
.ops-card:hover { background: #FAF9FF; }
.ops-card__icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.ops-card h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.ops-card p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.68; margin-bottom: 14px; }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mini-list li { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.mini-list li::before { content: '·'; color: var(--brand); font-size: 1.2rem; line-height: 0; flex-shrink: 0; }

/* ── Analytics Section ── */
.analytics-section { padding: 96px 0; background: var(--bg); }
.analytics-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.analytics-section__text h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.14; }
.analytics-section__text p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 18px; }
.analytics-mock { background: var(--bg-dark); border-radius: var(--radius); padding: 26px; }
.analytics-mock__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.analytics-mock__metrics { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.am-metric { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 10px; }
.am-metric__label { font-size: 0.76rem; color: rgba(255,255,255,0.4); }
.am-bar { height: 6px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; }
.am-bar__fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width 1.2s ease; }
.am-bar__fill--teal { background: #06B6D4; }
.am-bar__fill--gold { background: #F59E0B; }
.am-bar__fill--purple { background: #A78BFA; }
.am-bar__fill--green { background: #22C55E; }
.am-metric__val { font-size: 0.76rem; font-weight: 700; color: rgba(255,255,255,0.55); text-align: right; }
.analytics-mock__ai { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 12px 14px; font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.ai-label { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--brand-light); margin-bottom: 6px; }

/* ── Teacher Section ── */
.teacher-section { padding: 96px 0; background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.teacher-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.teacher-section__text h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.14; }
.teacher-section__text p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 24px; }
.ai-insight-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.ai-insight-card--muted { opacity: 0.7; }
.ai-insight-card__label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 10px; }
.ai-insight-card__body { font-size: 0.9rem; color: var(--text); line-height: 1.68; margin-bottom: 14px; }
.ai-insight-card__body strong { color: var(--brand); }
.ai-insight-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-tag { font-size: 0.68rem; font-weight: 600; color: var(--brand); background: #EDE9FF; border: 1px solid #D4CAFF; padding: 3px 9px; border-radius: 999px; }
.ai-tag--warn { color: #B45309; background: #FEF3C7; border-color: #FDE68A; }

/* ── Nav avatar link ── */
.nav__link--avatar {
  color: var(--brand) !important;
  font-weight: 700 !important;
  background: #EDE9FF;
  padding: 4px 12px !important;
  border-radius: 999px;
  font-size: 0.82rem !important;
  transition: background 0.15s, color 0.15s !important;
}
.nav__link--avatar:hover { background: var(--brand) !important; color: #fff !important; }

/* ── Hero avatar callout ── */
.hero__avatar-callout { margin-top: 20px; }
.hero__avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #EDE9FF, #E0F2FE);
  border: 1px solid rgba(91,63,232,0.2);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 500;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero__avatar-pill:hover { box-shadow: 0 4px 16px rgba(91,63,232,0.18); transform: translateY(-1px); }
.hero__avatar-icon { font-size: 0.9rem; }
.hero__avatar-pill strong { font-weight: 700; }
.hero__avatar-arrow { opacity: 0.6; }

/* ── Value list avatar item ── */
.value-list__avatar-item { background: rgba(91,63,232,0.06); border: 1px solid rgba(91,63,232,0.15); border-radius: 8px; padding: 10px 12px; margin-top: 4px; }
.value-badge { display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* ── Avatar section CTA buttons ── */
.avatar-section__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn--ghost-light { background: transparent; color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.2); }
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.06); }
.btn--sm { padding: 8px 16px; font-size: 0.8rem; }

/* ── Pricing avatar banner ── */
.pricing__avatar-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #EDE9FF 0%, #E0F2FE 100%);
  border: 1px solid rgba(91,63,232,0.18);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pricing__avatar-icon { font-size: 1.4rem; flex-shrink: 0; color: var(--brand); }
.pricing__avatar-banner-text { flex: 1; min-width: 200px; }
.pricing__avatar-banner-text strong { display: block; font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.pricing__avatar-banner-text span { font-size: 0.84rem; color: var(--text-muted); }

/* ── Pricing card avatar row ── */
.pricing-card__avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.84rem;
}
.pricing-card__avatar-row--no { background: var(--bg); color: var(--text-light); }
.pricing-card__avatar-row--no span:first-child { opacity: 0.3; }
.pricing-card__avatar-row--yes { background: linear-gradient(135deg, #EDE9FF, #E0F2FE); border: 1px solid rgba(91,63,232,0.15); }
.pricing-card__avatar-row--yes > span:first-child { color: var(--brand); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.pricing-card__avatar-row--yes strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--brand); }
.pricing-card__avatar-row--yes small { font-size: 0.76rem; color: var(--text-muted); display: block; margin-top: 1px; }

/* ── Mestr Avatar Section ── */
.avatar-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #0E0B20 0%, #130F2B 100%);
  overflow: hidden;
}
.avatar-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,63,232,0.2);
  border: 1px solid rgba(91,63,232,0.35);
  color: #A78BFA;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.avatar-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #A78BFA;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.avatar-section__header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.avatar-section__header p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.75;
}
.avatar-section__header em { font-style: italic; color: rgba(255,255,255,0.75); }

.avatar-section__body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

/* Steps */
.avatar-steps { display: flex; flex-direction: column; }
.avatar-step { display: flex; gap: 16px; align-items: flex-start; }
.avatar-step__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(91,63,232,0.25);
  border: 1px solid rgba(91,63,232,0.4);
  color: #A78BFA;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.avatar-step__content { padding-bottom: 4px; }
.avatar-step__content h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.avatar-step__content p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.65; }
.avatar-step__line { width: 1px; height: 28px; background: rgba(91,63,232,0.25); margin-left: 17px; }

/* Chat window */
.avatar-chat { display: flex; flex-direction: column; gap: 14px; }
.avatar-chat__window {
  background: #1A1535;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.avatar-chat__topbar {
  background: #130F2B;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.avatar-chat__avatar-wrap { display: flex; align-items: center; gap: 12px; }
.avatar-face {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.avatar-face__img { font-size: 0.7rem; font-weight: 800; color: #fff; }
.avatar-face__live {
  position: absolute;
  bottom: -4px; right: -4px;
  background: #22C55E;
  color: #fff;
  font-size: 0.42rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  border: 1.5px solid #1A1535;
}
.avatar-chat__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar-chip {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(91,63,232,0.3);
  border: 1px solid rgba(91,63,232,0.5);
  color: #A78BFA;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.avatar-chat__status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
}
.avatar-chat__messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
}
.avatar-chat__messages::-webkit-scrollbar { width: 3px; }
.avatar-chat__messages::-webkit-scrollbar-track { background: transparent; }
.avatar-chat__messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }
.chat-msg { display: flex; flex-direction: column; gap: 4px; }
.chat-msg--avatar { align-items: flex-start; }
.chat-msg--student { align-items: flex-end; }
.chat-msg__bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
}
.chat-msg--avatar .chat-msg__bubble {
  background: rgba(91,63,232,0.18);
  border: 1px solid rgba(91,63,232,0.25);
  color: rgba(255,255,255,0.8);
  border-bottom-left-radius: 4px;
}
.chat-msg--student .chat-msg__bubble {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.typing .chat-msg__bubble {
  padding: 12px 16px;
}
.chat-msg__time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.2);
  padding: 0 4px;
}
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}
.avatar-chat__footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}
.avatar-chat__log {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
}
.log-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.log-dot--green { background: #22C55E; }
.log-dot--blue { background: #38BDF8; }
.log-dot--yellow { background: #FCD34D; }
.log-sep { color: rgba(255,255,255,0.15); }

/* Insight cards below chat */
.avatar-chat__insight { display: flex; flex-direction: column; gap: 10px; }
.avatar-insight-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.avatar-insight-card--sm { opacity: 0.65; }
.avatar-insight-card__icon { font-size: 1.1rem; flex-shrink: 0; }
.avatar-insight-card__label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 5px;
}
.avatar-insight-card__text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Why it's different */
.avatar-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.avatar-why__item {
  background: rgba(255,255,255,0.02);
  padding: 28px 24px;
  transition: background 0.2s;
}
.avatar-why__item:hover { background: rgba(91,63,232,0.12); }
.avatar-why__icon { font-size: 1.6rem; margin-bottom: 12px; }
.avatar-why__item h4 { font-size: 0.93rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.avatar-why__item p { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.68; }

/* ── Reports Section ── */
.reports-section { padding: 96px 0; background: var(--bg); }
.reports-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 20px; align-items: start; }
.report-col { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.report-col--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); }
.report-col__title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 16px; }
.report-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.report-col ul li { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.report-col ul li::before { content: '→'; color: var(--brand); font-size: 0.8rem; }
.report-example { display: flex; flex-direction: column; gap: 0; }
.report-example__name { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.report-example__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.84rem; }
.report-example__row span { color: var(--text-muted); }
.report-example__row strong { color: var(--text); font-weight: 700; }
.report-example__row strong.excellent { color: #16A34A; }
.report-example__note { font-size: 0.72rem; color: var(--text-light); margin-top: 12px; font-style: italic; }

/* ── Privacy Section ── */
.privacy-section { padding: 80px 0; background: var(--bg-dark); }
.privacy-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.privacy-section .section-tag { color: rgba(255,255,255,0.4); }
.privacy-section__text h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.16; letter-spacing: -0.03em; margin-bottom: 18px; }
.privacy-section__text p { color: rgba(255,255,255,0.5); font-size: 0.95rem; line-height: 1.75; margin-bottom: 16px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.trust-badge { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 999px; }
.privacy-big-stat { text-align: center; }
.privacy-big-stat__number { font-size: 6rem; font-weight: 900; color: #EF4444; line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; }
.privacy-big-stat__label { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.5; margin-bottom: 16px; max-width: 280px; margin-left: auto; margin-right: auto; }
.privacy-big-stat__note { font-size: 0.82rem; color: var(--brand-light); font-weight: 600; }

/* ── Stats ── */
.stats { padding: 80px 0; background: var(--brand-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__value { font-size: 2.8rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 10px; letter-spacing: -0.04em; }
.stat__label { color: rgba(255,255,255,0.45); font-size: 0.84rem; line-height: 1.55; }

/* ── Logos ── */
.logos { padding: 48px 0; border-bottom: 1px solid var(--border); }
.logos__label { text-align: center; color: var(--text-light); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.logos__row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.logo-pill { padding: 8px 18px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }

/* ── Mission ── */
.mission { padding: 96px 0; background: var(--bg-white); border-top: 1px solid var(--border); text-align: center; }
.mission__inner { max-width: 680px; margin: 0 auto; }
.mission__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); margin-bottom: 18px; }
.mission__headline { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; }
.mission__body { color: var(--text-muted); font-size: 1.05rem; line-height: 1.78; margin-bottom: 20px; }
.mission__vision { color: var(--text-muted); font-size: 0.97rem; line-height: 1.75; margin-bottom: 32px; font-style: italic; }
.mission__tagline { font-size: 1.1rem; font-weight: 700; color: var(--brand); letter-spacing: -0.01em; }

/* ── Pricing ── */
.pricing { padding: 96px 0; background: var(--bg); border-top: 1px solid var(--border); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px; position: relative; }
.pricing-card--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); }
.pricing-card__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pricing-card h4 { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.pricing-card__price { font-size: 2.6rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 6px; letter-spacing: -0.04em; }
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card__price--access { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--brand); }
.pricing-card__desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.pricing-card ul li { font-size: 0.86rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.pricing-card ul li::before { content: '✓'; color: var(--brand); font-weight: 700; font-size: 0.78rem; flex-shrink: 0; }

/* ── FAQ ── */
.faq { padding: 96px 0; background: var(--bg-white); border-top: 1px solid var(--border); }
.faq__inner { max-width: 700px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 2px; }
.faq__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { padding: 18px 20px; font-size: 0.93rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background 0.15s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: #F5F3FF; }
.faq__item summary::after { content: '+'; font-size: 1.2rem; color: var(--brand); font-weight: 300; flex-shrink: 0; }
.faq__item[open] summary { background: #F5F3FF; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { padding: 16px 20px 18px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.76; }

/* ── Waitlist / Demo ── */
.waitlist { padding: 96px 0; background: var(--bg-dark); text-align: center; }
.waitlist__inner { max-width: 520px; margin: 0 auto; }
.waitlist h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; color: #fff; line-height: 1.18; margin-bottom: 12px; letter-spacing: -0.03em; }
.waitlist__inner > p { color: rgba(255,255,255,0.45); margin-bottom: 32px; font-size: 0.97rem; line-height: 1.65; }
.waitlist__form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.waitlist__cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.waitlist__input, .waitlist__select { padding: 13px 16px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: #fff; font-size: 0.93rem; font-family: inherit; outline: none; transition: border-color 0.2s; width: 100%; }
.waitlist__input::placeholder { color: rgba(255,255,255,0.28); }
.waitlist__input:focus, .waitlist__select:focus { border-color: var(--brand-light); background: rgba(255,255,255,0.09); }
.waitlist__select option { background: #1A1535; color: #fff; }
.waitlist__note { color: rgba(255,255,255,0.22); font-size: 0.76rem; margin-bottom: 28px; }
.waitlist__social { display: flex; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.avatar-stack { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.57rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-dark); margin-left: -7px; }
.avatar:first-child { margin-left: 0; }

/* ── Footer ── */
.footer { background: #08060F; padding: 56px 0 0; }
.footer__inner { display: flex; gap: 56px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__brand { flex: 0 0 200px; }
.footer__brand .nav__logo { font-size: 1.25rem; color: #fff; display: block; margin-bottom: 10px; }
.footer__brand > p { color: rgba(255,255,255,0.28); font-size: 0.8rem; line-height: 1.6; margin-bottom: 6px; }
.footer__tagline { color: rgba(255,255,255,0.18) !important; font-size: 0.75rem !important; margin-bottom: 16px !important; }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: rgba(255,255,255,0.28); text-decoration: none; font-size: 0.78rem; transition: color 0.15s; }
.footer__social a:hover { color: rgba(255,255,255,0.8); }
.footer__links { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__col h5 { color: rgba(255,255,255,0.4); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer__col a { display: block; color: rgba(255,255,255,0.28); text-decoration: none; font-size: 0.82rem; margin-bottom: 9px; transition: color 0.15s; }
.footer__col a:hover { color: rgba(255,255,255,0.8); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.footer__bottom p { color: rgba(255,255,255,0.18); font-size: 0.78rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .avatar-section__body { grid-template-columns: 1fr; }
  .avatar-why { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .tab-panel__inner { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .analytics-section__inner { grid-template-columns: 1fr; }
  .analytics-section__visual { order: -1; }
  .teacher-section__inner { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .privacy-section__inner { grid-template-columns: 1fr; text-align: center; }
  .trust-badges { justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__brand { flex: none; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .problem__stats { grid-template-columns: 1fr; text-align: center; max-width: 340px; }
}
@media (max-width: 600px) {
  .avatar-why { grid-template-columns: 1fr; }
  .tabs__nav { max-width: 100%; }
  .ops-grid { grid-template-columns: 1fr; }
  .feature-cols { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .problem__stack { gap: 6px; }
  .privacy-big-stat__number { font-size: 4rem; }
  .waitlist__cta-row { grid-template-columns: 1fr; }
  .am-metric { grid-template-columns: 100px 1fr 50px; }
}
