/* Homepage v139: loaded after common.css to keep the hero aligned on PC and mobile. */
@media (min-width: 761px) {
    .home-hero-section,
    .home-hero-inner {
        height: clamp(540px, 58vh, 620px) !important;
        min-height: clamp(540px, 58vh, 620px) !important;
        overflow: hidden !important;
    }

    .home-hero-copy,
    .home-hero-slide:not(:first-child) .home-hero-copy {
        top: clamp(92px, 10.6vh, 132px) !important;
    }

    .home-hero-visual,
    .home-hero-slide:not(:first-child) .home-hero-visual {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .home-hero-visual img,
    .home-hero-slide:not(:first-child) .home-hero-visual img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center 20% !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .home-hero-slide::after {
        background:
            linear-gradient(90deg, rgba(248, 251, 255, 0.99) 0%, rgba(248, 251, 255, 0.92) 30%, rgba(248, 251, 255, 0.24) 56%, rgba(248, 251, 255, 0) 78%) !important;
    }

    .home-hero-progress {
        bottom: 18px !important;
    }

    .product-section {
        padding-top: 46px !important;
    }
}

@media (min-width: 1181px) {
    .home-hero-copy,
    .home-hero-slide:not(:first-child) .home-hero-copy {
        top: clamp(102px, 11vh, 142px) !important;
    }
}

@media (max-width: 760px) {
    .home-hero-section,
    .home-hero-inner,
    .home-hero-track,
    .home-hero-slide,
    .home-hero-visual,
    .home-hero-slide:not(:first-child) .home-hero-visual {
        height: 430px !important;
        min-height: 430px !important;
    }

    .home-hero-copy,
    .home-hero-slide:not(:first-child) .home-hero-copy {
        left: 18px !important;
        right: auto !important;
        width: calc(100vw - 36px) !important;
        max-width: calc(100vw - 36px) !important;
        box-sizing: border-box !important;
        top: 40px !important;
    }

    .home-hero-copy h1,
    .home-hero-slide:not(:first-child) .home-hero-copy h1 {
        font-size: 29px !important;
        line-height: 1.15 !important;
    }

    .home-hero-copy p,
    .home-hero-slide:not(:first-child) .home-hero-copy p {
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.62 !important;
    }

    .home-hero-tags {
        margin-top: 16px !important;
        gap: 8px !important;
    }

    .home-hero-actions {
        gap: 12px !important;
        margin-top: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .home-hero-actions a {
        box-sizing: border-box !important;
        flex: 0 0 calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
        min-width: 0 !important;
        min-height: 50px !important;
        padding: 0 10px !important;
        white-space: nowrap !important;
    }

    .home-hero-visual img,
    .home-hero-slide:not(:first-child) .home-hero-visual img {
        object-position: 70% bottom !important;
        transform: translateY(26px) !important;
    }

    .home-hero-slide::after {
        background:
            linear-gradient(180deg, rgba(248, 251, 255, 1) 0%, rgba(248, 251, 255, 0.98) 50%, rgba(248, 251, 255, 0.7) 76%, rgba(248, 251, 255, 0.24) 100%) !important;
    }

    .home-hero-progress {
        bottom: 10px !important;
    }

    .product-section {
        padding-top: 30px !important;
    }
}

@media (max-width: 480px) {
    .home-hero-section,
    .home-hero-inner,
    .home-hero-track,
    .home-hero-slide,
    .home-hero-visual,
    .home-hero-slide:not(:first-child) .home-hero-visual {
        height: 420px !important;
        min-height: 420px !important;
    }

    .home-hero-copy,
    .home-hero-slide:not(:first-child) .home-hero-copy {
        top: 38px !important;
    }
}

/* Homepage v140: restore module subtitles that older homepage CSS hid. */
.product-heading-row p,
.faq-v99-header p,
.network-globe-header p,
.understand-header p {
    display: block !important;
    max-width: 760px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.75 !important;
}

.product-heading-row h2,
.faq-v99-header h2,
.network-globe-header h2,
.understand-header h2 {
    margin-bottom: 12px !important;
}

.product-heading-row,
.faq-v99-header,
.network-globe-header,
.understand-header {
    text-align: center !important;
}

@media (max-width: 760px) {
    .product-heading-row p,
    .faq-v99-header p,
    .network-globe-header p,
    .understand-header p {
        max-width: 330px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    .home-hero-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .home-hero-actions a {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-self: stretch !important;
        overflow: hidden !important;
    }
}

/* Homepage v151: keep the carousel track and controls functional after hero overrides. */
.home-hero-section[data-hero-carousel] .home-hero-track {
    display: flex !important;
    width: 100% !important;
    transition: transform 0.48s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    will-change: transform !important;
}

.home-hero-section[data-hero-carousel].is-dragging .home-hero-track {
    transition: none !important;
}

.home-hero-section[data-hero-carousel] .home-hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.home-hero-section[data-hero-carousel] .home-hero-progress {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 20 !important;
}

/* Homepage v165: use real IDC photo-based banners and remove illustration badges. */
.home-hero-section .hero-visual-orbit,
.home-hero-section .hero-visual-badge {
    display: none !important;
}

@media (min-width: 761px) {
    .home-hero-visual img,
    .home-hero-slide:not(:first-child) .home-hero-visual img {
        object-position: center center !important;
    }

    .home-hero-slide::after {
        background:
            linear-gradient(90deg, rgba(248, 251, 255, 0.96) 0%, rgba(248, 251, 255, 0.82) 31%, rgba(248, 251, 255, 0.18) 54%, rgba(248, 251, 255, 0) 78%) !important;
    }
}

@media (max-width: 760px) {
    .home-hero-visual img,
    .home-hero-slide:not(:first-child) .home-hero-visual img {
        object-position: 72% center !important;
        transform: none !important;
    }
}

