/* ─── Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: #ffffff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 3px; }

/* ─── Gradient Text ─────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-gold {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #2563eb;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid #dbeafe;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.btn-secondary:hover {
    background: #f0f0ff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    color: #1e40af;
    box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}

/* ─── Section Tag ────────────────────────────── */
.section-tag {
    display: inline-block;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ─── Hero ───────────────────────────────────── */
.hero-bg {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 52%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
/* Subtle dot grid */
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, #bfdbfe 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.18;
    pointer-events: none;
}
/* Blue blob top-right */
.hero-bg::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.09), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* ─── Hero Badge ─────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dbeafe;
    border: 1.5px solid #93c5fd;
    color: #1e40af;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.25);
    animation: heroDotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes heroDotPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
    50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0.1); }
}

/* ─── Hero Headline ──────────────────────────── */
.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    color: #0f172a;
}
.hero-headline-accent {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hero Subtitle ──────────────────────────── */
.hero-subtitle {
    font-size: 17px;
    color: #475569;
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 36px;
}

/* ─── Hero Level Badges ──────────────────────── */
.hero-level-badge {
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
    padding: 5px 15px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37,99,235,0.06);
}

/* ─── Hero Stats ─────────────────────────────── */
.hero-stat-item { text-align: left; }
.hero-stat-num {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 3px;
}
.hero-stat-lbl { font-size: 12px; color: #64748b; font-weight: 600; }
.hero-stat-divider { width:1px; height:36px; background:#e2e8f0; align-self:center; }

/* ─── Hero floating product cards ────────────── */
.hcard {
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(37,99,235,0.12);
    padding: 20px;
    position: absolute;
}
/* Score card - main, top-right */
.hcard-score {
    width: 300px;
    top: 0; right: 0;
    z-index: 10;
}
/* Rank card - smaller, top-left */
.hcard-rank {
    width: 190px;
    top: 60px; left: 0;
    z-index: 12;
    padding: 16px;
}
/* Subject bars card - bottom-center */
.hcard-subjects {
    width: 330px;
    bottom: 0; left: 40px;
    z-index: 11;
    padding: 18px;
}
/* Improvement pill - floating */
.hcard-pill {
    position: absolute;
    bottom: 140px; right: 20px;
    z-index: 13;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 16px rgba(16,185,129,0.15);
    white-space: nowrap;
}

/* ─── Hero canvas / score elements ───────────── */
.hero-score-num {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.hero-mini-row:last-child { border-bottom: none; }
.hero-bar {
    height: 7px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

@media (max-width: 1023px) {
    .hcard-rank { display: none; }
    .hcard-score { width: 100%; position: relative; top:auto; right:auto; }
    .hcard-subjects { width: 100%; position: relative; bottom:auto; left:auto; margin-top: 16px; }
    .hcard-pill { display: none; }
}

/* ─── Cards ──────────────────────────────────── */
.card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(37,99,235,0.07);
    transition: all 0.35s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(37,99,235,0.14);
    border-color: #93c5fd;
}

/* ─── Float animations ───────────────────────── */
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 5s ease-in-out infinite; }
.float-c { animation: floatC 6s ease-in-out infinite 1s; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatC { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ─── Scroll Reveal ──────────────────────────── */
.reveal { opacity:0; transform:translateY(36px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity:1; transform:translateY(0); }
.reveal-left { opacity:0; transform:translateX(-50px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(50px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.revealed { opacity:1; transform:translateX(0); }
.stagger-1{transition-delay:0.1s} .stagger-2{transition-delay:0.2s} .stagger-3{transition-delay:0.3s}
.stagger-4{transition-delay:0.4s} .stagger-5{transition-delay:0.5s} .stagger-6{transition-delay:0.6s}

/* ─── Feature Card ───────────────────────────── */
.feature-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(37,99,235,0.05);
}
.feature-card::after {
    content:''; position:absolute; bottom:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: scaleX(0); transition: transform 0.35s ease; transform-origin: left;
    border-radius: 0 0 2px 2px;
}
.feature-card:hover::after { transform:scaleX(1); }
.feature-card:hover {
    border-color: #93c5fd;
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(37,99,235,0.12);
}
.feature-icon {
    width:52px; height:52px; border-radius:14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border: 1px solid #bfdbfe;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:18px; transition:all 0.35s ease;
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.feature-card:hover .feature-icon svg { stroke: #ffffff !important; }

/* ─── Series Card ────────────────────────────── */
.series-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.series-card:hover {
    border-color: #93c5fd;
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(37,99,235,0.14);
}

/* ─── Badge ──────────────────────────────────── */
.badge { display:inline-block; padding:3px 11px; border-radius:100px; font-size:10px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase; }
.badge-popular  { background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; }
.badge-best     { background:linear-gradient(135deg,#10b981,#059669); color:#fff; }
.badge-new      { background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; }

/* ─── Pricing Card ───────────────────────────── */
.pricing-card {
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 24px;
    padding: 36px 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37,99,235,0.07);
}
.pricing-card:hover { transform:translateY(-6px); box-shadow:0 24px 60px rgba(37,99,235,0.14); }
.pricing-card.recommended {
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    box-shadow: 0 8px 40px rgba(37,99,235,0.18);
}
.pricing-feature { display:flex; align-items:center; gap:10px; padding:9px 0; font-size:14px; color:#475569; border-bottom:1px solid #f1f5f9; }
.pricing-feature:last-child { border-bottom:none; }

/* ─── Testimonial Card ───────────────────────── */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.35s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.testimonial-card:hover { border-color:#93c5fd; box-shadow:0 16px 40px rgba(37,99,235,0.12); }

/* ─── FAQ ────────────────────────────────────── */
.faq-item { border:1.5px solid #dbeafe; border-radius:14px; overflow:hidden; transition:all 0.3s ease; margin-bottom:10px; background:#fff; box-shadow:0 2px 8px rgba(37,99,235,0.04); }
.faq-item.open { border-color:#93c5fd; box-shadow:0 8px 24px rgba(37,99,235,0.1); }
.faq-question { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; cursor:pointer; background:#fff; transition:background 0.3s ease; user-select:none; }
.faq-question:hover { background:#f0f7ff; }
.faq-answer { max-height:0; overflow:hidden; transition:max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s ease; padding:0 24px; color:#64748b; font-size:14px; line-height:1.75; background:#fff; }
.faq-item.open .faq-answer { max-height:200px; padding:0 24px 20px; }
.faq-icon { width:28px; height:28px; border-radius:50%; background:#dbeafe; border:1.5px solid #93c5fd; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all 0.3s ease; color:#1e40af; font-size:18px; line-height:1; font-weight:700; }
.faq-item.open .faq-icon { background:#2563eb; border-color:#2563eb; color:#fff; transform:rotate(45deg); }

/* ─── Progress ───────────────────────────────── */
.progress-bar { height:6px; border-radius:3px; background:#dbeafe; overflow:hidden; }
.progress-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,#2563eb,#60a5fa); width:0%; transition:width 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ─── Step Card ──────────────────────────────── */
.step-card { background:#ffffff; border:1.5px solid #dbeafe; border-radius:18px; padding:28px 20px; text-align:center; transition:all 0.35s ease; box-shadow:0 2px 12px rgba(37,99,235,0.05); }
.step-card:hover { border-color:#93c5fd; transform:translateY(-5px); box-shadow:0 16px 40px rgba(37,99,235,0.12); }
.step-num { width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,#2563eb,#1d4ed8); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px; color:#fff; margin:0 auto 16px; box-shadow:0 8px 20px rgba(37,99,235,0.35); }

/* ─── Mock Test UI ───────────────────────────── */
.mock-ui { background:#fff; border:1.5px solid #dbeafe; border-radius:20px; overflow:hidden; box-shadow:0 20px 60px rgba(37,99,235,0.12); }
.option-btn { display:flex; align-items:center; gap:14px; padding:13px 16px; border:1.5px solid #dbeafe; border-radius:10px; background:#f8faff; cursor:pointer; transition:all 0.25s ease; color:#334155; font-size:14px; margin-bottom:8px; width:100%; text-align:left; }
.option-btn:hover { background:#dbeafe; border-color:#93c5fd; color:#1e40af; }
.option-btn.selected { background:#dbeafe; border-color:#2563eb; color:#1e40af; font-weight:600; }
.q-dot { width:28px; height:28px; border-radius:5px; font-size:10px; font-weight:600; cursor:pointer; transition:all 0.2s ease; background:#f1f5f9; color:#64748b; border:1.5px solid #e2e8f0; display:inline-flex; align-items:center; justify-content:center; }
.q-dot.ans { background:#2563eb; color:#fff; border-color:#2563eb; }
.q-dot.mrk { background:#f59e0b; color:#fff; border-color:#f59e0b; }
.q-dot.cur { background:#10b981; color:#fff; border-color:#10b981; }

/* ─── Navbar ─────────────────────────────────── */
#navbar { position:fixed; top:0; left:0; right:0; z-index:1000; padding:18px 0; transition:all 0.4s ease; }
#navbar.scrolled { background:rgba(255,255,255,0.96); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-bottom:1px solid #dbeafe; padding:12px 0; box-shadow:0 4px 20px rgba(37,99,235,0.08); }
.nav-link { color:#475569; font-size:14px; font-weight:600; padding:8px 14px; border-radius:8px; transition:all 0.25s ease; text-decoration:none; }
.nav-link:hover { color:#2563eb; background:#dbeafe; }
.nav-link.active { color:#2563eb; background:#dbeafe; }

/* Navbar inner layout — no Tailwind dependency */
.navbar-inner { max-width:80rem; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; }
.nav-desktop-links { display:none; align-items:center; gap:4px; }
.nav-desktop-actions { display:none; align-items:center; gap:12px; }
#mobile-menu-btn { display:flex; flex-direction:column; gap:6px; padding:8px; background:none; border:none; cursor:pointer; }
.nav-mobile-inner { max-width:80rem; margin:0 auto; padding:16px 24px; display:flex; flex-direction:column; gap:8px; }
.nav-mobile-row { padding-top:12px; display:flex; gap:12px; }
/* .hidden class — works without Tailwind loaded */
.hidden { display:none !important; }
@media (min-width: 768px) {
    .nav-desktop-links { display:flex; }
    .nav-desktop-actions { display:flex; }
    #mobile-menu-btn { display:none !important; }
    #mobile-menu { display:none !important; }
}

/* ─── Countdown ──────────────────────────────── */
.countdown-unit {
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 16px;
    padding: 18px 14px 14px;
    text-align: center;
    width: 78px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}
.countdown-unit::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, transparent, #bfdbfe, transparent);
    transform: translateX(-50%);
}
.cnum { font-size: 38px; font-weight: 900; color: #1d4ed8; line-height: 1; display: block; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.clbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #64748b; margin-top: 8px; display: block; }
@media(max-width:768px){ .countdown-unit{width:60px;padding:14px 10px 10px;} .cnum{font-size:28px;} }

/* ─── Carousel ───────────────────────────────── */
.carousel-track { display:flex; transition:transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.carousel-dot { width:8px; height:8px; border-radius:50%; background:#bfdbfe; border:none; cursor:pointer; transition:all 0.3s ease; }
.carousel-dot.active { background:#2563eb; width:24px; border-radius:4px; }

/* ─── Tab ────────────────────────────────────── */
.tab-btn { transition:all 0.3s ease; padding:10px 24px; border-radius:10px; font-weight:600; font-size:14px; border:1.5px solid #dbeafe; color:#64748b; background:#fff; cursor:pointer; }
.tab-btn.active { background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; border-color:transparent; box-shadow:0 8px 24px rgba(37,99,235,0.3); }
.tab-btn:not(.active):hover { color:#2563eb; border-color:#93c5fd; background:#eff6ff; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ─── Dashboard ──────────────────────────────── */
.dash-card { background:#fff; border:1.5px solid #dbeafe; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(37,99,235,0.05); }

/* ─── Subject Tag ────────────────────────────── */
.subj-tag { display:inline-block; background:#dbeafe; border:1px solid #bfdbfe; color:#1e3a8a; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:600; margin:3px 2px; }

/* ─── Divider ────────────────────────────────── */
.glow-line { height:1px; background:linear-gradient(90deg, transparent, #93c5fd, transparent); }

/* ─── Sticky CTA Mobile ──────────────────────── */
.sticky-mobile-cta {
    display:none;
    position:fixed; bottom:0; left:0; right:0;
    padding:12px 16px;
    background:rgba(255,255,255,0.97);
    backdrop-filter:blur(20px);
    border-top:1px solid #dbeafe;
    z-index:900; gap:10px;
    box-shadow:0 -4px 20px rgba(37,99,235,0.1);
}
@media(max-width:768px){
    .sticky-mobile-cta { display:flex; }
    .cnum { font-size:26px; }
    .countdown-unit { padding:14px 14px; min-width:60px; }
}

/* ─── Avatar group ───────────────────────────── */
.avatar-group { display:flex; }
.avatar-group .av { width:36px; height:36px; border-radius:50%; border:2px solid #fff; margin-left:-10px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.12); }
.avatar-group .av:first-child { margin-left:0; }

/* ─── Stat Card ──────────────────────────────── */
.stat-card { background:#fff; border:1.5px solid #dbeafe; border-radius:20px; padding:32px 24px; text-align:center; box-shadow:0 4px 16px rgba(37,99,235,0.07); transition:all 0.3s ease; }
.stat-card:hover { transform:translateY(-4px); box-shadow:0 16px 40px rgba(37,99,235,0.12); border-color:#93c5fd; }

/* ─── Chart bars ─────────────────────────────── */
.chart-bar { border-radius:4px 4px 0 0; height:0%; transition: height 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ─── Donut ring ─────────────────────────────── */
.donut-ring { transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ─── Section BGs ────────────────────────────── */
.bg-white   { background: #ffffff; }
.bg-soft    { background: #f0f7ff; }
.bg-accent  { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
    .countdown-unit { padding:12px 14px; min-width:58px; }
    .cnum { font-size:24px; }
}
