/* Home page
 * Breakpoints (single source for /):
 *   lg  ≥1024px — cityscape + full-height hero
 *   md  768–1023px — no cityscape, 2-column focus, compact hero
 *   sm  <768px — single column, compact hero
 *   xs  <480px — tighter type and CTA
 * Fluid: --page-gutter and hero h1 use clamp()
 */

.page-home {
    --page-gutter: clamp(24px, 5vw, 120px);
    --content-max: 1040px;
    --radius-card: 16px;
    --section-pad-y: clamp(48px, 8vw, 80px);
}

/* Header — logo only */
.page-home header.site-header {
    display: flex;
    align-items: center;
    padding: 24px var(--page-gutter);
}

.page-home .header-brand .logo {
    height: 32px;
}

.page-home .company-name {
    font-size: 1.25rem;
}

/* Hero — flex column; override legacy .hero viewport centering */
.page-home .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-height: auto;
    max-height: none;
    padding: clamp(1.5rem, 4vh, 3rem) var(--page-gutter) 0;
    overflow: hidden;
}

.page-home .hero-words {
    position: relative;
    z-index: 10;
    max-width: 28rem;
    margin: 0;
}

.page-home .hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.2;
    margin: 0 0 1rem 0;
    font-weight: 400;
    color: #00392F;
}

.page-home .hero-lead {
    padding: 0;
    margin: 0;
    font-family: 'Chivo Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5756A0;
}

.page-home .hero-words .cta-button {
    margin-top: 2.5rem;
}

.page-home .cityscape {
    opacity: 0.85;
}

.page-home .scroll-indicator {
    position: static;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    width: 100%;
    margin-top: 2.5rem;
    padding-top: 0;
    padding-bottom: 2rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1s;
}

.page-home .scroll-indicator span {
    padding: 0;
    margin: 0 0 10px 0;
    font-family: 'Chivo', sans-serif;
}

.page-home .scroll-indicator:hover span {
    color: #1AA28E;
}

@media (prefers-reduced-motion: reduce) {
    .page-home .scroll-indicator {
        animation: none;
        opacity: 1;
    }

    .page-home .scroll-indicator img {
        animation: none;
    }
}

/* Focus */
.page-home .section-panel--focus {
    padding: var(--section-pad-y) var(--page-gutter);
    background: #E8F0ED;
    border-top: 1px solid rgba(0, 57, 47, 0.08);
}

.page-home .section-panel--focus::before {
    display: none;
}

.page-home .section-panel--focus .section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.page-home .section-title {
    font-family: 'Chivo', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #00392F;
    margin: 0 0 28px 0;
}

.page-home .focus-divider-label {
    margin: 2.5rem 0 1.25rem 0;
    padding: 1.25rem 0 0 0;
    border-top: 1px solid rgba(0, 57, 47, 0.1);
    font-family: 'Chivo', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5756A0;
}

.page-home .focus-grid {
    margin-top: 0;
    gap: 16px;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .page-home .focus-grid--primary,
    .page-home .focus-grid--concepts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.page-home .focus-card {
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 57, 47, 0.06);
}

.page-home .focus-card-header {
    padding: 16px 22px;
}

.page-home .focus-card-header h3 {
    font-size: 0.95rem;
    font-weight: 500;
}

.page-home .focus-card-body {
    padding: 20px 22px 24px;
}

.page-home .focus-card-body p {
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4F4D73;
}

.page-home .focus-card-body .focus-label {
    margin: 14px 0 6px 0;
    padding: 0;
}

.page-home .focus-card-body .focus-label:first-child {
    margin-top: 0;
}

.page-home .gen-demo {
    height: 128px;
    padding: 16px;
}

.page-home .section-panel--outlined {
    padding: var(--section-pad-y) var(--page-gutter);
}

.page-home .section-panel--outlined .section-inner {
    max-width: var(--content-max);
}

.page-home .semi-card {
    padding: 32px 36px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 24px rgba(0, 57, 47, 0.06);
}

.page-home .semi-card-body p {
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-home footer {
    padding: 32px var(--page-gutter) 48px;
    justify-content: center;
    border-top: 1px solid rgba(0, 57, 47, 0.08);
}

.page-home footer p {
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #8D88D7;
}

/* Tablet / narrow desktop: no cityscape, compact hero (no empty viewport band) */
@media (max-width: 1023px) {
    .page-home .cityscape {
        display: none;
    }

    .page-home .hero {
        height: auto;
        min-height: auto;
    }

    .page-home .scroll-indicator {
        margin-top: 2.5rem;
        align-self: flex-start;
        padding-bottom: 2.5rem;
    }
}

/* Large desktop: cityscape + full viewport; scroll anchored to bottom */
@media (min-width: 1024px) {
    .page-home .hero {
        min-height: calc(100vh - 5.5rem);
    }

    .page-home .scroll-indicator {
        margin-top: auto;
        padding-top: 2rem;
        padding-bottom: clamp(2.5rem, 6vh, 4rem);
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.page-home {
        background-color: #F9FDFC;
    }

    .page-home header.site-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 20px var(--page-gutter);
    }

    .page-home .hero {
        min-height: auto;
        height: auto;
        padding-top: 1rem;
    }

    .page-home .hero-words {
        margin-top: 0;
        max-width: 100%;
        text-align: left;
    }

    .page-home .hero-words .cta-button {
        margin-top: 2rem;
    }

    .page-home .scroll-indicator {
        align-self: flex-start;
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }

    .page-home .semi-card {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        padding: 24px;
    }

    .page-home .semi-card-logo img {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 479px) {
    .page-home .hero h1 {
        font-size: clamp(1.5rem, 7vw, 1.85rem);
    }

    .page-home .hero-lead {
        font-size: 0.88rem;
    }

    .page-home .hero-words .cta-button {
        font-size: 0.7em;
        padding: 12px 28px;
    }

    .page-home .section-title {
        font-size: 1.35rem;
    }
}
