/* =========================================================
   Homepage layout polish - loaded last, overrides style.css
   ========================================================= */
:root { --hp-max: 1180px; }

/* ---- 1. One rhythm for every section ---- */
#about-platform,
#software,
#mobile-apps,
#how-it-works,
#faq { padding: 6.5rem 5%; }

#services,
#about { padding: 6.5rem 5%; }

#games { padding: 6.5rem 5%; }

/* ---- 2. Everything lines up on one column ---- */
.services-container,
.mobile-apps-grid,
.steps-flow,
.work-grid,
.cdr-tiles,
.cdr-band,
.hp-wrap { max-width: var(--hp-max); margin-left: auto; margin-right: auto; }

.subsection-title {
    max-width: var(--hp-max);
    margin: 0 auto 2rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: 1px;
    border-left-width: 4px;
    padding-left: 1.1rem;
}

/* ---- 3. Section headings ---- */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); letter-spacing: 3px; }

.hp-lead {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ---- 4. Hero: no dead space ---- */
#hero {
    height: auto;
    min-height: 82vh;
    padding: 11rem 5% 7rem;
}

/* ---- 5. Problem section reads as a column, not a wall ---- */
#about-platform .hp-prose { max-width: 820px; }
#about-platform .hp-prose > p { font-size: 1.06rem; line-height: 1.8; }

/* ---- 6. Software screens: a real 2 x 2 grid, never edge to edge ---- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.game-card { flex: initial; max-width: none; }

/* ---- 7. Mobile apps ---- */
.mobile-apps-grid { max-width: 1040px; margin-top: 0; }

.hp-app-feature {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 2.75rem 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(188, 19, 254, 0.045) 100%);
}

.hp-app-feature__phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hp-app-feature__copy h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-white);
    margin: 0.9rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hp-app-feature__copy > p {
    color: var(--text-gray);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0;
}

.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px;
    border-radius: 999px;
    border: 1px solid rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.07);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-blue);
}

.hp-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7dffb0;
    box-shadow: 0 0 10px #7dffb0;
}

.hp-points {
    margin: 1.4rem 0 1.8rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.hp-points li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-gray);
    font-size: 0.96rem;
    line-height: 1.6;
}

.hp-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--neon-blue);
    opacity: 0.85;
}

/* ---- 8. Who we are ---- */
.about-panel { max-width: 840px; padding: 3.25rem 3rem; }
.about-panel .section-header { margin-bottom: 1.75rem; }

.hp-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.hp-facts div { text-align: center; }
.hp-facts strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--neon-blue);
}
.hp-facts span {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
}

/* ---- 9. Narrow screens ---- */
@media (max-width: 900px) {
    #about-platform, #software, #mobile-apps, #how-it-works, #faq,
    #services, #about, #games { padding: 4.5rem 6%; }
    #hero { min-height: 0; padding: 9rem 6% 5rem; }
    .games-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hp-app-feature { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.6rem; text-align: center; }
    .hp-app-feature__phone { max-width: 220px; margin: 0 auto; }
    .hp-points { text-align: left; max-width: 330px; margin-left: auto; margin-right: auto; }
    .about-panel { padding: 2.5rem 1.6rem; }
    .hp-facts { grid-template-columns: 1fr; gap: 1.4rem; }
}