/* === BASE === */
:root {
  --bg: #0d1b2a;
  --bg-alt: #112235;
  --bg-card: #162a42;
  --fg: #f0ede8;
  --fg-muted: #8a9bb0;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(240, 237, 232, 0.08);
  --radius: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  padding: 80px 40px 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-stat {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.proof-label {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.3;
  max-width: 100px;
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === CHAT WIDGET === */
.hero-widget {
  display: flex;
  justify-content: center;
}
.chat-window {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.chat-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 50%;
}
.chat-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.chat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.chat-status {
  font-size: 11px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}
.msg { display: flex; }
.msg.student { justify-content: flex-end; }
.msg.ai { justify-content: flex-start; }
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.student .bubble {
  background: var(--accent);
  color: #0d1b2a;
  border-bottom-right-radius: 4px;
}
.ai-bubble {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ai-bubble p { margin-bottom: 6px; }
.ai-bubble p:last-child { margin-bottom: 0; }
.weak-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 8px;
}
.quiz-preview {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}
.quiz-q {
  font-size: 12px;
  color: var(--fg-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.quiz-q:last-child { border-bottom: none; }
.chat-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.input-placeholder {
  flex: 1;
  font-size: 13px;
  color: var(--fg-muted);
}
.send-btn {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === HOW === */
.how {
  padding: 80px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.how-step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.how-step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.how-step em {
  font-style: italic;
  color: var(--fg);
}

/* === FEATURES === */
.features {
  padding: 80px 40px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}
.feature-icon {
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === DASHBOARDS === */
.dashboards {
  padding: 80px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dashboards-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.dash-label {
  background: var(--bg);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}
.dash-mock {
  padding: 24px;
}
.dash-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.dash-week {
  font-size: 12px;
  color: var(--fg-muted);
}
.gap-bar {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.gap-label {
  font-size: 13px;
  color: var(--fg-muted);
}
.gap-track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.gap-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.gap-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: right;
}
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.summary-val {
  font-weight: 600;
  color: var(--fg);
}
.up { color: #4ade80; margin-left: 4px; }
.focus-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 16px;
  line-height: 1.6;
}
.focus-note strong { color: var(--fg); }

/* === MANIFESTO === */
.manifesto {
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--bg) 0%, #0a1520 100%);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  font-style: italic;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.manifesto-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 100px 40px;
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-headline em {
  font-style: italic;
  color: var(--accent);
}
.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-proof { flex-wrap: wrap; gap: 16px; }
  .proof-divider { display: none; }
  .nav-tagline { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 24px 40px; }
  .how, .features, .dashboards, .manifesto, .closing { padding: 60px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .nav { padding: 16px 24px; }
}