/* ==========================================================
   LANDING PAGE — layout only
   Not part of the Space UI Kit component system. This file
   just arranges kit components (background, title, button,
   badge, card) into a page layout. All visual styling still
   comes from the kit's own CSS in src/components and
   src/styles.
========================================================== */

body {
    /* global.css sets overflow-x/height rules meant for
       single-viewport game screens (popups, showcases), but
       this page is taller than the viewport. Override scoped
       to the landing page only. */
    overflow-y: auto;
    height: auto;
    background: var(--bg);
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ----------------------------------
   Hero
---------------------------------- */

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__background .background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__content {
    position: relative;
    z-index: 1;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 48px 24px;
    box-sizing: border-box;
    text-align: center;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ----------------------------------
   Features
---------------------------------- */

.features {
    padding: 64px 0 24px;
}

.features__header {
    text-align: center;
    margin-bottom: 32px;
}

.features__eyebrow {
    display: inline-block;
    font-size: var(--font-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.features__card {
    text-decoration: none;
    color: inherit;
}

.features__card .ui-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features__card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

/* ----------------------------------
   Footer
---------------------------------- */

.landing-footer {
    text-align: center;
    padding: 40px 24px 56px;
    font-size: var(--font-sm);
}

/* ----------------------------------
   Responsive
---------------------------------- */

@media (max-width: 860px) {

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

}

@media (max-width: 520px) {

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

    .hero,
    .hero__content {
        min-height: 480px;
    }

}
