:root {

    --primary: #1F4296;
    --primary-dark: #23306C;

    --background: #EEF3FF;
    --surface: #FFFFFF;

    --text: #24324B;
    --muted: #7B8798;

    --border: #E1E7F0;

}


/* =========================
   RESET
========================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: "Inter", sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}


/* =========================
   HEADER
========================= */

header {

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    box-shadow:
        0 4px 20px rgba(0, 0, 0, .08);

}


.header-container {

    width: 100%;

    max-width: 1100px;

    margin: auto;

    padding: 18px 20px;

    display: flex;

    align-items: center;

}


.header-brand {

    display: flex;

    align-items: center;

    gap: 18px;

}


.logo-top {

    width: 64px;
    height: 64px;

    object-fit: contain;

    flex-shrink: 0;

}


.header-title h2 {

    color: #FFFFFF;

    font-size: 1.15rem;

    font-weight: 700;

    letter-spacing: .4px;

}


.header-title p {

    margin-top: 2px;

    color: rgba(255, 255, 255, .82);

    font-size: .9rem;

}


/* =========================
   MAIN
========================= */

.container {

    width: 100%;

    max-width: 1100px;

    margin: auto;

    padding: 50px 20px 70px;

    flex: 1;

}


/* =========================
   PAGE HEADING
========================= */

.page-heading {

    margin-bottom: 30px;

}


.page-heading h1 {

    color: var(--primary-dark);

    font-size: 2rem;

    font-weight: 700;

    letter-spacing: -.4px;

}


.page-heading p {

    margin-top: 5px;

    color: var(--muted);

}


/* =========================
   GENERATION GRID
========================= */

.generation-list {

    display: grid;

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

    gap: 20px;

}


/* =========================
   QUICK ACCESS
========================= */

.quick-access {

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

    margin-bottom: 55px;

}


/* =========================
   GENERATION CARD
========================= */

.generation-card {

    display: block;

    position: relative;

    padding: 28px;

    background: var(--surface);

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

    border-radius: 18px;

    color: var(--text);

    text-decoration: none;

    overflow: hidden;

    box-shadow:
        0 5px 18px rgba(35, 48, 108, .05);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

}


.generation-card:hover {

    transform: translateY(-5px);

    border-color:
        rgba(31, 66, 150, .3);

    box-shadow:
        0 14px 30px rgba(35, 48, 108, .12);

}


.generation-card:active {

    transform: translateY(-1px);

}


/* =========================
   GENERATION NUMBER
========================= */

.generation-number {

    margin-bottom: 18px;

    color: var(--primary);

    font-size: 3rem;

    font-weight: 700;

    line-height: 1;

    letter-spacing: -1px;

}


/* =========================
   GENERATION NAME
========================= */

.generation-name {

    color: var(--text);

    font-size: 1.05rem;

    font-weight: 700;

    line-height: 1.35;

}


/* =========================
   GENERATION RANGE
========================= */

.generation-range {

    display: inline-block;

    margin-top: 10px;

    color: var(--muted);

    font-size: .9rem;

    font-weight: 600;

}


/* =========================
   CARD ARROW
========================= */

.generation-arrow {

    position: absolute;

    right: 24px;
    bottom: 24px;

    color: var(--primary);

    font-size: 1.3rem;

    transition:
        transform .2s ease;

}


.generation-card:hover .generation-arrow {

    transform: translateX(4px);

}


/* =========================
   GENERATION SECTION
========================= */

.generation-heading {

    margin-bottom: 25px;

    padding-top: 35px;

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

}


.generation-heading h2 {

    color: var(--primary-dark);

    font-size: 1.4rem;

    font-weight: 700;

    letter-spacing: -.3px;

}


.generation-heading p {

    margin-top: 4px;

    color: var(--muted);

    font-size: .9rem;

}


/* =========================
   LOAD ERROR
========================= */

.load-error {

    grid-column: 1 / -1;

    padding: 40px;

    background: var(--surface);

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

    border-radius: 16px;

    text-align: center;

}


.load-error h2 {

    margin-bottom: 8px;

    color: var(--primary-dark);

    font-size: 1.2rem;

}


.load-error p {

    color: var(--muted);

    font-size: .9rem;

}


/* =========================
   FOOTER
========================= */

footer {

    margin-top: 20px;

    padding: 45px 20px;

    background: var(--surface);

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

    text-align: center;

}


.footer-logo {

    width: 230px;

    max-width: 80%;

    margin-bottom: 18px;

}


footer p {

    color: #6B7280;

    font-size: .9rem;

    line-height: 1.8;

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .generation-list {

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

    }


    .quick-access {

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

    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    /* HEADER */

    .header-container {

        padding: 16px;

    }


    .logo-top {

        width: 54px;
        height: 54px;

    }


    .header-title h2 {

        font-size: 1rem;

    }


    .header-title p {

        font-size: .8rem;

    }


    /* MAIN */

    .container {

        padding:
            35px 16px 55px;

    }


    /* PAGE HEADING */

    .page-heading {

        margin-bottom: 25px;

    }


    .page-heading h1 {

        font-size: 1.6rem;

    }


    /* GENERATION GRID */

    .generation-list {

        grid-template-columns: 1fr;

        gap: 14px;

    }


    /* QUICK ACCESS */

    .quick-access {

        grid-template-columns: 1fr;

        gap: 14px;

        margin-bottom: 40px;

    }


    /* GENERATION CARD */

    .generation-card {

        padding: 24px;

        border-radius: 15px;

    }


    .generation-number {

        font-size: 2.6rem;

    }


    /* GENERATION SECTION */

    .generation-heading {

        padding-top: 28px;

        margin-bottom: 20px;

    }


    .generation-heading h2 {

        font-size: 1.25rem;

    }


    /* FOOTER */

    footer {

        margin-top: 0;

        padding: 35px 20px;

    }


    .footer-logo {

        width: 190px;

    }

}