* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f7f7fb;
    color: #20202d;
    line-height: 1.6;
}


/* ================= HEADER ================= */

.header {
    height: 78px;
    background: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 8%;

    border-bottom: 1px solid #eeeeF3;

    position: sticky;
    top: 0;

    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 43px;
    height: 43px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #6257d9;
    color: white;

    border-radius: 11px;

    font-weight: bold;
    font-size: 18px;
}

.logo h1 {
    font-size: 17px;
}

.logo p {
    color: #89899a;
    font-size: 11px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #666677;
    text-decoration: none;
    font-size: 14px;

    transition: 0.2s;
}

nav a:hover {
    color: #6257d9;
}


/* ================= HERO ================= */

.hero {
    min-height: 530px;

    padding: 80px 10%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 70px;

    background:
        linear-gradient(
            135deg,
            #f7f6ff,
            #ffffff
        );
}

.hero-left {
    max-width: 580px;
}

.subtitle {
    color: #6257d9;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.hero h2 {
    font-size: 62px;

    line-height: 1.05;

    letter-spacing: -2px;
}

.hero h2 span {
    color: #6257d9;
}

.hero-description {
    color: #77778a;

    max-width: 480px;

    margin: 25px 0 30px;
}

.main-button {
    display: inline-block;

    padding: 12px 22px;

    background: #6257d9;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;

    transition: 0.2s;
}

.main-button:hover {
    background: #4f45c2;

    transform: translateY(-2px);
}

.main-button span {
    margin-left: 8px;
}


/* ================= CODE CARD ================= */

.code-card {
    width: 420px;

    background: #20202e;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 25px 50px
        rgba(40, 35, 80, 0.18);

    transform: rotate(2deg);
}

.code-header {
    height: 40px;

    background: #29293a;

    display: flex;

    align-items: center;

    gap: 7px;

    padding-left: 17px;
}

.code-header span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #777;
}

.code-body {
    padding: 35px;

    color: #eeeeF5;

    font-family: Consolas, monospace;

    font-size: 15px;
}

.code-body p {
    margin-bottom: 12px;
}

.indent {
    padding-left: 20px;
}

.indent-2 {
    padding-left: 40px;
}

.purple {
    color: #c39cff;
}

.green {
    color: #8ee6a8;
}

.orange {
    color: #ffc078;
}


/* ================= INFORMATION ================= */

.information {
    background: white;

    padding: 28px 10%;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    border-bottom:
        1px solid #eeeeF3;
}

.info-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.info-icon {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: #f0efff;

    display: flex;

    align-items: center;

    justify-content: center;
}

.info-item small {
    display: block;

    font-size: 9px;

    color: #9999a9;

    letter-spacing: 1px;
}

.info-item strong {
    display: block;

    font-size: 14px;
}


/* ================= WEEKS ================= */

.weeks {
    padding: 90px 8%;
}

.section-heading {
    text-align: center;

    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 38px;

    margin-bottom: 8px;
}

.section-heading > p:last-child {
    color: #858597;
}


/* ================= WEEK GRID ================= */

.week-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* ================= WEEK CARD ================= */

.week-card {
    background: white;

    border: 1px solid #eeeeF3;

    border-radius: 16px;

    padding: 25px;

    display: flex;

    gap: 18px;

    transition: 0.25s;
}

.week-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px
        rgba(60, 50, 110, 0.10);

    border-color: #dcd9ff;
}

.week-number {
    font-size: 28px;

    font-weight: bold;

    color: #6257d9;

    opacity: 0.25;
}

.week-content {
    flex: 1;
}

.week-label {
    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;

    color: #6257d9;
}

.week-content h3 {
    font-size: 20px;

    margin: 5px 0 15px;
}

.view-button {
    display: inline-block;

    text-decoration: none;

    color: #6257d9;

    font-weight: bold;

    font-size: 13px;

    transition: 0.2s;
}

.view-button span {
    margin-left: 7px;

    transition: 0.2s;
}

.view-button:hover {
    color: #4f45c2;
}

.view-button:hover span {
    margin-left: 12px;
}


/* ================= ABOUT ================= */

.about {
    background: #20202e;

    color: white;

    padding: 65px 10%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about h2 {
    font-size: 35px;
}

.about .subtitle {
    color: #a59cff;
}

.about > p {
    color: #b5b5c5;

    font-size: 14px;
}


/* ================= FOOTER ================= */

footer {
    background: #171720;

    color: #8c8c9b;

    padding: 22px 8%;

    display: flex;

    justify-content: space-between;

    font-size: 12px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 950px) {

    .hero {
        padding: 60px 7%;
    }

    .code-card {
        width: 360px;
    }

    .week-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 750px) {

    .header {
        padding: 0 5%;
    }

    nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero h2 {
        font-size: 48px;
    }

    .code-card {
        width: 100%;

        transform: none;
    }

    .information {
        grid-template-columns: 1fr;
    }

    .week-grid {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    footer {
        flex-direction: column;

        gap: 8px;
    }
}


@media (max-width: 450px) {

    .hero h2 {
        font-size: 40px;
    }

    .weeks {
        padding: 60px 5%;
    }

    .week-card {
        padding: 20px;
    }
}