:root {
    --sky: #46acf6;
    --sky-bright: #66c8ff;
    --navy: #263b8c;
    --navy-dark: #14205c;
    --navy-deep: #0b174c;
    --yellow: #ffde59;
    --yellow-deep: #ffbf18;
    --cyan: #4dd8e8;
    --cream: #fff9e9;
    --white: #ffffff;
    --muted: #d9ecff;
    --line: rgba(255, 255, 255, 0.2);
    --shadow: 0 24px 60px rgba(7, 25, 87, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 12%, rgba(77, 216, 232, 0.45), transparent 22%),
        radial-gradient(circle at 88% 8%, rgba(255, 222, 89, 0.2), transparent 20%),
        linear-gradient(180deg, var(--sky) 0%, #258ee7 42%, var(--navy) 100%);
}

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

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.hero,
.game-strip,
.content-section,
.modes-section,
.download-panel,
.site-footer {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.08rem;
    font-weight: 900;
}

.brand:hover,
.top-nav a:hover {
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(7, 25, 87, 0.25);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.top-nav a {
    border-radius: 999px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    font-weight: 800;
}

.top-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
    gap: 42px;
    align-items: center;
    padding: 58px 0 52px;
}

.eyebrow,
.mode-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--navy-deep);
    background: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.download-panel h2 {
    margin: 16px 0;
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.hero h1 {
    font-size: clamp(3.8rem, 7.5vw, 7rem);
    text-shadow: 0 7px 0 rgba(20, 32, 92, 0.35);
}

.hero h1 span {
    color: var(--yellow);
}

.hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.store-badges a {
    display: flex;
    transition: transform 0.18s ease;
}

.store-badges a:hover {
    transform: translateY(-2px);
}

.store-badge {
    width: 168px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(7, 25, 87, 0.28));
}

.mode-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.mode-pills span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(20, 32, 92, 0.2);
    font-size: 0.86rem;
    font-weight: 800;
}

.hero-art {
    position: relative;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -1;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.13);
    transform: rotate(2deg);
}

.hero-art img {
    width: 100%;
    border: 6px solid rgba(255, 255, 255, 0.74);
    border-radius: 30px;
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.game-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(20, 32, 92, 0.42);
    box-shadow: var(--shadow);
}

.game-strip article {
    padding: 24px;
}

.game-strip article + article {
    border-left: 1px solid var(--line);
}

.game-strip strong {
    display: block;
    margin-bottom: 6px;
    color: var(--yellow);
    font-size: 1.45rem;
}

.game-strip span {
    color: var(--muted);
    line-height: 1.5;
}

.content-section,
.modes-section {
    padding: 82px 0 30px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-heading h2,
.download-panel h2 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.section-heading p,
.steps-grid p,
.modes-grid p,
.download-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.section-heading p {
    margin: 0;
    font-size: 1.08rem;
}

.steps-grid,
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.steps-grid article,
.modes-grid article {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    background: rgba(20, 32, 92, 0.42);
    box-shadow: 0 18px 44px rgba(7, 25, 87, 0.2);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--navy-deep);
    background: var(--yellow);
    font-size: 1.12rem;
    font-weight: 900;
    box-shadow: 0 7px 0 var(--yellow-deep);
}

.steps-grid h3,
.modes-grid h3 {
    margin: 20px 0 8px;
    font-size: 1.35rem;
}

.steps-grid p,
.modes-grid p {
    margin: 0;
}

.modes-grid article {
    min-height: 250px;
    background:
        radial-gradient(circle at 100% 0%, rgba(77, 216, 232, 0.22), transparent 34%),
        rgba(20, 32, 92, 0.55);
}

.modes-grid .daily-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 222, 89, 0.28), transparent 36%),
        rgba(20, 32, 92, 0.55);
}

.mode-label {
    color: var(--white);
    background: var(--navy);
}

.download-panel {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    margin-top: 82px;
    margin-bottom: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 222, 89, 0.28), transparent 32%),
        linear-gradient(135deg, rgba(70, 172, 246, 0.45), rgba(20, 32, 92, 0.72));
    box-shadow: var(--shadow);
}

.download-panel img {
    width: 130px;
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(7, 25, 87, 0.3);
}

.download-panel h2 {
    margin: 12px 0 8px;
}

.download-panel p {
    margin: 0;
}

.download-store-badges {
    justify-content: flex-end;
    max-width: 350px;
    margin-top: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding: 28px 0 38px;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 720px;
    }

    .steps-grid,
    .modes-grid {
        grid-template-columns: 1fr;
    }

    .modes-grid article {
        min-height: 0;
    }

    .download-panel {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .download-panel img {
        width: 100px;
    }

    .download-panel .download-store-badges {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .top-nav a {
        padding-left: 0;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
    }

    .hero-copy > .eyebrow {
        align-self: flex-start;
        order: 1;
    }

    .hero-copy > h1 {
        order: 2;
    }

    .hero-copy > .store-badges {
        order: 3;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .hero-copy > p {
        order: 4;
    }

    .hero-copy > .mode-pills {
        order: 5;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 16vw, 4.7rem);
    }

    .hero-art::before {
        inset: -10px;
    }

    .hero-art img {
        border-width: 4px;
        border-radius: 20px;
    }

    .game-strip {
        grid-template-columns: 1fr;
    }

    .game-strip article + article {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .content-section,
    .modes-section {
        padding-top: 62px;
    }

    .download-panel {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .download-panel img {
        width: 72px;
        border-radius: 18px;
    }

    .download-panel .eyebrow {
        font-size: 0.66rem;
    }

    .download-panel h2 {
        font-size: 2rem;
    }

    .store-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .store-badge {
        width: 100%;
        max-width: 168px;
    }
}
