/* ===== Hero block — uses global tokens from :root ===== */

.hero {
    margin: var(--space-12) 0 var(--space-28);
}

.hero .container {
    margin-top: -55px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-24);
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-copy {
    display: grid;
    gap: var(--space-14);
}

.hero h1 {
    margin: 0;
    font-size: var(--fs-40);
    line-height: var(--lh-tight);
}

.hero p.sub {
    color: var(--ink);
    font-size: var(--fs-16);
    line-height: var(--lh-normal);
}

@media (max-width: 768px) {
    .hero p.sub { margin-bottom: 0; }
}

.hero-ctas {
    display: flex;
    gap: var(--space-12);
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--space-24);
}

@media (max-width: 600px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: var(--space-24);
        margin-top: var(--space-32);
    }

    .hero-ctas .btn {
        align-self: stretch;
        justify-content: center;
    }
}

.link-secondary {
    font-size: var(--fs-14);
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Trust strip */
.trust {
    display: flex;
    gap: var(--space-16);
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--space-12);
}

.trust .label {
    font-size: var(--fs-14);
    color: var(--gray-ink);
}

.trust .logos {
    display: flex;
    gap: var(--space-14);
    align-items: center;
}

.trust .logo img { width: 256px; }

/* Film strip */
.hero-media {
    --hero-h-desktop: 550px;
    --hero-h-tablet: 380px;
    --hero-h-mobile: 340px;

    position: relative;
    height: var(--hero-h-desktop);
    display: flex;
    justify-content: center;
    align-items: center;
}

.film-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-14);
    height: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.film-strip {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-16);
    height: 100%;
}

.film-track {
    display: flex;
    flex-direction: column;
    gap: var(--space-14);
}

.film-strip:nth-child(1) .film-track { animation: fitScrollUp 55s linear infinite; }
.film-strip:nth-child(2) .film-track { animation: fitScrollDown 55s linear infinite; }
.film-strip:hover .film-track { animation-play-state: paused; }

.film-item {
    width: 100%;
    border-radius: var(--radius-16);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--background-blueish);
    border: 1px solid var(--ring);
    position: relative;
}

.film-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.03) contrast(1.15) saturate(1.2) hue-rotate(-5deg);
}

.live-badge {
    position: absolute;
    top: var(--space-12);
    left: var(--space-12);
    background: rgba(255, 255, 255, .95);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-14);
    font-weight: var(--weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-8);
    box-shadow: var(--shadow-1);
    z-index: 2;
}

.live-dot {
    width: var(--space-8);
    height: var(--space-8);
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: fitLivePulse 1.8s ease-in-out infinite;
}

@keyframes fitLivePulse {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0   rgba(34, 197, 94, .7); }
    70%  { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); }
}

@keyframes fitScrollUp   { 0% { transform: translateY(0) }    100% { transform: translateY(-50%) } }
@keyframes fitScrollDown { 0% { transform: translateY(-50%) } 100% { transform: translateY(0) } }

/* Mobile */
@media (max-width: 900px) {
    .hero-media {
        height: var(--hero-h-tablet);
        margin-top: var(--space-16);
        max-width: 100%;
        overflow: hidden;
    }

    @media (min-width: 601px) { .hero-copy { width: 86vw; } }

    .film-container {
        display: block;
        height: 100%;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .film-strip:nth-child(2) { display: none; }

    .film-track {
        flex-direction: row;
        animation: fitScrollLeft 30s linear infinite !important;
    }

    .film-item { width: 280px; flex-shrink: 0; }

    .film-strip:active .film-track { animation-play-state: paused; }

    @keyframes fitScrollLeft { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
}

@media (max-width: 768px) {
    .hero-copy {
        grid-template-areas:
            "title"
            "sub"
            "trust"
            "ctas";
    }

    .hero-copy > #hero-title { grid-area: title; }
    .hero-copy > .sub      { grid-area: sub; }
    .hero-copy > .trust    { grid-area: trust; }
    .hero-copy > .hero-ctas { grid-area: ctas; }
}

@media (max-width: 600px) {
    .hero-media { height: var(--hero-h-mobile); }
    .film-item  { width: 240px; }
}
