/* ===== V1 Products: Hero + Supporting ===== */
.products-hero {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.products-hero:hover {
    transform: translateY(-4px);
}

.products-hero:hover .hero-cta {
    background: var(--header-color);
    color: white;
}

.products-hero-text {
    flex: 1 1 40%;
    min-width: 0;
}

.products-hero-text img {
    height: 48px;
    margin-bottom: 1rem;
}

.products-hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.products-hero-text p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.module-grid {
    flex: 1 1 55%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.module-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.module-item:hover {
    transform: translateY(-3px);
}

.module-item img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.module-item span {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--cost-foreground-color);
    padding: 0.75rem 1.75rem;
    border-radius: 5rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 0.2s, background-color 0.2s;
}

.hero-cta:hover {
    background: var(--header-color);
    color: white;
    transform: translateY(-2px);
}

.hero-cta-mobile {
    display: none;
    align-self: center;
}

.supporting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.supporting-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.supporting-card:hover {
    transform: translateY(-4px);
}

.supporting-card img {
    height: 56px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.supporting-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.supporting-card p {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.supporting-card .card-button {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--cost-foreground-color);
    padding: 0.75rem 1.75rem;
    border-radius: 5rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 0.2s, background-color 0.2s;
    margin-top: auto;
}

.supporting-card:hover .card-button {
    background: var(--header-color);
    color: white;
}

/* ===== V1 Customers: Auto-scrolling Marquee ===== */
#customers {
    padding-top: 4rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

#customers > .content {
    margin-top: 0;
    margin-bottom: 0;
}

.marquee {
    overflow-x: auto;
    cursor: grab;
    width: 100%;
    padding: 1.5rem 0 5rem;
}

.marquee:active {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track.marquee-dragging {
    animation-play-state: paused !important;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-card {
    flex-shrink: 0;
    width: 340px;
    height: 200px;
    margin: 0 1.5rem;
    background: var(--bg-surface);
    border-radius: 1em;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.marquee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 30px 50px 0px rgba(15, 38, 92, 0.18);
}

.marquee-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.marquee-card img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* ===== V1 Responsive ===== */
@media (max-width: 768px) {
    .products-hero {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .products-hero-text {
        flex: none;
        width: 100%;
    }

    .products-hero-text .hero-cta {
        display: none;
    }

    .hero-cta-mobile {
        display: inline-block;
    }

    .module-grid {
        flex: none;
        width: 100%;
    }

    .supporting-grid {
        grid-template-columns: 1fr;
    }

    .marquee-card {
        width: 260px;
        height: 160px;
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .marquee-card img {
        max-height: 110px;
    }
}

@media only screen and (max-width: 500px) {
    .marquee-card {
        width: 210px;
        height: 130px;
        margin: 0 0.75rem;
        padding: 1rem;
    }

    .marquee-card img {
        max-height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    .marquee-card {
        transition: none;
    }
}
