/* style.css - KashApps EdTech Light Theme */
:root {
    --bg: #f8fafc; --bg2: #ffffff; --bg3: #f1f5f9;
    --surface: #ffffff; --border: #e2e8f0; --border2: #cbd5e1;
    --primary: #2563eb; --primary-light: #60a5fa; --primary-dark: #1d4ed8;
    --saffron: #f97316; --saffron-dark: #ea580c;
    --teal: #0d9488; --teal-light: #2dd4bf;
    --gold: #eab308; --crimson: #ef4444;
    --text: #0f172a; --text-muted: #475569; --text-dim: #64748b;
    --radius: 16px; --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.025);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px -5px rgba(37, 99, 235, 0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.65; overflow-x: hidden;}
h1, h2, h3 { font-family: 'Poppins', sans-serif; color: var(--text); }

/* Navigation */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 2rem; box-shadow: var(--shadow-sm); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; font-family: 'Poppins', sans-serif; }
.logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo-text span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-links a { display: block; padding: 8px 16px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); transition: 0.2s; }
.nav-links a:hover { color: var(--primary); background: var(--bg3); }
.nav-links a.active { color: var(--primary-dark); background: rgba(37, 99, 235, 0.08); font-weight: 600; }
.nav-cta { padding: 10px 20px !important; background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)) !important; color: white !important; font-weight: 600 !important; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2); transition: 0.2s;}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: 0.2s; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--surface); color: var(--text); border: 1px solid var(--border2); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: 0.2s; box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); background: rgba(37, 99, 235, 0.02); color: var(--primary-dark); box-shadow: var(--shadow-md); }

/* Layout & Typography */
main { padding-top: 70px; min-height: 100vh; animation: pageIn 0.4s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.section-container { max-width: 1200px; margin: 0 auto; padding: 40px 2rem 80px; }
.section-header { margin-bottom: 3rem; text-align: center; }
.section-header.left { text-align: left; }
.section-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1rem; background: rgba(37, 99, 235, 0.1); padding: 4px 12px; border-radius: 100px; }
.section-header h1, .section-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.7;}
.section-header.left p { margin: 0; }

/* ─── MISSING HERO STYLES ─── */
.hero { position: relative; padding: 80px 2rem 100px; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 800px 600px at 80% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%), radial-gradient(ellipse 600px 400px at 10% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 70%); }
.hero-grid-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 100%); }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 100px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--saffron); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); } 50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); } }
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1.25rem; color: var(--text); }
.hero h1 .accent { color: var(--primary); }
.hero h1 .accent2 { color: var(--saffron); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-num .stat-accent { color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero Visual Cards */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; height: 440px; width: 100%; }
.hcard { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-lg); transition: transform 0.3s; }
.hcard-main { width: 100%; bottom: 0; left: 0; z-index: 2; }
.hcard-float1 { width: 240px; top: 10px; right: -20px; z-index: 1; animation: float1 5s ease-in-out infinite; }
.hcard-float2 { width: 190px; top: 180px; right: -40px; z-index: 3; animation: float2 6s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translateY(0px) rotate(2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes float2 { 0%, 100% { transform: translateY(0px) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.hcard-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.hcard-value { font-family: 'Inter', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--teal); line-height: 1.1; }
.hcard-value.orange { color: var(--saffron); }
.hcard-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.progress-bar-wrap { margin-top: 12px; }
.progress-bar { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 4px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.fill-teal { background: linear-gradient(90deg, var(--teal-light), var(--teal)); }
.fill-saffron { background: linear-gradient(90deg, var(--saffron-light), var(--saffron)); }
.fill-primary { background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.hcard-series-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 14px; }
.hcard-series-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;}
.hcard-series-name { font-size: 0.9rem; color: var(--text); font-weight: 600;}
.hcard-series-badge { font-size: 0.75rem; font-weight: 600; color: var(--primary-dark); background: rgba(37, 99, 235, 0.1); padding: 4px 10px; border-radius: 100px; }

/* ─── MISSING LEADERBOARD STYLES ─── */
.leaderboard-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.lb-header { display: grid; grid-template-columns: 80px 1fr 140px 140px; padding: 16px 24px; background: var(--bg3); border-bottom: 1px solid var(--border); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.lb-row { display: grid; grid-template-columns: 80px 1fr 140px 140px; padding: 16px 24px; border-bottom: 1px solid var(--border); align-items: center; transition: background 0.2s; }
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--bg); }
.lb-row.top1 { background: rgba(234, 179, 8, 0.04); }
.lb-row.top2 { background: rgba(148, 163, 184, 0.03); }
.lb-row.top3 { background: rgba(217, 119, 6, 0.03); }
.rank-badge { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; }
.rank-1 { background: linear-gradient(135deg, #fde047, #eab308); color: #fff; box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);}
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; box-shadow: 0 4px 10px rgba(148, 163, 184, 0.3);}
.rank-3 { background: linear-gradient(135deg, #fdba74, #d97706); color: #fff; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);}
.rank-n { background: var(--bg3); color: var(--text-muted); }
.student-name { font-weight: 600; font-size: 1rem; color: var(--text); }
.student-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.score-val { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); }
.accuracy-bar { display: flex; align-items: center; gap: 10px; }
.acc-num { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; min-width: 40px; }
.acc-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.acc-fill { height: 100%; background: linear-gradient(90deg, var(--teal-light), var(--teal)); border-radius: 3px; }

/* Cards (Standard) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow-md); display: flex; flex-direction: column; position: relative; overflow: hidden;}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); opacity: 0; transition: opacity 0.3s; }
.card:hover { transform: translateY(-6px); border-color: var(--primary-light); box-shadow: var(--shadow-hover); }
.card:hover::before { opacity: 1; }
.card-featured { background: linear-gradient(to bottom right, #ffffff, #f0fdfa); border-color: rgba(13, 148, 136, 0.2); }
.card-featured::before { background: linear-gradient(90deg, var(--teal), var(--teal-light)); opacity: 1; }
.featured-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)); color: white; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3); }
.card-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(37, 99, 235, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.card-meta { display: flex; gap: 10px; margin-top: 1.5rem; }
.meta-pill { font-size: 0.8rem; font-weight: 600; color: var(--primary-dark); background: var(--bg3); padding: 4px 12px; border-radius: 100px; }
.meta-pill.orange { color: var(--saffron-dark); background: rgba(249, 115, 22, 0.1); }
.card-link { display: inline-flex; gap: 5px; margin-top: 1.5rem; color: var(--primary); font-size: 0.95rem; font-weight: 600; text-decoration: none; }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.9rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }

/* ─── MOBILE MENU & RESPONSIVE DESIGN ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 999; padding: 1.5rem; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a { display: block; padding: 12px 16px; color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 600; border-radius: var(--radius-sm); transition: 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); background: var(--bg3); }

/* Tablets */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .lb-header, .lb-row { grid-template-columns: 60px 1fr 100px; }
    .lb-header > *:last-child, .lb-row > *:last-child { display: none; }
    .section-header { text-align: center !important; }
}

/* Phones */
@media (max-width: 600px) {
    .hero { padding: 40px 1.5rem 60px; }
    .hero h1 { font-size: 2.2rem; }
    .section-container { padding: 0 1.5rem 60px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-4px); }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
}