/* ============================================================
   RHYTHMIC — page-specific styles
   Builds on the site design system (site.css tokens & classes).
   ============================================================ */

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(11, 11, 13, 0.5) 0%,
        rgba(11, 11, 13, 0.2) 40%,
        rgba(11, 11, 13, 0.9) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.hero-title {
    font-family: 'Cinzel Decorative', var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 1.2rem 0 0.9rem;
}

.hero-tagline {
    color: rgba(236, 236, 238, 0.85);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ---------- trailer ---------- */

.trailer-frame {
    margin-top: 3rem;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-raised);
}

.trailer-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.trailer-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trailer-playicon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(11, 11, 13, 0.6);
    color: var(--text);
    transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.trailer-poster:hover .trailer-playicon {
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.06);
}

.trailer-playicon svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.trailer-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ---------- features ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-raised);
    padding: 1.6rem;
    transition: border-color 0.3s var(--ease-out);
}

.feature-card:hover {
    border-color: var(--line-strong);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------- screenshots & lightbox ---------- */

.shots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.shot {
    display: block;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    transition: border-color 0.3s var(--ease-out);
}

.shot:hover {
    border-color: var(--line-strong);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}

.shot:hover img {
    transform: scale(1.02);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 2rem;
    background: rgba(11, 11, 13, 0.94);
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(68rem, 94vw);
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
}

.lightbox-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--muted);
}

/* ---------- early access ---------- */

.ea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.ea-col h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.ea-list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.ea-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.ea-note {
    margin-top: 2.5rem;
    color: var(--muted);
    max-width: 40rem;
}

/* ---------- community ---------- */

.community-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .features-grid,
    .shots-grid,
    .ea-grid {
        grid-template-columns: 1fr;
    }
    .ea-grid {
        gap: 2.5rem;
    }
    .hero {
        min-height: 78vh;
    }
    .hero-content {
        padding-bottom: 3.5rem;
    }
}
