/* Layout and Section Styles */

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: calc(82vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 820px);
    align-items: center;
    justify-content: center;
    padding: 5rem 0 5rem;
    text-align: center;
}

.hero-copy,
.section,
.download-section {
    animation: fade-in-up 0.7s ease both;
}

.hero-copy {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent-mint);
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

body.light .eyebrow {
    color: var(--accent-strong);
}

.hero h1,
.section-heading h2,
.arena-copy h2,
.download-section h2 {
    font-family: "Sora", "Inter", sans-serif;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-primary);
}

body.light .hero h1 {
    color: var(--text-primary-light);
}

.tagline {
    max-width: 58ch;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.18rem;
    line-height: 1.72;
}

body.light .tagline {
    color: var(--text-muted-light);
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.hero-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-metrics strong {
    color: var(--text-primary);
}

body.light .hero-metrics span {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line-light);
    color: var(--text-muted-light);
}

body.light .hero-metrics strong {
    color: var(--text-primary-light);
}

.section {
    padding: 5.5rem 0;
}

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

.section-heading.compact {
    margin-bottom: 1.35rem;
}

.section-heading h2,
.arena-copy h2,
.download-section h2 {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
}

.section-heading p:not(.eyebrow),
.arena-copy p:not(.eyebrow),
.download-section p:not(.eyebrow) {
    max-width: 62ch;
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

body.light .section-heading p:not(.eyebrow),
body.light .arena-copy p:not(.eyebrow),
body.light .download-section p:not(.eyebrow) {
    color: var(--text-muted-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.games-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

body.light .games-section {
    border-color: var(--line-light);
}

.game-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.game-list span {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: "Sora", "Inter", sans-serif;
    font-weight: 700;
    text-align: center;
}

.game-list span:nth-child(3n + 1) {
    border-color: rgba(79, 149, 244, 0.46);
}

.game-list span:nth-child(3n + 2) {
    border-color: rgba(45, 212, 191, 0.42);
}

.game-list span:nth-child(3n + 3) {
    border-color: rgba(249, 115, 99, 0.4);
}

body.light .game-list span {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-primary-light);
    border-color: var(--line-light);
}

.arena-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
}

.arena-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.arena-steps article {
    min-height: 220px;
    padding: 1.35rem;
}

.arena-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 1rem;
    padding: 0 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(79, 149, 244, 0.16);
    color: var(--accent-mint);
    font-weight: 900;
}

body.light .arena-steps span {
    color: var(--accent-strong);
    background: rgba(79, 149, 244, 0.12);
}

.download-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 5rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(79, 149, 244, 0.18), rgba(45, 212, 191, 0.08), rgba(249, 115, 99, 0.12));
    box-shadow: var(--shadow-md);
}

body.light .download-section {
    border-color: var(--line-light);
    background: linear-gradient(135deg, rgba(79, 149, 244, 0.12), rgba(45, 212, 191, 0.08), rgba(249, 115, 99, 0.08));
}

.download-logo {
    width: 82px;
    height: 82px;
}

.download-section h2 {
    font-size: 2.25rem;
}

.download-buttons {
    justify-content: flex-end;
}

@media (hover: hover) and (pointer: fine) {

    .store-button:hover,
    .store-button:focus-visible,
    .game-list span:hover {
        transform: translateY(-2px);
    }

}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 3rem;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .feature-grid,
    .game-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .arena-section,
    .download-section {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    main {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: auto;
        padding: 2.25rem 0 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1rem;
        line-height: 1.58;
        margin-bottom: 1.35rem;
    }

    .cta-buttons,
    .store-buttons {
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    .section-heading h2,
    .arena-copy h2 {
        font-size: 2.25rem;
    }

    .feature-grid,
    .game-list,
    .arena-steps {
        grid-template-columns: 1fr;
    }

    .game-list span {
        min-height: 70px;
    }
}

@media (max-width: 460px) {
    .hero h1 {
        font-size: 2.55rem;
    }

    .download-section {
        padding: 1rem;
    }

    .download-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 2rem 0 2.25rem;
    }

    .hero h1 {
        font-size: 2.35rem;
        margin-bottom: 0.85rem;
    }

    .eyebrow {
        font-size: 0.78rem;
        margin-bottom: 0.65rem;
    }

    .hero-metrics,
    .store-button-outline {
        display: none;
    }
}