:root {
    --blue: #0053ee;
    --blue-dark: #003db5;
    --blue-light: #edf4ff;
    --text: #17243a;
    --muted: #64748b;
    --border: #dce6f4;
    --background: #f7f9fd;
    --white: #ffffff;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

a {
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

/* STICKY HEADER */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(18, 49, 94, .035);
}

.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.3px;
}

.logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    color: var(--white);
    background: var(--blue);
    border-radius: 13px;
    font-size: 17px;
    box-shadow: 0 5px 14px rgba(0, 83, 238, .2);
}

.brand-text {
    font-size: 14px;
    line-height: 1.4;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-blue {
    color: var(--white);
    background: var(--blue);
}

.btn-blue:hover {
    background: var(--blue-dark);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 82px 18px 78px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(95, 157, 255, .45),
            transparent 29%
        ),
        linear-gradient(
            125deg,
            #073b96 0%,
            #0053ee 58%,
            #197bff 100%
        );
}

.hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -260px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .035),
        0 0 0 90px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 23px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 30px;
    background: rgba(255, 255, 255, .1);
    color: #edf4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 23px;
    font-size: clamp(33px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -1.4px;
}

.hero-description {
    max-width: 760px;
    margin: 0 auto;
    color: #e7efff;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 31px;
}

.btn-white {
    color: #063b9c;
    background: var(--white);
}

.btn-white:hover {
    background: #edf4ff;
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .17);
}

/* SECTION HEADINGS */

.intro-section {
    padding: 57px 0 27px;
}

.section-heading {
    margin-bottom: 25px;
}

.kicker {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.section-heading h2,
.games-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.7px;
}

.section-description {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

/* FEATURES */

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature {
    min-width: 0;
    min-height: 175px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 7px 24px rgba(24, 61, 115, .035);
}

.feature-icon,
.game-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 13px;
    font-size: 22px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* GAME LIST */

.games-section {
    padding: 38px 0 70px;
}

.games-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.games-heading .section-heading {
    margin: 0;
}

.game-count {
    flex-shrink: 0;
    padding: 8px 14px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(24, 61, 115, .04);
    transition:
        transform .2s,
        border-color .2s,
        box-shadow .2s;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: #a5c5ff;
    box-shadow: 0 14px 30px rgba(24, 61, 115, .09);
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 17px;
}

.game-icon {
    margin: 0;
}

.game-number {
    color: #8290a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.game-title {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.game-description {
    flex: 1;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.game-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #edf1f8;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.game-link:hover {
    color: var(--blue-dark);
}

.empty-state {
    padding: 38px 24px;
    background: var(--white);
    border: 1px dashed #b7c9e5;
    border-radius: var(--radius);
    text-align: center;
}

.empty-icon {
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 36px;
}

.empty-state h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.empty-state p {
    max-width: 700px;
    margin: 8px auto;
    color: var(--muted);
}

.empty-state code {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--blue-light);
    color: var(--blue-dark);
}

/* CONTACT */

.contact-section {
    padding: 0 0 70px;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 35px;
    color: var(--white);
    background: linear-gradient(120deg, #102e63, #0053ee);
    border-radius: 23px;
}

.contact-content {
    max-width: 680px;
}

.contact-kicker {
    margin: 0 0 8px;
    color: #bcd4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-content h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.3;
}

.contact-content p:not(.contact-kicker) {
    margin: 12px 0 0;
    color: #e0eaff;
}

.contact-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-contact {
    color: var(--white);
    background: #1673ff;
}

.btn-contact:hover {
    background: #2780ff;
}

/* FOOTER */

.footer {
    padding: 22px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.footer p {
    margin: 0;
}

/* TABLET */

@media (max-width: 900px) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* MOBILE */

@media (max-width: 560px) {
    .container {
        width: calc(100% - 28px);
    }

    .nav {
        min-height: 64px;
        gap: 8px;
    }

    .brand {
        gap: 8px;
        font-size: 12px;
    }

    .logo {
        width: 37px;
        height: 37px;
        border-radius: 11px;
        font-size: 15px;
    }

    .brand-text {
        font-size: 11px;
    }

    .brand-text small {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .nav-button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .hero {
        padding: 57px 15px 60px;
    }

    .hero h1 {
        font-size: clamp(30px, 8vw, 39px);
        letter-spacing: -.8px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: .9px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 25px auto 0;
    }

    .intro-section {
        padding-top: 39px;
    }

    .features,
    .games-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature {
        min-height: auto;
        padding: 20px;
    }

    .games-section {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .games-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .game-card {
        padding: 20px;
    }

    .contact-section {
        padding-bottom: 45px;
    }

    .contact-panel {
        gap: 20px;
        padding: 25px 20px;
        border-radius: 18px;
    }

    .contact-content h2 {
        font-size: 25px;
    }

    .contact-actions {
        width: 100%;
        flex-direction: column;
    }

    .contact-actions .btn {
        width: 100%;
    }
}
