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

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(79,70,229,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--primary-dark); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--muted); }
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--primary); }

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary.large { padding: 16px 36px; font-size: 1.1rem; }

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Dashboard mock */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-mock {
  background: #1E1B4B;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.mock-header {
  background: #2D2A5A;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.mock-title {
  margin-left: 12px;
  font-size: 0.8rem;
  color: #9CA3AF;
  font-weight: 600;
}

.mock-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.mock-card {
  background: #2D2A5A;
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-card.wide {
  grid-column: 1 / -1;
  padding: 16px;
}

.mock-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
}
.mock-icon.blue { background: #3B82F6; }
.mock-icon.purple { background: #8B5CF6; }
.mock-icon.green { background: #10B981; }

.mock-lines { display: flex; flex-direction: column; gap: 5px; }
.mock-lines span { background: #4B4885; border-radius: 4px; height: 6px; display: block; }
.mock-lines .short { width: 60%; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.bar {
  flex: 1;
  background: linear-gradient(180deg, #818CF8, #4F46E5);
  border-radius: 4px 4px 0 0;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ============================================================
   STATS
============================================================ */
.stats {
  background: var(--primary);
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat { text-align: center; color: #fff; }
.stat h3 { font-size: 2.2rem; font-weight: 800; }
.stat p { font-size: 0.9rem; opacity: 0.8; margin-top: 4px; }

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ============================================================
   FEATURES
============================================================ */
.features {
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.f-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.indigo-bg { background: #EEF2FF; }
.green-bg  { background: #F0FDF4; }
.orange-bg { background: #FFF7ED; }
.purple-bg { background: #FDF4FF; }
.blue-bg   { background: #EFF6FF; }
.rose-bg   { background: #FFF1F2; }

.coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: #FFF7ED;
  color: #EA580C;
  border: 1px solid #FED7AA;
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-live {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ============================================================
   HOW IT WORKS
============================================================ */
.how {
  background: var(--bg-alt);
  padding: 96px 24px;
}

.steps {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p  { color: var(--muted); font-size: 0.93rem; }

.step-arrow {
  font-size: 2rem;
  color: var(--border);
  align-self: center;
  padding-top: 0;
}

@media (max-width: 640px) { .step-arrow { display: none; } }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials {
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author div { display: flex; flex-direction: column; }
.author strong { font-size: 0.9rem; font-weight: 700; }
.author span { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   CTA
============================================================ */
.cta {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  text-align: center;
  padding: 96px 24px;
  color: #fff;
}

.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.cta p  { font-size: 1.1rem; opacity: 0.85; margin-bottom: 36px; }

.cta .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta .btn-primary:hover { background: #EEF2FF; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 64px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: #818CF8; }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; max-width: 240px; }

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong { color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.footer-links a { font-size: 0.88rem; color: #9CA3AF; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
}

/* ============================================================
   PRICING PAGE
============================================================ */
.pricing-hero {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 12px 0;
}
.pricing-hero p { color: var(--muted); font-size: 1.1rem; }

/* Per student banner */
.per-student-banner {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  padding: 32px 24px;
  margin-bottom: 48px;
}

.per-student-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.per-student-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.per-student-price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 4px;
}

.per-student-text { flex: 1; min-width: 220px; }
.per-student-text strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 6px; }
.per-student-text p { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin: 0; }

.per-student-banner .btn-primary {
  background: #fff;
  color: var(--primary);
  white-space: nowrap;
}
.per-student-banner .btn-primary:hover { background: #EEF2FF; }

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  margin: 0 auto 48px;
}

.toggle-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
}
.toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pricing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.pricing-section.hidden { display: none; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  position: relative;
  transition: box-shadow 0.2s;
}
.price-card:hover { box-shadow: var(--shadow); }

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.93rem;
}

.plan-features li { display: flex; align-items: center; gap: 10px; }

.check { color: #16A34A; font-weight: 700; font-size: 1rem; }
.cross  { color: #D1D5DB; font-weight: 700; font-size: 1rem; }

.btn-plan {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.97rem;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}
.btn-plan:hover { border-color: var(--primary); color: var(--primary); }

.btn-plan.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-plan.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* Compare table */
.compare {
  padding: 80px 24px;
  background: var(--bg-alt);
}

.compare-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 700;
  background: #fff;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.compare-table td:first-child, .compare-table th:first-child {
  text-align: left;
}

.compare-table .highlight {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.compare-table tbody tr:hover td { background: #FAFAFA; }
.compare-table tbody tr:hover td.highlight { background: #E0E7FF; }

.tbl-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.compare-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 16px;
}

/* FAQ */
.faq {
  padding: 80px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: #fff;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q span { font-size: 1.3rem; color: var(--primary); font-weight: 400; transition: transform 0.2s; }
.faq-q.open span { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  background: #fff;
}
.faq-a.open { display: block; }
