/* Homepage process, platform, and service visuals. */

body.home .hero-section--video {
    position: relative;
    min-height: 720px;
    padding: calc(var(--header-height) + 82px) 0 86px;
    overflow: hidden;
    background: #0b2944 url("../images/warehouse-fulfillment/banner.webp") center / cover no-repeat;
}

body.home .hero-section--video .hero-bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

body.home .hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.home .hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(3, 19, 35, 0.28) 0, transparent 130px),
        linear-gradient(rgba(7, 27, 48, 0.54), rgba(7, 27, 48, 0.54)),
        linear-gradient(90deg, rgba(7, 27, 48, 0.34), rgba(7, 27, 48, 0.08));
}

body.home .hero-section--video .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: center;
}

body.home .hero-section--video .hero-content {
    width: 100%;
    max-width: 820px;
}

body.home .hero-section--video .hero-visual {
    display: none;
}

body.home .hero-section--video .hero-title,
body.home .hero-section--video .hero-subtitle,
body.home .hero-section--video .hero-trust,
body.home .hero-section--video .trust-item {
    color: #fff;
}

body.home .hero-section--video .hero-subtitle {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

body.home .hero-section--video .hero-badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(9px);
}

body.home .hero-section--video .btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(7px);
}

body.home .hero-section--video .btn-outline:hover {
    color: #123756;
    background: #fff;
}

body.home .hero-section--video .trust-item .icon {
    color: #63d4a0;
}

body.home .how-it-works .steps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    max-width: 1440px;
    margin: 0 auto;
}

body.home .how-it-works .step-card {
    position: relative;
    max-width: none;
    padding: 18px 16px 26px;
    text-align: center;
}

body.home .how-it-works .step-number {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #fff;
    background: #ff6b35;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.23);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

body.home .step-visual {
    position: relative;
    height: 188px;
    margin: 0 0 24px;
    overflow: hidden;
    background: #eaf1f7;
    box-shadow: 0 18px 38px rgba(18, 48, 77, 0.13);
}

body.home .step-visual::after,
body.home .feature-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(12, 40, 66, 0.09));
    content: "";
    pointer-events: none;
}

body.home .step-visual img,
body.home .feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

body.home .step-card:hover .step-visual img,
body.home .feature-card:hover .feature-media img {
    transform: scale(1.035);
}

body.home .step-visual--address {
    border-radius: 58% 42% 46% 54% / 46% 54% 46% 54%;
}

body.home .step-visual--inspection {
    border-radius: 46% 54% 18% 18% / 56% 56% 22% 22%;
}

body.home .step-visual--inspection img {
    object-position: 100% 50%;
    transform: scale(1.4);
    transform-origin: right center;
}

body.home .step-visual--consolidation {
    border-radius: 22% 58% 30% 54% / 34% 30% 58% 50%;
}

body.home .step-visual--consolidation img {
    object-position: 0 50%;
    transform: scale(1.15);
}

body.home .step-visual--delivery {
    border-radius: 50%;
}

body.home .step-visual--delivery img {
    filter: brightness(1.12);
    object-position: 57% 50%;
}

body.home .step-card:hover .step-visual--inspection img {
    transform: scale(1.44);
}

body.home .step-card:hover .step-visual--consolidation img {
    transform: scale(1.19);
}

body.home .how-it-works .step-connector {
    justify-content: center;
    padding-top: 108px;
}

body.home .platform-logo-frame {
    width: 82px;
    height: 68px;
    padding: 9px;
    background: color-mix(in srgb, var(--platform-color) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--platform-color) 17%, transparent);
}

body.home .platform-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.home .why-us-section .features-grid {
    gap: 26px;
}

body.home .why-us-section .feature-card {
    padding: 0 0 30px;
    overflow: hidden;
}

body.home .feature-media {
    position: relative;
    height: 210px;
    margin: 0 0 26px;
    overflow: hidden;
    background: #173a5b;
    border-radius: 0 0 72px 0;
}

body.home .feature-card:nth-child(2n) .feature-media {
    border-radius: 0 0 0 72px;
}

body.home .feature-card:nth-child(3n) .feature-media {
    border-radius: 0 0 72px 72px;
}

body.home .why-us-section .feature-card h3,
body.home .why-us-section .feature-card p {
    padding-right: 28px;
    padding-left: 28px;
}

@media (max-width: 1100px) {
    body.home .how-it-works .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    body.home .how-it-works .step-connector {
        display: none;
    }

    body.home .step-visual {
        height: 230px;
    }

    body.home .why-us-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.home .hero-section--video {
        min-height: 660px;
        padding: calc(var(--header-height) + 48px) 0 54px !important;
    }

    body.home .hero-section--video .hero-inner {
        min-height: 0;
    }

    body.home .how-it-works .steps-grid,
    body.home .why-us-section .features-grid {
        grid-template-columns: 1fr;
    }

    body.home .how-it-works .step-card {
        padding-right: 0;
        padding-left: 0;
    }

    body.home .step-visual {
        height: 220px;
    }

    body.home .platform-logo-frame {
        width: 74px;
        height: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .hero-bg-video {
        display: none;
    }
}
