/* ═══════════════════════════════════════
   Landing Page — Hero, Screenshots, Layout
   ═══════════════════════════════════════ */

/* ── Hero (full-bleed, Game of Life canvas) ── */
.landing-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 80px;
    overflow: hidden;
    text-align: center;
}

.landing-hero h1,
.landing-hero__lede,
.landing-hero__signals {
    position: relative;
    z-index: 1;
}

.landing-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* ── Rotating headline ── */
.landing-rotating {
    display: block;
    position: relative;
    min-height: 1.2em;
}

.landing-rotating__line {
    display: block;
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.landing-rotating__line.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

/* ── Screenshots Section ── */
.landing-screenshots {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px 0;
}

.landing-screenshots-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
    text-align: center;
    margin-bottom: 48px;
}

.landing-screenshot-primary {
    margin-bottom: 32px;
}

.landing-screenshots-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-screenshot-frame {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.landing-screenshot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.landing-screenshot-bar-label {
    margin-left: 8px;
    font-size: 11px;
    color: var(--text-soft);
}

.landing-screenshot-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.landing-screenshot-bar .dot-r { background: #FF5F57; }
.landing-screenshot-bar .dot-y { background: #FFBD2E; }
.landing-screenshot-bar .dot-g { background: #28C840; }

.landing-screenshot-body {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 13px;
    background: var(--surface);
}

.landing-screenshot-body svg {
    display: block;
}

.landing-screenshot-body img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-screenshot-label {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-soft);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .landing-hero {
        min-height: 45vh;
        padding: 60px 16px 40px;
    }

    .landing-screenshots-secondary {
        grid-template-columns: 1fr;
    }

    .landing-screenshots {
        padding: 64px 16px 0;
    }
}
