

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f8f9fc;
    color: #172033;
    line-height: 1.6;
    transition: 0.3s ease;
}

body.dark {
    background: #0d111c;
    color: #f5f7ff;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================
   HEADER
========================= */

.header {
    height: 78px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e9ebf2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dark .header {
    background: rgba(13, 17, 28, 0.9);
    border-color: #222938;
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
}

.logo-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #635bff, #8d62ff);
    color: white;
    font-weight: 800;
}

.menu {
    display: flex;
    gap: 30px;
    margin-left: 70px;
}

.menu a {
    color: #667085;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.menu a:hover,
.menu a.active {
    color: #635bff;
}

.dark .menu a {
    color: #aab1c3;
}

.dark .menu a:hover,
.dark .menu a.active {
    color: #9b92ff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f2f7;
    font-size: 17px;
}

.dark .theme-btn {
    background: #1c2331;
}

.login-btn {
    padding: 11px 20px;
    border-radius: 10px;
    background: #635bff;
    color: white;
    font-weight: 700;
}

.login-btn:hover {
    background: #5048e5;
}

.mobile-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #f1f2f7;
    font-size: 20px;
}

.mobile-menu {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 90px 0 100px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 30px;
    background: #eeedff;
    color: #635bff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 22px;
}

.dark .badge {
    background: #242244;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(44px, 5vw, 70px);
    line-height: 1.08;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #635bff;
}

.hero-text > p {
    max-width: 580px;
    color: #667085;
    font-size: 17px;
    margin-bottom: 30px;
}

.dark .hero-text > p {
    color: #aab1c3;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 11px;
    background: #635bff;
    color: white;
    font-weight: 700;
    transition: 0.25s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: #5048e5;
}

.video-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #344054;
    font-weight: 700;
}

.dark .video-btn {
    color: #e2e6f0;
}

.play-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #d8dce7;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: #635bff;
}

.hero-users {
    margin-top: 42px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9e9ff;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.hero-users strong {
    display: block;
    font-size: 14px;
}

.hero-users small {
    display: block;
    color: #98a2b3;
    font-size: 11px;
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
}

.hero-circle {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        #e9e8ff,
        #f4edff
    );
    position: relative;
    display: grid;
    place-items: center;
}

.dark .hero-circle {
    background: linear-gradient(
        145deg,
        #24243f,
        #1d2236
    );
}

.education-orb {
    position: absolute;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        #635bff,
        #a568ff
    );
    display: grid;
    place-items: center;
    box-shadow: 0 25px 50px rgba(99, 91, 255, 0.3);
    z-index: 2;
}

.education-orb span {
    font-size: 60px;
}

.code-window {
    position: absolute;
    width: 300px;
    height: 190px;
    top: 55px;
    right: -10px;
    border-radius: 15px;
    background: #171b27;
    box-shadow: 0 25px 60px rgba(15, 20, 35, 0.25);
    transform: rotate(7deg);
    z-index: 3;
    overflow: hidden;
}

.code-top {
    height: 34px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #292e3d;
}

.code-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667085;
}

.code-content {
    padding: 22px;
    color: #a9b2c8;
    font-family: monospace;
    font-size: 12px;
}

.code-content p {
    margin-bottom: 9px;
}

.code-content b {
    color: #a78bfa;
}

.code-content span {
    color: #6ee7b7;
}

.indent {
    padding-left: 17px;
}

.floating-card {
    position: absolute;
    z-index: 5;
    background: white;
    padding: 13px 16px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(20, 25, 45, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark .floating-card {
    background: #1b2130;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.floating-card strong {
    display: block;
    font-size: 11px;
}

.floating-card small {
    display: block;
    color: #98a2b3;
    font-size: 9px;
}

.card-one {
    left: 0;
    top: 90px;
}

.card-two {
    right: -15px;
    bottom: 75px;
}

.small-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: #e9fff3;
    color: #12b76a;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.progress-circle {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #eeedff;
    color: #635bff;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
}


/* =========================
   STATS
========================= */

.stats {
    background: #171c2a;
    color: white;
    padding: 35px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat {
    border-right: 1px solid #303647;
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    font-size: 30px;
}

.stat span {
    color: #aab1c3;
    font-size: 12px;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 45px;
}

.section-heading.center {
    display: block;
    text-align: center;
}

.section-label {
    display: inline-block;
    color: #635bff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.section-heading > p {
    max-width: 350px;
    color: #667085;
    font-size: 14px;
}

.dark .section-heading > p {
    color: #aab1c3;
}


/* =========================
   COURSE TOOLS
========================= */

.course-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    width: 280px;
    height: 44px;
    background: white;
    border: 1px solid #e5e7ef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 9px;
}

.dark .search-box {
    background: #171d2b;
    border-color: #293143;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: inherit;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter {
    padding: 9px 14px;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.filter.active,
.filter:hover {
    background: #eeedff;
    color: #635bff;
}

.dark .filter {
    color: #aab1c3;
}

.dark .filter.active {
    background: #29264b;
    color: #a49cff;
}


/* =========================
   COURSES
========================= */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-card {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.dark .course-card {
    background: #151b28;
    border-color: #252d3d;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(25, 30, 50, 0.1);
}

.course-image {
    height: 180px;
    position: relative;
    display: grid;
    place-items: center;
}

.image-blue {
    background: linear-gradient(135deg, #dfe8ff, #c7d4ff);
}

.image-purple {
    background: linear-gradient(135deg, #eee3ff, #dccaff);
}

.image-orange {
    background: linear-gradient(135deg, #ffe6d2, #ffd2ae);
}

.image-green {
    background: linear-gradient(135deg, #d8f6e8, #b9ecd5);
}

.course-icon {
    font-size: 58px;
    font-weight: 800;
    color: #635bff;
}

.image-purple .course-icon {
    color: #8b5cf6;
}

.image-orange .course-icon {
    color: #f97316;
}

.image-green .course-icon {
    color: #10b981;
}

.level {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(255,255,255,0.9);
    color: #344054;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
}

.course-body {
    padding: 18px;
}

.course-category {
    color: #635bff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.course-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.course-body p {
    color: #667085;
    font-size: 11px;
    line-height: 1.6;
    min-height: 53px;
}

.dark .course-body p {
    color: #9da6b8;
}

.course-info {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
    color: #98a2b3;
    font-size: 9px;
}

.dark .course-info {
    border-color: #292f3d;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
}

.course-footer strong {
    font-size: 12px;
}

.course-btn {
    background: #eeedff;
    color: #635bff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}

.course-btn:hover {
    background: #635bff;
    color: white;
}

.empty-message {
    display: none;
    text-align: center;
    padding: 40px;
    color: #98a2b3;
}


/* =========================
   FEATURES
========================= */

.features {
    padding: 100px 0;
    background: #f0f1f7;
}

.dark .features {
    background: #111622;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 45px;
}

.feature-card {
    background: white;
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
}

.dark .feature-card {
    background: #181e2b;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eeedff;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 9px;
}

.feature-card p {
    color: #667085;
    font-size: 11px;
}

.dark .feature-card p {
    color: #9da6b8;
}


/* =========================
   TEACHERS
========================= */

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.teacher-card {
    background: white;
    border-radius: 17px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e8eaf0;
}

.dark .teacher-card {
    background: #151b28;
    border-color: #252d3d;
}

.teacher-photo {
    height: 240px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 100px;
    margin-bottom: 18px;
}

.teacher-one {
    background: #e4e9ff;
}

.teacher-two {
    background: #ffe8de;
}

.teacher-three {
    background: #dff6eb;
}

.teacher-card h3 {
    font-size: 16px;
}

.teacher-card p {
    color: #98a2b3;
    font-size: 11px;
}

.teacher-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.teacher-social span {
    padding: 5px 9px;
    border-radius: 6px;
    background: #f0f1f6;
    color: #667085;
    font-size: 9px;
    font-weight: 700;
}

.dark .teacher-social span {
    background: #242b3a;
}


/* =========================
   TESTIMONIAL
========================= */

.testimonial {
    background: #171c2a;
    color: white;
    padding: 90px 0;
    text-align: center;
}

.quote {
    font-size: 60px;
    line-height: 0.8;
    color: #8078ff;
}

.testimonial h2 {
    max-width: 750px;
    margin: 20px auto 30px;
    font-size: 28px;
    line-height: 1.4;
}

.testimonial-user {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #e4e9ff;
    border-radius: 50%;
}

.testimonial-user strong,
.testimonial-user span {
    display: block;
    text-align: left;
}

.testimonial-user strong {
    font-size: 12px;
}

.testimonial-user span {
    color: #8f98ab;
    font-size: 9px;
}


/* =========================
   CTA
========================= */

.cta {
    padding: 80px 0;
}

.cta-box {
    padding: 55px;
    border-radius: 22px;
    background: linear-gradient(120deg, #635bff, #8469ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    position: relative;
}

.cta-box h2 {
    max-width: 600px;
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.cta-box p {
    max-width: 500px;
    color: #e4e1ff;
    font-size: 13px;
}

.cta-box .section-label {
    color: #dcd8ff;
}

.white-btn {
    flex-shrink: 0;
    padding: 14px 20px;
    border-radius: 10px;
    background: white;
    color: #635bff;
    font-size: 12px;
    font-weight: 800;
}

.white-btn:hover {
    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #11151f;
    color: white;
    padding-top: 65px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 18px;
    color: #8e97a9;
    font-size: 11px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h4 {
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-column a {
    color: #8e97a9;
    font-size: 10px;
}

.footer-column a:hover {
    color: white;
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.socials span {
    font-size: 8px;
    padding: 5px 7px;
    border: 1px solid #303746;
    border-radius: 5px;
    color: #9aa3b4;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #252b38;
    color: #727b8d;
    font-size: 9px;
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 18, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    place-items: center;
    padding: 20px;
}

.modal.show {
    display: grid;
}

.modal-content {
    width: min(420px, 100%);
    background: white;
    color: #172033;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    animation: modalIn 0.25s ease;
}

.dark .modal-content {
    background: #171d2b;
    color: white;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f2f6;
    font-size: 20px;
}

.dark .modal-close {
    background: #252c3b;
    color: white;
}

.modal-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.modal-content h2 {
    font-size: 24px;
}

.modal-content > p {
    color: #98a2b3;
    font-size: 12px;
    margin-bottom: 25px;
}

#loginForm {
    display: flex;
    flex-direction: column;
}

#loginForm label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

#loginForm input {
    height: 44px;
    border: 1px solid #dfe2e9;
    border-radius: 9px;
    padding: 0 12px;
    margin-bottom: 16px;
    outline: none;
    background: transparent;
    color: inherit;
}

#loginForm input:focus {
    border-color: #635bff;
}

.full {
    width: 100%;
}

.video-modal {
    text-align: center;
}

.video-placeholder {
    height: 220px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25283f, #171b29);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.big-play {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #635bff;
    color: white;
}


/* =========================
   TOAST
========================= */

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #171c2a;
    color: white;
    padding: 13px 17px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.3s;
    z-index: 4000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast span {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #12b76a;
    display: grid;
    place-items: center;
}

.toast p {
    font-size: 10px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

    .menu {
        margin-left: 20px;
        gap: 18px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-circle {
        width: 350px;
        height: 350px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 800px) {

    .menu,
    .login-btn {
        display: none;
    }

    .mobile-btn {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid #e5e7ef;
        padding: 20px;
        z-index: 999;
    }

    .dark .mobile-menu {
        background: #151b28;
        border-color: #252d3d;
    }

    .mobile-menu.show {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu a {
        font-weight: 600;
        font-size: 14px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-users {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 15px;
    }

    .course-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .teacher-card {
        max-width: 400px;
        width: 100%;
        margin: auto;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

}

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-circle {
        width: 290px;
        height: 290px;
    }

    .code-window {
        width: 220px;
        height: 145px;
        top: 35px;
    }

    .education-orb {
        width: 100px;
        height: 100px;
    }

    .education-orb span {
        font-size: 43px;
    }

    .card-one {
        left: -5px;
        top: 60px;
    }

    .card-two {
        right: -5px;
        bottom: 50px;
    }

    .floating-card {
        padding: 9px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 0;
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .testimonial h2 {
        font-size: 21px;
    }

    .cta-box h2 {
        font-size: 27px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding-top: 45px;
    }

}
