:root {
    --background: #f7f6f2;
    --white: #ffffff;
    --text: #202523;
    --muted: #68716d;
    --border: #dedfd9;

    --navy: #173b67;
    --dark-green: #1f3c3a;
    --green: #159a91;

    --blue-light: #e6edf4;
    --green-light: #e2f0ed;
    --gold-light: #f1e8d7;
    --gray-light: #e7e9e7;

    --purple: #65558f;
    --orange: #bd6b35;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

.eyebrow {
    color: #68766f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #a9c5c0;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: 85px;
    padding: 10px clamp(20px, 5vw, 80px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: rgba(247, 246, 242, .96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(15px);
}

.website-logo {
    display: block;
    width: 235px;
    height: 63px;

    object-fit: cover;
    object-position: center;

    mix-blend-mode: multiply;
}

.navigation {
    display: flex;
    gap: 28px;
}

.navigation a {
    color: #4d5752;
    font-size: 13px;
}

.navigation a:hover {
    color: var(--green);
}

.account-buttons {
    display: flex;
    gap: 10px;
}

.signup-button,
.membership-button {
    padding: 11px 17px;

    border: 1px solid var(--dark-green);
    border-radius: 9px;

    font-size: 12px;
    font-weight: 800;
}

.membership-button {
    background: var(--dark-green);
    color: white;
}

.signup-button:hover {
    background: white;
}

.membership-button:hover {
    background: var(--green);
    border-color: var(--green);
}

.menu-button {
    display: none;

    border: 0;
    background: transparent;

    color: var(--dark-green);
    font-size: 25px;
}


/* HERO */

.hero {
    min-height: 680px;

    padding: 90px clamp(24px, 7vw, 112px);

    display: grid;
    grid-template-columns: 1.05fr .95fr;

    align-items: center;

    gap: 8vw;
}

.hero h1 {
    margin: 20px 0 25px;

    font-family: Georgia, serif;

    font-size: clamp(48px, 5vw, 76px);

    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -.04em;
}

.hero h1 span {
    display: block;

    color: var(--green);

    font-weight: 400;
}

.hero-content > p {
    max-width: 610px;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;
}

.hero-buttons {
    margin: 34px 0 42px;

    display: flex;

    gap: 12px;
}

.primary-button,
.secondary-button {
    padding: 15px 22px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 800;
}

.primary-button {
    background: var(--dark-green);
    color: white;
}

.secondary-button {
    border: 1px solid #b9beba;
}

.primary-button:hover {
    background: var(--green);
}

.secondary-button:hover {
    background: white;
}

.statistics {
    padding-top: 24px;

    display: flex;

    gap: 35px;

    border-top: 1px solid var(--border);
}

.statistics div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.statistics strong {
    font-family: Georgia, serif;

    font-size: 20px;
}

.statistics span {
    color: #7c8480;

    font-size: 9px;

    letter-spacing: .09em;

    text-transform: uppercase;
}


/* DASHBOARD */

.hero-dashboard {
    padding: 29px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: white;

    box-shadow: 0 30px 80px rgba(31, 60, 58, .12);
}

.dashboard-heading {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}

.dashboard-heading small {
    color: var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .13em;
}

.dashboard-heading h2 {
    margin: 7px 0 20px;

    font-family: Georgia, serif;

    font-size: 27px;
}

.status {
    height: fit-content;

    padding: 7px 10px;

    border-radius: 30px;

    background: var(--green-light);

    color: var(--green);

    font-size: 10px;

    font-weight: 800;
}

.dashboard-card {
    padding: 20px;

    display: grid;

    grid-template-columns: 60px 1fr;

    gap: 17px;

    border-radius: 14px;

    background: #f0f5f3;
}

.dashboard-icon {
    width: 60px;
    height: 60px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background: var(--dark-green);

    font-size: 26px;
}

.dashboard-card small {
    color: #71807a;

    font-size: 9px;

    font-weight: 800;
}

.dashboard-card h3 {
    margin: 5px 0;

    font-size: 17px;
}

.dashboard-card p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}

.skill-row {
    margin: 24px 0;

    display: grid;

    gap: 11px;
}

.skill-row > div {
    display: grid;

    grid-template-columns: 70px 1fr;

    align-items: center;

    gap: 10px;

    font-size: 11px;
}

.progress {
    height: 7px;

    overflow: hidden;

    border-radius: 20px;

    background: #e7eae6;
}

.progress div {
    height: 100%;

    border-radius: 20px;

    background: var(--green);
}

.dashboard-button {
    display: block;

    padding: 14px;

    border-radius: 9px;

    background: var(--dark-green);

    color: white;

    font-size: 12px;

    font-weight: 800;

    text-align: center;
}


/* EXAM BAR */

.exam-bar {
    padding: 23px 7vw;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: clamp(22px, 5vw, 70px);

    overflow-x: auto;

    background: #ebe9e2;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.exam-bar span {
    flex-shrink: 0;

    color: #858c88;

    font-size: 9px;

    letter-spacing: .13em;

    text-transform: uppercase;
}

.exam-bar a {
    flex-shrink: 0;

    font-family: Georgia, serif;

    font-weight: 700;

    color: #59625e;
}

.exam-bar a:hover {
    color: var(--green);
}


/* EXAMS */

.exam-section {
    padding: 105px clamp(24px, 7vw, 112px);

    background: white;
}

.section-heading {
    margin-bottom: 45px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;
}

.section-heading h2,
.games-heading h2,
.membership-content h2,
.final-cta h2 {
    margin: 14px 0;

    font-family: Georgia, serif;

    font-size: clamp(37px, 4vw, 55px);

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -.03em;
}

.section-heading > p {
    max-width: 450px;

    color: var(--muted);

    line-height: 1.7;
}

.exam-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.exam-card {
    min-height: 420px;

    padding: 27px;

    display: flex;

    flex-direction: column;

    border: 1px solid var(--border);

    border-radius: 17px;

    background: var(--background);

    transition: .2s ease;
}

.exam-card:hover {
    transform: translateY(-6px);

    border-color: var(--green);

    box-shadow: 0 18px 40px rgba(31, 60, 58, .1);
}

.exam-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 25px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    font-family: Georgia, serif;

    font-size: 25px;
}

.exam-icon.blue {
    background: var(--blue-light);
    color: var(--navy);
}

.exam-icon.green {
    background: var(--green-light);
    color: var(--green);
}

.exam-icon.gold {
    background: var(--gold-light);
    color: #8c6c35;
}

.exam-icon.gray {
    background: var(--gray-light);
    color: #505b56;
}

.card-label,
.game-category {
    color: #7c8580;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .13em;
}

.exam-card h3 {
    margin: 10px 0;

    font-family: Georgia, serif;

    font-size: 29px;
}

.exam-card > p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}

.exam-card ul {
    padding: 0;

    display: grid;

    gap: 8px;

    list-style: none;

    color: #5f6964;

    font-size: 12px;
}

.exam-card li::before {
    content: "✓";

    margin-right: 8px;

    color: var(--green);
}

.card-action {
    margin-top: auto;

    padding-top: 18px;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: var(--dark-green);

    font-size: 12px;

    font-weight: 800;
}


/* BRAIN GAMES */

.games-section {
    padding: 110px clamp(24px, 7vw, 112px);

    background: #203d3a;

    color: white;
}

.games-heading {
    max-width: 720px;

    margin-bottom: 48px;
}

.games-heading p {
    color: #b9cbc7;

    line-height: 1.75;
}

.games-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.game-card {
    min-height: 410px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    border: 1px solid #dce1dd;

    border-radius: 17px;

    background: #ffffff;

    color: var(--text);

    transition: .25s ease;
}

.game-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 25px 50px rgba(0, 0, 0, .2);
}

.game-top {
    margin-bottom: 25px;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}

.game-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    font-family: Georgia, serif;

    font-size: 25px;

    font-weight: bold;
}

.math-game .game-icon {
    background: #e6edf4;

    color: var(--navy);
}

.word-game .game-icon {
    background: var(--green-light);

    color: var(--green);
}

.logic-game .game-icon {
    background: #ece7f4;

    color: var(--purple);
}

.science-game .game-icon {
    background: #f5e9df;

    color: var(--orange);
}

.difficulty {
    padding: 6px 9px;

    border-radius: 20px;

    background: #f0f2ef;

    color: #727c77;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .09em;
}

.game-card h3 {
    margin: 10px 0;

    font-family: Georgia, serif;

    font-size: 25px;
}

.game-card > p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}

.game-skills {
    margin: 15px 0;

    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.game-skills span {
    padding: 6px 9px;

    border-radius: 20px;

    background: #f1f2ef;

    color: #65706a;

    font-size: 9px;
}

.game-footer {
    margin-top: auto;

    padding-top: 17px;

    display: flex;

    align-items: center;

    gap: 18px;

    border-top: 1px solid var(--border);
}

.game-footer > div {
    display: grid;
}

.game-footer strong {
    font-family: Georgia, serif;
}

.game-footer small {
    color: var(--muted);

    font-size: 8px;

    text-transform: uppercase;
}

.play-button {
    margin-left: auto;

    color: var(--green);

    font-size: 11px;

    font-weight: 800;
}

/* ==============================
   BOTTOM GAMES SECTION
================================ */

.games-bottom {
    width: 100%;
    margin: 50px auto 0;
    padding: 32px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    background: #263f3d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

/* LEFT TEXT */

.games-bottom > div {
    flex: 1;
    min-width: 0;
}

.games-bottom strong {
    display: block;
    margin-bottom: 8px;

    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.games-bottom p {
    max-width: 650px;
    margin: 0;

    color: #c9d6d3;
    font-size: 15px;
    line-height: 1.6;
}

/* VIEW ALL GAMES BUTTON */

.all-games-button {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    padding: 14px 22px;

    color: #ffffff;
    background: transparent;

    border: 1px solid #809996;
    border-radius: 10px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    transition: 0.3s ease;
}

.all-games-button:hover {
    color: #263f3d;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* MEMBERSHIP */

.membership-section {
    padding: 105px clamp(24px, 8vw, 130px);

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 8vw;

    align-items: center;

    background: #f0f2ee;
}

.membership-content p {
    color: var(--muted);

    line-height: 1.7;
}

.membership-content ul {
    padding: 0;

    display: grid;

    gap: 12px;

    list-style: none;

    color: #59645f;

    font-size: 13px;
}

.membership-content li::before {
    content: "✓";

    margin-right: 9px;

    color: var(--green);

    font-weight: bold;
}

.membership-cards {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.price-card {
    position: relative;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 17px;

    background: white;
}

.price-card.featured {
    border: 2px solid var(--green);
}

.best-value {
    position: absolute;

    top: -12px;

    right: 20px;

    padding: 6px 10px;

    border-radius: 30px;

    background: var(--green);

    color: white;

    font-size: 8px;

    font-weight: 800;
}

.price-card > span {
    color: var(--green);

    font-size: 9px;

    font-weight: bold;

    letter-spacing: .12em;
}

.price-card h3 {
    font-family: Georgia, serif;
}

.price {
    color: var(--dark-green);

    font-size: 20px;
}

.price strong {
    font-family: Georgia, serif;

    font-size: 43px;
}

.price small {
    color: var(--muted);

    font-size: 11px;
}

.price-card p {
    min-height: 60px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;
}

.price-card a {
    display: block;

    padding: 13px;

    border-radius: 9px;

    background: var(--dark-green);

    color: white;

    text-align: center;

    font-size: 11px;

    font-weight: bold;
}


/* FINAL CTA */

.final-cta {
    padding: 90px 24px;

    background: #254944;

    color: white;

    text-align: center;
}

.final-cta p {
    color: #bdd0cc;
}

.final-cta > div {
    margin-top: 28px;

    display: flex;

    justify-content: center;

    gap: 12px;
}

.white-button,
.transparent-button {
    padding: 14px 20px;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 800;
}

.white-button {
    background: white;

    color: var(--dark-green);
}

.transparent-button {
    border: 1px solid #7c9994;
}


/* FOOTER */

.footer {
    padding: 60px clamp(24px, 7vw, 112px) 30px;

    display: grid;

    grid-template-columns: 2fr repeat(3, 1fr);

    gap: 45px;

    background: #182422;

    color: white;
}

.footer-logo {
    width: 220px;

    height: 62px;

    object-fit: cover;

    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #8fa29d;

    font-size: 12px;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.footer-links strong {
    margin-bottom: 5px;

    font-size: 12px;
}

.footer-links a {
    color: #95a7a2;

    font-size: 11px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    grid-column: 1 / -1;

    padding-top: 20px;

    border-top: 1px solid #34433f;

    color: #788b86;

    font-size: 11px;
}


/* TABLET */

@media (max-width: 1050px) {

    .navigation {
        display: none;
    }

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

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

    .membership-section {
        grid-template-columns: 1fr;
    }
}


/* MOBILE */

@media (max-width: 720px) {

    .site-header {
        min-height: 72px;

        padding: 8px 17px;
    }

    .website-logo {
        width: 175px;

        height: 48px;
    }

    .account-buttons {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: absolute;

        top: 72px;

        left: 0;

        right: 0;

        padding: 18px 22px;

        display: none;

        flex-direction: column;

        background: var(--background);

        border-bottom: 1px solid var(--border);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 8px 0;
    }

    .hero {
        min-height: auto;

        padding: 65px 22px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .statistics {
        gap: 14px;

        justify-content: space-between;
    }

    .exam-section,
    .games-section,
    .membership-section {
        padding: 75px 22px;
    }

    .section-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .exam-grid,
    .games-grid,
    .membership-cards {
        grid-template-columns: 1fr;
    }

    .games-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 22px;

        padding: 26px 24px;
    }

    .all-games-button {
        width: 100%;
    }

    .final-cta > div {
        flex-direction: column;
    }

    .footer {
        grid-template-columns: 1fr 1fr;

        padding: 50px 22px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}
