/* ============================================================
 * Enterprise — Section Hero
 * Figma node 5404:15470 (frame 1920×990)
 * Tokens preserved verbatim from Figma; values stated in px so the
 * layout reads 1:1 against the design at the 1920 desktop frame.
 * ============================================================ */

@font-face {
    font-family: 'Konstant Grotesk';
    src: url('../../../../../assets/Round11/homepage/fonts/neuekonstantgrotesk-book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.enterprise-hero {
    position: relative;
    background-color: #050505;
    color: #ffffff;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
}

.enterprise-hero__inner {
    position: relative;
    height: 100%;
    min-height: 100svh;
}

.enterprise-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.enterprise-hero__inner {
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .enterprise-hero__video {
        display: none;
    }
}

/* ---------- Content (vertically centered against full section) ---------- */

.enterprise-hero__content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-inline: 12px;
}

.enterprise-hero__title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 58px;
    line-height: 1.15;
    letter-spacing: 0;
    color: #ffffff;
    font-variation-settings: 'opsz' 14;
}

.enterprise-hero__title-num {
    font-family: 'Konstant Grotesk', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 58px;
    line-height: 1.15;
    background-image: linear-gradient(to right,
            #ff4e41 36.058%,
            #cc6af9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.enterprise-hero__desc {
    margin: 0;
    width: 100%;
    max-width: 800px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
}

.enterprise-hero__cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enterprise-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #ffffff;
    color: #050505;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.enterprise-hero__cta:hover,
.enterprise-hero__cta:focus-visible {
    opacity: 0.9;
    transform: translateY(-1px);
}

.enterprise-hero__cta--primary:hover,
.enterprise-hero__cta--primary:focus-visible {
    color: #050505;
}

.enterprise-hero__cta--secondary {
    background: #050505;
    color: #ffffff;
    border: 1px solid #4a4949;
}

.enterprise-hero__cta--secondary:hover,
.enterprise-hero__cta--secondary:focus-visible {
    color: #ffffff;
}

.enterprise-hero__cta:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ---------- Logo strip pinned to bottom ---------- */

.enterprise-hero__logos {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 170px;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%);
}

.enterprise-hero__logos-track {
    display: flex;
    align-items: center;
    gap: 52px;
    width: max-content;
    height: 44px;
    animation: enterprise-hero-marquee 40s linear infinite;
}

.enterprise-hero__logos:hover .enterprise-hero__logos-track {
    animation-play-state: paused;
}

@keyframes enterprise-hero-marquee {
    from {
        transform: translateX(0);
    }

    /* track holds 2 passes — translate by half to loop seamlessly */
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .enterprise-hero__logos-track {
        animation: none;
    }
}

.enterprise-hero__logo {
    flex: 0 0 auto;
    width: var(--slot, 96px);
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.enterprise-hero__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* filter: brightness(0.7) saturate(0); */
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.enterprise-hero__logo:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- Tablet (640–1199) ---------- */

@media (max-width: 1199.98px) {
    .enterprise-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100svh;
    }

    .enterprise-hero__inner {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        min-height: 0;
        height: auto;
    }

    .enterprise-hero__content {
        position: relative;
        top: auto;
        transform: none;
    }

    .enterprise-hero__logos {
        position: relative;
        bottom: auto;
        width: 100%;
        align-self: stretch;
        height: 140px;
    }

    .enterprise-hero__title,
    .enterprise-hero__title-num {
        font-size: 48px;
    }

    .enterprise-hero__logos-track {
        gap: 24px;
    }
}

/* ---------- Mobile (≤ 639) ---------- */
/* Figma mobile frame 5647:46103 — 390×780, pt 60 / pb 140 / px 20 */

@media (max-width: 639.98px) {
    .enterprise-hero {
        padding-block: 140px 140px;
    }

    .enterprise-hero__content {
        gap: 16px;
        /* padding-inline: 20px; */
    }

    .enterprise-hero__content .enterprise-hero__cta-group {
        margin-top: 12px;
    }

    .enterprise-hero__title,
    .enterprise-hero__title-num {
        font-size: 32px;
        line-height: 1.15;
    }

    .enterprise-hero__desc {
        font-size: 16px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.8);
        max-width: 600px;
    }

    .enterprise-hero__cta-group {
        flex-direction: column;
    }

    .enterprise-hero__cta {
        padding: 14px 28px;
        font-size: 12px;
    }

    /* Logo carousel — pinned to bottom, single-row marquee preserved on mobile */
    .enterprise-hero__logos {
        height: 44px;
    }

    .enterprise-hero__logos-track {
        gap: 52px;
        height: 44px;
    }

    .enterprise-hero__logo {
        height: 24px;
    }
}