/* ===== Modern LMS Landing — Light & Vibrant ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --accent: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --rose: #F43F5E;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .08);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, .1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============ NAVBAR ============ */
.lms-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.lms-navbar.scrolled {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    padding: .75rem 2.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    box-shadow: 0 4px 16px rgba(79, 70, 229, .3);
    transition: transform .2s;
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.05) rotate(-2deg);
}

.nav-logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--gray-900);
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-500);
    font-weight: 600;
    font-size: .875rem;
    padding: .5rem 1rem;
    border-radius: 10px;
    transition: all .2s;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, .06);
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.4rem;
    border-radius: 12px;
    background: var(--gray-900);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    border: none;
    cursor: pointer;
    transition: all .25s;
}

.nav-login-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .3);
}

/* ============ HERO ============ */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 7rem 2.5rem 5rem;
    overflow: hidden;
    background: #fff;
}

/* Mesh gradient background */
.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(79, 70, 229, .07) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 182, 212, .06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 0%, rgba(244, 63, 94, .04) 0%, transparent 50%);
}

/* Dot grid */
.hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--gray-200) .8px, transparent .8px);
    background-size: 32px 32px;
    opacity: .5;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

/* Floating shapes */
.hero-float {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-y 6s ease-in-out infinite;
}

.hero-float-1 {
    width: 300px;
    height: 300px;
    top: -5%;
    right: -3%;
    background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(6, 182, 212, .05));
    animation-duration: 7s;
}

.hero-float-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -2%;
    background: linear-gradient(135deg, rgba(244, 63, 94, .06), rgba(245, 158, 11, .04));
    animation-duration: 8s;
    animation-delay: -2s;
}

.hero-float-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 35%;
    background: rgba(16, 185, 129, .06);
    animation-duration: 5s;
    animation-delay: -1s;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Left */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 1rem .35rem .5rem;
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(6, 182, 212, .06));
    border: 1px solid rgba(79, 70, 229, .12);
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.5rem;
}

.eyebrow-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.eyebrow-dot i {
    font-size: .7rem;
    color: #fff;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: 14px;
    background: var(--gray-900);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.cta-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, .25);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

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

/* Hero trust strip */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.trust-avatars {
    display: flex;
}

.trust-avatars span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .7rem;
    color: #fff;
    border: 2px solid #fff;
    margin-left: -8px;
}

.trust-avatars span:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: .8rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.trust-text strong {
    color: var(--gray-700);
}

/* Hero Right — App Links */
.hero-apps {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.apps-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
    padding-left: .25rem;
}

.apps-label i {
    font-size: .9rem;
    color: var(--primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.app-link-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    text-decoration: none;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.app-link-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.app-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-link-card:hover .app-link-icon {
    transform: scale(1.1) rotate(-5deg);
}

.app-link-info {
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.app-link-name {
    font-size: .85rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1px;
    line-height: 1.2;
}

.app-link-desc {
    font-size: .65rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quote bar */
.app-quote-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    margin-top: .25rem;
    min-height: 82px;
}

.quote-box {
    min-height: auto;
    display: flex;
    flex-direction: column;
    transition: opacity .5s;
}

.quote-text {
    font-size: .8rem;
    font-style: italic;
    color: var(--gray-500);
    line-height: 1.5;
}

.quote-author {
    font-size: .68rem;
    color: var(--gray-400);
    font-weight: 700;
    margin-top: .15rem;
    letter-spacing: .06em;
}

/* ============ CURRICULUM MODAL ============ */
.curriculum-box {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .15);
    transform: translateY(24px) scale(.96);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .curriculum-box {
    transform: translateY(0) scale(1);
}

.curriculum-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.curr-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.curr-info {
    flex: 1;
    min-width: 0;
}

.curr-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
    margin-bottom: .35rem;
}

.curr-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.curr-stats span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-400);
}

.curr-stats span i {
    font-size: .85rem;
    color: var(--primary);
}

.curriculum-body {
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem;
    flex: 1;
}

.curriculum-body::-webkit-scrollbar {
    width: 4px;
}

.curriculum-body::-webkit-scrollbar-track {
    background: transparent;
}

.curriculum-body::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

.curr-section {
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    margin-bottom: .5rem;
    overflow: hidden;
    transition: border-color .2s;
}

.curr-section:hover {
    border-color: var(--gray-200);
}

.curr-section-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.1rem;
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.curr-section-btn:hover {
    background: var(--gray-100);
}

.curr-section-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.curr-section-num {
    font-size: .65rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curr-section-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gray-800);
}

.curr-section-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.curr-section-count {
    font-size: .7rem;
    font-weight: 600;
    color: var(--gray-400);
}

.curr-chevron {
    font-size: .9rem;
    color: var(--gray-400);
    transition: transform .25s;
}

.curr-section-btn.open .curr-chevron {
    transform: rotate(180deg);
}

.curr-topics {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}

.curr-topics.open {
    max-height: 500px;
}

.curr-topic {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.1rem .55rem 3rem;
    border-top: 1px solid var(--gray-50);
    transition: background .15s;
}

.curr-topic:hover {
    background: rgba(79, 70, 229, .03);
}

.curr-topic i {
    font-size: .95rem;
    color: var(--gray-300);
    flex-shrink: 0;
}

.curr-topic span {
    font-size: .8rem;
    color: var(--gray-600);
    font-weight: 500;
}

@media(max-width: 640px) {
    .curriculum-box {
        margin: 1rem;
        max-height: 90vh;
        border-radius: 20px;
    }

    .curriculum-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .curriculum-body {
        padding: .75rem 1rem 1rem;
    }

    .curr-topic {
        padding-left: 2rem;
    }
}

/* ============ FEATURES MARQUEE ============ */
.marquee-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-400);
    white-space: nowrap;
}

.marquee-item i {
    font-size: 1.1rem;
    color: var(--primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* ============ COURSES ============ */
.courses-section {
    padding: 6rem 2.5rem;
    background: #fff;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .9rem;
    border-radius: 8px;
    background: rgba(79, 70, 229, .06);
    border: 1px solid rgba(79, 70, 229, .1);
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 480px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.course-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.course-banner {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-banner i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, .85);
    position: relative;
    z-index: 2;
}

.course-banner .badge-free {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: .25rem .7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.course-body {
    padding: 1.5rem;
}

.course-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: .4rem;
    letter-spacing: -.01em;
}

.course-body p {
    font-size: .82rem;
    color: var(--gray-400);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-meta span {
    font-size: .75rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.course-btn {
    padding: .45rem 1.1rem;
    border-radius: 10px;
    background: var(--gray-900);
    color: #fff;
    font-weight: 700;
    font-size: .75rem;
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.course-btn:hover {
    background: var(--primary);
}

/* ============ STATS ============ */
.stats-section {
    padding: 5rem 2.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stats-row {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-block {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all .3s;
}

.stat-block:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.stat-block .big-num {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-block .big-label {
    font-size: .78rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .25rem;
}

/* ============ CTA ============ */
.cta-section {
    padding: 6rem 2.5rem;
    background: #fff;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--gray-900);
    border-radius: 28px;
    padding: 4rem 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, .3), transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, .2), transparent 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: .75rem;
    position: relative;
    letter-spacing: -.02em;
}

.cta-box p {
    font-size: 1.05rem;
    opacity: .7;
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.cta-box-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2.5rem;
    border-radius: 14px;
    background: #fff;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    position: relative;
}

.cta-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, .15);
    background: var(--gray-100);
}

/* ============ FOOTER ============ */
.lms-footer {
    padding: 3rem 2.5rem 2rem;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: color .2s;
}

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

.footer-copy {
    font-size: .8rem;
    color: var(--gray-300);
}

/* ============ LOGIN MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .15);
    transform: translateY(24px) scale(.96);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    position: relative;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: all .2s;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .25rem;
    letter-spacing: -.02em;
}

.modal-subtitle {
    font-size: .85rem;
    color: var(--gray-400);
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.form-input-wrap {
    position: relative;
}

.form-input-wrap i.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: color .2s;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: .8rem .8rem .8rem 2.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-800);
    outline: none;
    transition: all .2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .08);
}

.form-input-wrap:focus-within i.input-icon {
    color: var(--primary);
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color .2s;
}

.toggle-pw:hover {
    color: var(--gray-500);
}

.submit-btn {
    width: 100%;
    padding: .85rem;
    border-radius: 14px;
    background: var(--gray-900);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all .25s;
    margin-top: .5rem;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .25);
}

.submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ============ TOAST ============ */
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    pointer-events: none;
    align-items: center;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .7s cubic-bezier(.4, 0, .2, 1) both;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

.delay-4 {
    animation-delay: .4s;
}

.delay-5 {
    animation-delay: .5s;
}

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 2rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-apps {
        max-width: 500px;
        margin: 2.5rem auto 0;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:640px) {
    .lms-navbar {
        padding: .75rem 1.25rem;
    }

    .hero-section {
        padding: 6rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-apps {
        margin-top: 2rem;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }

    .courses-section {
        padding: 4rem 1.25rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .modal-box {
        margin: 1rem;
        padding: 1.75rem;
        border-radius: 20px;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

@media(max-width:640px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        gap: .5rem;
    }
}

/* ============ PAGE LOADER / SPLASH ============ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity .5s cubic-bezier(.4, 0, .2, 1),
        visibility .5s cubic-bezier(.4, 0, .2, 1);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo mark */
.loader-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 32px rgba(79, 70, 229, .25);
    animation: loader-pulse 1.8s ease-in-out infinite;
    position: relative;
}

/* Orbiting ring */
.loader-logo::after {
    content: '';
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: rgba(79, 70, 229, .3);
    animation: loader-spin 1.2s linear infinite;
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(79, 70, 229, .25);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 12px 40px rgba(79, 70, 229, .35);
    }
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Brand text */
.loader-brand {
    text-align: center;
}

.loader-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}

.loader-brand-sub {
    font-size: .8rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: .04em;
}

/* Progress bar */
.loader-progress {
    width: 180px;
    height: 3px;
    background: var(--gray-100);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    animation: loader-fill 1.4s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes loader-fill {
    0% {
        width: 0%;
    }

    30% {
        width: 45%;
    }

    60% {
        width: 75%;
    }

    100% {
        width: 100%;
    }
}

/* 3 floating dots under progress */
.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .3;
    animation: loader-dot-bounce .8s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: .15s;
}

.loader-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes loader-dot-bounce {

    0%,
    100% {
        opacity: .3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}