/* =========================
   MASCODE COLOR PALETTE
========================= */

:root {
    --maincolor: #ff2448;
    --yellow: #ffee00;
    --white: whitesmoke;
    --gray: rgb(38, 37, 37);
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--white);
    color: var(--gray);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    height: auto;
}



.container {
    width: min(1120px, 90%);
    margin-inline: auto;
}


/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.35rem;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    margin-bottom: 1rem;

   
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(245, 245, 245, 0.94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid #dedede;
}

.nav {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo span {
    font-weight: 400;
    color: var(--maincolor);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navigation a {
    font-size: 0.9rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.navigation a:hover {
    color: var(--maincolor);
}

.menu-toggle {
    display: none;

    background: none;
    border: none;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    background: var(--gray);

    margin: 5px 0;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 600px;

    display: grid;
    place-items: center;

    text-align: center;

    border-bottom: 1px solid #dedede;

    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    display: block;

    font-weight: 400;

    color: var(--maincolor);
}

.hero-description {
    max-width: 650px;

    margin: 2rem auto;

    font-size: 1.15rem;

    color: #666;
}

.hero-buttons {
    display: flex;
    justify-content: center;

    gap: 1rem;

    margin-top: 2rem;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 1.5rem;

    border-radius: 4px;

    font-weight: 700;
    font-size: 0.9rem;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--maincolor);
    color: #ffffff;

    border: 1px solid var(--maincolor);
}

.button-primary:hover {
    background: var(--gray);
    border-color: var(--gray);
}

.button-secondary {
    background: transparent;

    color: var(--gray);

    border: 1px solid #bbbbbb;
}

.button-secondary:hover {
    border-color: var(--gray);
}


/* =========================
   GENERAL SECTIONS
========================= */
.learning-path{
  background: var(--gray);
  color: white;
}
.learning-path,
.courses,
.why-mascode {
    padding: 120px 0;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 4rem;
}

.section-heading h2 span {
    display: block;

    color: var(--maincolor);
}

.section-heading > p:last-child {
    margin-top: 1.5rem;


    max-width: 600px;
}


/* =========================
   LEARNING PATH
========================= */

.path-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid #dedede;
    border-left: 1px solid #dedede;
}

.path-card {
    padding: 2rem;

    min-height: 280px;

    background: whitesmoke;
color: var(--gray);
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.path-card:hover {

    transform: translateY(-6px);
  
}


.path-card:hover .path-number{
    color: var(--maincolor);
}
.path-number {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 5rem;
}



.path-card p {
    margin-top: 1rem;

    color: #666;
}


/* =========================
   COURSES
========================= */

.courses {
    background: #eeeeee;
}

.course-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1rem;
}

.course-card {
    padding: 2rem;
    min-height: 410px;
 background: var(--gray);
    color: var(--white);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    background-color: var(--maincolor);
   
}

.course-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 3rem;
}

.course-icon {
    font-size: 1.1rem;

    font-weight: 900;


}

.status {
    font-size: 0.7rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}




.course-card h3 {
    font-size: 2rem;

    margin-bottom: 1rem;
}



.course-card ul {
    list-style: none;

    margin-top: 2rem;

    display: grid;

    gap: 0.7rem;
}

.course-card li {
    font-size: 0.9rem;
}

.course-card li::before {
    content: "✓";

  

    font-weight: 800;

    margin-right: 0.6rem;
}

.course-link {
    margin-top: auto;

 

    font-weight: 800;

    font-size: 0.9rem;

    transition: color 0.2s ease;
}

.course-link:hover {
    color: whitesmoke;
}

.disabled-link {
    margin-top: auto;

    color: #999;

    font-size: 0.9rem;
}


/* =========================
   PROJECTS
========================= */

.projects {
    padding: 120px 0;

    background: var(--gray);

    color: var(--white);
}

.project-content {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 5rem;

    align-items: center;
}

.project-text .eyebrow {
    color: var(--maincolor);
}

.project-text > p:not(.eyebrow) {
    color: #bbbbbb;

    margin-top: 1.5rem;

    max-width: 500px;
}

.project-features {
    margin-top: 3rem;

    display: grid;

    gap: 1.2rem;
}

.project-features div {
    display: flex;

    gap: 1rem;

    padding-bottom: 1rem;

    border-bottom: 1px solid #444;
}

.project-features strong {
    color: var(--yellow);

    font-size: 0.75rem;
}

.project-features span {
    color: #dddddd;
}


/* =========================
   PROJECT PREVIEW
========================= */

.browser {
    background: var(--white);

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);
}

.browser-bar {
    height: 42px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 15px;

    background: #dedede;
}

.browser-bar span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #999;
}

.browser-content {
    padding: 50px 35px;

    min-height: 350px;
}

.preview-line {
    width: 70%;
    height: 12px;

    background: #dedede;

    margin-bottom: 12px;
}

.preview-line.large {
    width: 90%;
    height: 30px;

    background: var(--gray);
}

.preview-line.short {
    width: 45%;
}

.preview-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 45px;
}

.preview-grid div {
    height: 100px;

    background: #dedede;
}

.preview-grid div:nth-child(2) {
    /*
        Very small use of yellow.
    */
    border-top: 4px solid var(--yellow);
}

.preview-grid div:nth-child(3) {
    border-top: 4px solid var(--maincolor);
}


/* =========================
   WHY MASCODE
========================= */

.benefits {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1rem;
}

.benefits article {
    padding: 2rem;

    border-top: 2px solid var(--gray);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.benefits article:hover {
    border-color: var(--gray);

    transform: translateY(-3px);
}

.benefits span {
    font-size: 0.75rem;

    font-weight: 800;

}

.benefits h3 {
    margin-top: 4rem;
}

.benefits p {
    margin-top: 1rem;

    color: #666;
}


/* =========================
   FINAL CTA
========================= */

.final-cta {
    padding: 150px 0;

    text-align: center;

    background: var(--gray);

    color: var(--white);
}

.final-cta .eyebrow {
    color: var(--maincolor);
}

.final-cta h2 span {
    color: var(--maincolor);
}

.final-cta p:not(.eyebrow) {
    color: #bbbbbb;

    margin: 1.5rem auto 2rem;

    max-width: 550px;
}

.final-cta .button-primary {
    background: var(--maincolor);

    color: #ffffff;

    border-color: var(--maincolor);
}

.final-cta .button-primary:hover {
    background: var(--white);

    color: var(--gray);

    border-color: var(--white);
}


/* =========================
   FOOTER
========================= */

.footer {
    padding-top: 70px;

   

    border-top: 1px solid #444;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 3rem;
}

.footer-content > div:first-child p {
    color: #888;

    margin-top: 0.5rem;
}

.footer-links {
    display: flex;

    gap: 5rem;
}

.footer-links div {
    display: grid;

    gap: 0.7rem;
}

.footer-links h3 {
    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;

    margin-bottom: 0.5rem;

    color: var(--white);
}

.footer-links a {
    color: #999;

    font-size: 0.85rem;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--maincolor);
}

.copyright {
    margin-top: 70px;

    padding: 20px 0;

    border-top: 1px solid #444;

    color: #777;

    font-size: 0.75rem;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

    .navigation {
        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        padding: 2rem;

        background: var(--white);

        border-bottom: 1px solid #dedede;
    }

    .navigation.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .path-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}


@media (max-width: 600px) {

    .hero {
        min-height: 650px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }

    .learning-path,
    .courses,
    .why-mascode,
    .projects {
        padding: 80px 0;
    }

    .footer-links {
        gap: 3rem;
    }
}