:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --fg: #0e1117;
  --fg-muted: #6b7280;
  --accent: #00c896;
  --accent-dark: #009e76;
  --accent-bg: #e6faf4;
  --border: #e2e6ea;
  --nav-bg: #0e1117;
  --nav-fg: #ffffff;
  --module-bg: #f8f9fb;
}

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

body {
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.topbar-links {
  display: flex;
  gap: 28px;
}
.topbar-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.topbar-links a:hover { color: #ffffff; }

/* Hero */
.hero { padding: 80px 32px 72px; background: var(--nav-bg); }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stat grid */
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.stat-card { background: #181c26; padding: 28px 24px; }
.stat-number { font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 800; color: #ffffff; line-height: 1; }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; margin-top: 6px; text-transform: uppercase; }
.stat-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0e1117;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--fg);
  color: var(--fg);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--fg); color: var(--bg); }

/* Section header */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0;
}

/* Modules */
.modules { padding: 80px 32px; background: var(--bg); }
.modules-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 56px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 40px; }
.module-item { background: var(--module-bg); padding: 28px 24px; }
.module-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--fg-muted); letter-spacing: 0.06em; margin-bottom: 10px; }
.module-name { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.module-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.55; margin-bottom: 12px; }
.module-standard { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--accent-dark); background: var(--accent-bg); padding: 3px 8px; border-radius: 4px; }
.modules-cta { text-align: center; }

/* Classroom */
.classroom { padding: 80px 32px; background: var(--bg-alt); }
.classroom-inner { max-width: 1100px; margin: 0 auto; }
.classroom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.classroom-body { color: var(--fg-muted); font-size: 15px; line-height: 1.65; margin: 16px 0 32px; max-width: 420px; }
.classroom-features { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.cf-item { display: flex; gap: 16px; align-items: flex-start; }
.cf-icon { width: 36px; height: 36px; background: var(--accent-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }
.cf-item strong { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; color: var(--fg); }
.cf-item p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* Assignment preview */
.assign-preview {
  background: #0e1117;
  border-radius: 16px;
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
}
.assign-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.assign-label { font-size: 13px; font-weight: 700; color: #ffffff; }
.assign-badge { font-size: 11px; color: var(--accent); background: rgba(0,200,150,0.12); padding: 3px 10px; border-radius: 20px; }
.assign-task { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.assign-task:last-of-type { border-bottom: none; }
.task-check { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task-check.done { background: var(--accent); color: #0e1117; }
.task-check.active { border: 2px solid var(--accent); }
.task-check.locked { color: rgba(255,255,255,0.2); }
.task-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.task-text { font-size: 12px; color: rgba(255,255,255,0.7); flex: 1; }
.task-text strong { color: #ffffff; }
.task-text.task-locked { color: rgba(255,255,255,0.25); }
.task-done { font-size: 10px; color: var(--accent); font-weight: 600; }
.task-active { font-size: 10px; color: var(--accent); font-weight: 600; }
.task-locked { font-size: 10px; color: rgba(255,255,255,0.2); }
.assign-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.07); }
.assign-anticheat { font-size: 11px; color: rgba(255,255,255,0.3); }

/* Recognition */
.recognition { padding: 64px 32px; background: var(--bg); border-top: 1px solid var(--border); }
.recognition-inner { max-width: 1100px; margin: 0 auto; }
.recognition-note { color: var(--fg-muted); font-size: 14px; margin-top: 8px; margin-bottom: 40px; }
.district-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.district-card { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--module-bg); }
.district-flag { flex-shrink: 0; }
.district-info strong { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; color: var(--fg); }
.district-info span { font-size: 13px; color: var(--fg-muted); }

/* Closing */
.closing { padding: 96px 32px; background: var(--nav-bg); text-align: center; }
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.closing-body { color: rgba(255,255,255,0.55); font-size: 16px; line-height: 1.7; margin-bottom: 40px; }
.btn-large { font-size: 16px; padding: 16px 36px; }
.closing-license { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,0.4); }
.closing-license a { color: rgba(255,255,255,0.6); text-decoration: none; }
.closing-license a:hover { color: #ffffff; }

/* Footer */
.site-footer { background: #0a0d12; border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.25); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 56px 20px 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stat-grid { order: -1; }
  .module-grid { grid-template-columns: 1fr; }
  .classroom-grid { grid-template-columns: 1fr; gap: 40px; }
  .district-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .topbar-links { gap: 16px; }
  .topbar-links a { font-size: 13px; }
  .closing { padding: 64px 20px; }
  .recognition { padding: 48px 20px; }
  .modules { padding: 56px 20px; }
  .classroom { padding: 56px 20px; }
}