@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg-color: #080c14;
  --bg-card: rgba(14, 20, 36, 0.8);
  --bg-card-hover: rgba(20, 28, 48, 0.9);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-hover: rgba(139, 92, 246, 0.4);
  --text-primary: #f1f5f9;
  --text-secondary: #8b9ab5;
  --text-muted: #4a5568;

  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.35);
  --purple-glow-soft: rgba(124, 58, 237, 0.15);

  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.3);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);

  --accent-color: var(--purple);
  --accent-glow: var(--purple-glow);
  --success-color: var(--emerald);
  --danger-color: var(--rose);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s ease;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================
   BACKGROUND AMBIENCE
   ============================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--purple-glow);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover { color: var(--text-primary); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
  white-space: nowrap;
}

.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 32px; font-size: 17px; border-radius: var(--radius-lg); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 14px var(--rose-glow);
}
.btn-danger:hover {
  background: #e11d48;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover {
  background: var(--purple-glow-soft);
  transform: translateY(-2px);
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--panel-border-hover);
  background: var(--bg-card-hover);
}

/* =============================================
   GRADIENT TEXT & ACCENTS
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--purple-glow-soft);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #f97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hero-content h1 {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stat-value {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- PHONE MOCKUP FRAME --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.phone-frame {
  width: 280px;
  background: #0d1117;
  border-radius: 40px;
  border: 7px solid #1a2233;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 32px 64px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #0d1117;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* =============================================
   IMAGE PLACEHOLDER SYSTEM
   ============================================= */
.img-placeholder {
  background:
    linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(16,185,129,0.06) 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 12px
    );
  border: 2px dashed rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.img-placeholder:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(124,58,237,0.06);
}

.img-placeholder .ph-icon {
  font-size: 32px;
  opacity: 0.5;
}

.img-placeholder .ph-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(139, 92, 246, 0.6);
  font-weight: 600;
}

/* Phone-shaped placeholder */
.phone-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 2px dashed rgba(139, 92, 246, 0.2);
  background:
    linear-gradient(180deg, rgba(124,58,237,0.06) 0%, rgba(16,185,129,0.04) 100%),
    var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Screenshot card placeholder */
.screenshot-ph {
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* =============================================
   APP STORE BADGES
   ============================================= */
.download-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.badge-btn {
  height: 52px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.badge-btn:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  padding: 40px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(124, 58, 237, 0.03);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { }

.stat-value {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
  padding: 100px 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--feature-color, var(--purple)), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-img-area {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Color variants */
.fc-purple { --feature-color: var(--purple-light); }
.fc-gold   { --feature-color: var(--gold-light); }
.fc-emerald{ --feature-color: var(--emerald-light); }
.fc-rose   { --feature-color: var(--rose); }
.fc-cyan   { --feature-color: var(--cyan); }

.fi-purple { background: rgba(124,58,237,0.15); }
.fi-gold   { background: rgba(245,158,11,0.15); }
.fi-emerald{ background: rgba(16,185,129,0.15); }
.fi-rose   { background: rgba(244,63,94,0.15); }
.fi-cyan   { background: rgba(6,182,212,0.15); }

/* =============================================
   SCREENSHOTS GALLERY
   ============================================= */
.gallery-section {
  padding: 80px 0;
  overflow: visible;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 8px 0 8px;
}

.screenshot-item {
  width: 100%;
}

.screenshot-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 16px;
  transition: var(--transition);
  position: relative;
}

.screenshot-frame:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.screenshot-frame .ss-icon {
  font-size: 36px;
  opacity: 0.45;
}

.screenshot-frame .ss-label {
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
  color: rgba(139,92,246,0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.screenshot-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================
   TEACHER PORTAL SECTION
   ============================================= */
.teacher-section {
  padding: 100px 0;
}

.teacher-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.teacher-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.teacher-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tfi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--purple-glow-soft);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tfi-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tfi-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.teacher-visual {
  display: flex;
  justify-content: center;
}

/* Dashboard preview card */
.dashboard-preview {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.dp-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(124,58,237,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dp-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.dp-rank {
  font-size: 18px;
  width: 28px;
  text-align: center;
}

.dp-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.dp-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald);
}

/* =============================================
   DOWNLOAD CTA SECTION
   ============================================= */
.cta-section {
  padding: 100px 0;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(16,185,129,0.1) 100%);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 48px 0 32px;
  color: var(--text-secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   DASHBOARD PAGE LAYOUT
   ============================================= */
.dashboard-page {
  padding: 48px 0;
  min-height: calc(100vh - 72px);
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

/* =============================================
   FORMS & INPUTS
   ============================================= */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow-soft);
}

.form-input::placeholder { color: var(--text-muted); }

/* =============================================
   TABLE
   ============================================= */
.table-container { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--panel-border);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }

.code-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 5px 10px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
}

/* =============================================
   EXCEL DROP ZONE
   ============================================= */
.excel-drop-zone {
  border: 2px dashed rgba(139,92,246,0.25);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(124,58,237,0.02);
  position: relative;
}

.excel-drop-zone:hover {
  border-color: var(--purple);
  background: var(--purple-glow-soft);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.excel-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: #0d1117;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}

.modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title { font-size: 18px; font-weight: 700; }

.modal-close {
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

.modal-body { padding: 24px; }

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.05em;
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 2px 8px var(--purple-glow);
}

/* =============================================
   USER MENU
   ============================================= */
.user-menu-container { position: relative; }

.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  transition: var(--transition-fast);
}

.user-profile-trigger:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: 999;
}

/* =============================================
   TOAST SYSTEM
   ============================================= */
#toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  opacity: 0;
  pointer-events: auto;
}

.toast.show { transform: translateX(0); opacity: 1; }

.toast-success { border-left: 3px solid var(--emerald); }
.toast-success::before { content: "✓"; color: var(--emerald); font-weight: 900; }
.toast-error   { border-left: 3px solid var(--rose); }
.toast-error::before   { content: "✕"; color: var(--rose); font-weight: 900; }
.toast-info    { border-left: 3px solid var(--purple); }
.toast-info::before    { content: "ℹ"; color: var(--purple); font-weight: 900; }

/* =============================================
   CONFIRM MODAL
   ============================================= */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.confirm-overlay.show { opacity: 1; pointer-events: auto; }

.confirm-modal {
  background: rgba(13,17,23,0.98);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 440px;
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-overlay.show .confirm-modal { transform: scale(1); }

.confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* =============================================
   GROUP DETAILS PANEL
   ============================================= */
.details-panel {
  margin-top: 32px;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--panel-border);
  flex-wrap: wrap;
  gap: 16px;
}

.details-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.details-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  border: none;
  border-top: 1px solid var(--panel-border);
  margin: 40px 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 60px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-content h1 { font-size: 44px; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-frame { width: 220px; }
  .hero-glow-ring { width: 280px; height: 280px; }
  .teacher-inner { grid-template-columns: 1fr; gap: 48px; }
  .teacher-visual { order: -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .cta-inner h2 { font-size: 32px; }
  .section-title { font-size: 32px; }
}

/* =============================================
   HERO SECTION (NEW)
   ============================================= */
.hero-section {
  padding: 80px 0 60px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Store badges */
.store-badge-link { text-decoration: none; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 12px;
  min-width: 160px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.12);
}

.store-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }

.store-badge-google { background: #1a1a2e; }
.store-badge-apple  { background: #000; }

.sb-icon { font-size: 26px; line-height: 1; }
.sb-text { display: flex; flex-direction: column; }
.sb-sub  { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }
.sb-main { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }

/* Phone visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 280px;
  background: #0d1117;
  border-radius: 40px;
  border: 7px solid #1a2233;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 32px 64px rgba(0,0,0,0.7);
  overflow: hidden;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Phone game screen */
.phone-screen {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  min-height: 480px;
}

.ps-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
}

.ps-hp-wrap { flex: 1; margin-right: 12px; }

.ps-hp-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.ps-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.ps-stars {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
}

.ps-monster-zone {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.ps-monster-ph {
  width: 130px;
  height: 130px;
  border-radius: 50% !important;
}

.ps-question-zone {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  padding: 12px;
}

.ps-q-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  text-align: center;
}

.ps-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ps-opt {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.ps-correct {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: var(--emerald-light);
}

/* Floating tags */
.float-tag {
  position: absolute;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 3;
  animation: float-bob 3s ease-in-out infinite;
}

.float-tag-1 { top: 12%; right: -8%; animation-delay: 0s; }
.float-tag-2 { bottom: 18%; left: -8%; animation-delay: 1.5s; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* =============================================
   HERO STATS ROW
   ============================================= */
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  flex-wrap: wrap;
}

.hero-stat-item { display: flex; flex-direction: column; gap: 3px; }

.hero-stat-value {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 12px; color: var(--text-muted);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
}

/* CTA badges row */
.cta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* =============================================
   STEPS SECTION
   ============================================= */
.steps-section { padding: 80px 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.step-card-gold::before  { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.step-card-emerald::before { background: linear-gradient(90deg, var(--emerald), var(--cyan)); }

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.step-num {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(139,92,246,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
  color: var(--purple-light);
}

.step-num-gold    { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.2); color: var(--gold-light); }
.step-num-emerald { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.2); color: var(--emerald-light); }

.step-icon { font-size: 40px; margin-bottom: 16px; display: block; }

.step-card h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px; color: var(--text-primary);
}

.step-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.65;
}

/* =============================================
   TEACHER CONTENT (new class for left col)
   ============================================= */
.teacher-content { max-width: 520px; }

/* =============================================
   USER PROFILE HEADER HELPERS
   ============================================= */
.user-avatar-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.user-info-col {
  display: flex; flex-direction: column;
  text-align: left; line-height: 1.2;
}

.user-name-text  { font-size: 13px; font-weight: 600; color: #fff; }
.user-email-text { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.user-caret      { font-size: 10px; color: var(--text-secondary); margin-left: 4px; }

/* =============================================
   RESPONSIVE — NEW SECTIONS
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-title { font-size: 44px; }
  .hero-desc  { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-frame { width: 240px; }
  .float-tag-1 { right: 2%; }
  .float-tag-2 { left: 2%; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero-section { padding: 60px 0 40px; min-height: auto; }
  .hero-title { font-size: 36px; }
  .store-badge { min-width: 140px; padding: 8px 14px; }
  .sb-main { font-size: 14px; }
  .float-tag { display: none; }
  .nav-links { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 16px; }
  .cta-inner { padding: 40px 20px; border-radius: var(--radius-lg); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}
