:root {

    --black: #030305;

    --card: #0b0b14;

    --card2: #101020;

    --border: #292044;

    --text: #f7f5ff;

    --muted: #aaa4bd;

    --violet: #7c3aed;

    --blue: #2563eb;

    --cyan: #38bdf8;

    --green: #22c55e;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background:
        radial-gradient(
            circle at 80% 0%,
            #21134d 0%,
            #08070e 35%,
            #030305 80%
        );

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        Arial,
        sans-serif;
}


.container {

    width: min(1200px, 100%);

    margin: auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* ================= HEADER ================= */

header {

    padding: 55px 0;

    border-bottom:
        1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            #050509,
            #160b32,
            #07182d
        );
}


.badge {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 50px;

    background: #17102f;

    border: 1px solid #4a2b92;

    color: #cbbcff;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;
}


h1 {

    margin: 20px 0 15px;

    font-size:
        clamp(35px, 6vw, 62px);

    line-height: 1;

    letter-spacing: -3px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #c3adff,
            #65c4ff
        );

    -webkit-background-clip: text;

    color: transparent;
}


header p {

    max-width: 850px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}


/* ================= NAV ================= */

nav {

    position: sticky;

    top: 0;

    z-index: 20;

    background: #05050ae8;

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid var(--border);
}


.nav {

    display: flex;

    gap: 10px;

    padding-top: 12px;

    padding-bottom: 12px;

    overflow-x: auto;
}


.tab {

    border: 1px solid var(--border);

    background: #0d0d17;

    color: #aaa3bd;

    padding: 11px 17px;

    border-radius: 12px;

    font-weight: 800;

    white-space: nowrap;

    cursor: pointer;

    transition: .25s;
}


.tab:hover {

    transform:
        translateY(-2px);

    border-color:
        #6949a5;
}


.tab.active {

    color: white;

    background:
        linear-gradient(
            135deg,
            #6024c7,
            #185bc1
        );

    border-color: #7954dc;
}


/* ================= MAIN ================= */

main {

    padding-top: 30px;

    padding-bottom: 70px;
}


.progress-card {

    padding: 22px;

    border-radius: 20px;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            #090910,
            #0e0e1c
        );

    box-shadow:
        0 20px 60px #0008;
}


.progress-top {

    display: flex;

    justify-content: space-between;

    gap: 20px;
}


.progress-top span {

    display: block;

    color: var(--muted);

    font-size: 13px;

    margin-top: 5px;
}


.progress-bar {

    height: 12px;

    margin-top: 16px;

    background: #171622;

    border-radius: 50px;

    overflow: hidden;
}


#progressFill {

    width: 0%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--violet),
            var(--cyan)
        );

    box-shadow:
        0 0 20px #7140ff;

    transition:
        width .5s ease;
}


.stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;

    margin-top: 15px;
}


.stats div {

    padding: 14px;

    background: #0d0d18;

    border: 1px solid var(--border);

    border-radius: 13px;
}


.stats span {

    display: block;

    color: var(--muted);

    font-size: 13px;
}


.stats b {

    display: block;

    font-size: 22px;

    margin-top: 5px;
}


/* ================= DAY CARDS ================= */

h2 {

    margin-top: 32px;

    margin-bottom: 15px;
}


.day-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );

    gap: 18px;
}


.day-card {

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #090910,
            #100e1c
        );

    cursor: pointer;

    box-shadow:
        0 15px 50px #0007;

    transition:
        transform .3s,
        border-color .3s,
        box-shadow .3s;

    animation:
        cardIn .5s ease both;
}


@keyframes cardIn {

    from {

        opacity: 0;

        transform:
            translateY(25px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }
}


.day-card:hover {

    transform:
        translateY(-7px)
        scale(1.01);

    border-color:
        #6949a5;

    box-shadow:
        0 25px 70px #000b,
        0 0 35px #5b21b633;
}


.day-card.completed {

    border-color:
        #19653f;
}


.card-header {

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #24104d,
            #10264c
        );

    border-bottom:
        1px solid #33275e;
}


.card-header h3 {

    margin: 0 0 7px;

    font-size: 20px;
}


.card-header span {

    color: #aeb8d2;

    font-size: 12px;
}


.card-body {

    padding: 18px;
}


.learning-title {

    color: #8ec9ff;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.topic-preview {

    padding: 9px 11px;

    margin-top: 7px;

    border-radius: 9px;

    background: #0c0c16;

    border: 1px solid #27223b;

    color: #d9d5e7;
}


.project {

    margin-top: 15px;

    padding: 14px;

    border-radius: 13px;

    background: #0a1626;

    border: 1px solid #173c66;
}


.challenge {

    margin-top: 14px;

    padding: 14px;

    border-radius: 13px;

    background: #160c2a;

    border: 1px solid #4a2584;
}


.challenge strong {

    color: #d0bfff;
}


.buttons {

    display: flex;

    gap: 9px;

    margin-top: 15px;
}


button {

    font-family: inherit;
}


.complete-btn {

    flex: 1;

    padding: 11px;

    border: none;

    border-radius: 10px;

    color: white;

    font-weight: 800;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #6d28d9,
            #2563eb
        );
}


.complete-btn.done {

    background:
        #155c37;
}


.open-btn {

    padding: 11px 15px;

    border-radius: 10px;

    background: #121221;

    color: white;

    border: 1px solid #332d4c;

    cursor: pointer;
}


/* ================= MODAL ================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 18px;

    background: #000d;

    backdrop-filter: blur(8px);
}


.modal.show {

    display: flex;
}


.lesson {

    width:
        min(920px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 28px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #080810,
            #0e0c19
        );

    border: 1px solid #4e3980;

    box-shadow:
        0 30px 120px #000;

    animation:
        lessonOpen .45s
        cubic-bezier(.2,.8,.2,1);
}


@keyframes lessonOpen {

    from {

        opacity: 0;

        transform:
            translateY(50px)
            scale(.92);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }
}


.close {

    float: right;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    border: 1px solid #332d4c;

    background: #151421;

    color: white;

    font-size: 22px;

    cursor: pointer;
}


/* ================= LESSON ================= */

.lesson-hero {

    padding: 22px;

    margin-bottom: 25px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #211044,
            #0d2646
        );

    border: 1px solid #493577;
}


.lesson-hero h2 {

    margin:
        7px 0 10px;

    font-size: 34px;
}


.lesson-tag {

    color: #8ec9ff;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* TOPIC LESSON CARD */

.topic {

    margin-top: 15px;

    padding: 18px;

    border-radius: 16px;

    background: #0b0b14;

    border: 1px solid #282344;

    animation:
        topicIn .45s both;
}


.topic:nth-child(2) {

    animation-delay: .05s;
}


.topic:nth-child(3) {

    animation-delay: .10s;
}


.topic:nth-child(4) {

    animation-delay: .15s;
}


@keyframes topicIn {

    from {

        opacity: 0;

        transform:
            translateX(-20px);

    }

    to {

        opacity: 1;

        transform:
            translateX(0);

    }
}


.topic h3 {

    margin: 0 0 10px;

    color: #d6c5ff;
}


.definition {

    color: #d5d1df;

    line-height: 1.7;
}


.example {

    margin-top: 12px;

    padding: 13px;

    border-radius: 10px;

    background: #050812;

    border-left:
        3px solid var(--cyan);

    color: #bfeaff;

    font-family:
        monospace;

    white-space: pre-wrap;
}


.lesson-section {

    margin-top: 25px;
}


.section-label {

    color: #8ec9ff;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}


.lesson-project {

    margin-top: 10px;

    padding: 17px;

    border-radius: 15px;

    background: #0a1626;

    border: 1px solid #173c66;

    line-height: 1.7;
}


.lesson-question {

    margin-top: 10px;

    padding: 17px;

    border-radius: 15px;

    background: #160c2a;

    border: 1px solid #4a2584;

    line-height: 1.7;
}


.lesson ol {

    line-height: 1.9;

    color: #d3cfdf;
}


.lesson-complete {

    width: 100%;

    padding: 15px;

    margin-top: 20px;

    border: none;

    border-radius: 12px;

    color: white;

    font-weight: 900;

    font-size: 15px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );
}


/* ================= FOOTER ================= */

footer {

    padding: 35px;

    text-align: center;

    color: #746f87;
}


/* ================= MOBILE ================= */

@media(max-width:700px) {

    .stats {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .day-grid {

        grid-template-columns: 1fr;
    }


    .buttons {

        flex-direction: column;
    }


    .lesson {

        padding: 20px;
    }


    .lesson-hero h2 {

        font-size: 27px;
    }

}