.gateway {
    width: min(calc(100% - 3rem), var(--wide-content-width));
    min-height: min(46rem, calc(100vh - var(--header-height)));
    margin-inline: auto;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gateway-header {
    max-width: 42rem;
    margin-bottom: 4rem;
    text-align: center;
    animation: gateway-enter 700ms ease-out both;
}

.gateway-header h1 {
    margin: 0 0 1rem;
    color: var(--color-primary);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.gateway-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.12rem;
    text-align: center;
}

.page-home .contact > .section-divider-h1 {
    text-align: center;
}

.product-pipeline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.product-card {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.product-card:hover {
    border-color: var(--color-primary);
    color: var(--color-text);
    box-shadow: var(--shadow-raised);
    transform: translateY(-0.5rem);
}

.product-icon {
    width: min(20rem, 100%);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-icon {
    transform: scale(1.07);
}

.product-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.55rem;
}

.product-card p {
    min-height: 1.5em;
    margin-bottom: 1.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

.button-label {
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    color: var(--color-text-soft);
    background: var(--color-surface-muted);
    font-size: 0.92rem;
    font-weight: 750;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.product-card:hover .button-label {
    color: var(--color-on-primary);
    background: var(--color-primary);
}

.flow-connector {
    position: relative;
    flex: 0 1 8rem;
    height: 7.5rem;
}

.particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    top: 50%;
    left: calc(-1 * var(--particle-size));
    width: var(--particle-size);
    height: var(--particle-size);
    margin-top: calc(-0.5 * var(--particle-size));
    border-radius: 50%;
    background: linear-gradient(135deg, var(--particle-start), var(--particle-end));
    box-shadow: 0 0 0.5rem var(--particle-glow);
    opacity: 0;
    animation: particle-flow var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes particle-flow {
    0% { left: calc(-1 * var(--particle-size)); opacity: 0; transform: scale(0.55); }
    12%, 88% { opacity: 1; }
    50% { transform: scale(1); }
    100% { left: calc(100% + var(--particle-size)); opacity: 0; transform: scale(0.55); }
}

@keyframes gateway-enter {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 48rem) {
    .gateway {
        width: min(calc(100% - 2rem), var(--wide-content-width));
        padding: 3rem 0;
    }

    .gateway-header {
        margin-bottom: 2.5rem;
    }

    .product-pipeline {
        flex-direction: column;
        gap: 1rem;
    }

    .product-card {
        width: min(100%, 34rem);
        min-width: 0;
    }

    .flow-connector {
        flex-basis: 3.5rem;
        width: min(100%, 34rem);
        height: 3.5rem;
    }

    .particle {
        top: calc(-1 * var(--particle-size));
        left: 50%;
        margin-top: 0;
        margin-left: calc(-0.5 * var(--particle-size));
        animation-name: particle-flow-mobile;
    }

    @keyframes particle-flow-mobile {
        0% { top: calc(-1 * var(--particle-size)); opacity: 0; transform: scale(0.55); }
        12%, 88% { opacity: 1; }
        100% { top: calc(100% + var(--particle-size)); opacity: 0; transform: scale(0.55); }
    }
}

@media (max-width: 32rem) {
    .gateway {
        padding-block: 2.5rem 1rem;
    }

    .gateway-header h1 {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
    }

    .product-icon {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
}

