/* Basic safe Reset */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
}

/* Intro Background & Container */
.intro-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Gateway Cards */
.gateways-container {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    flex-wrap: wrap;
}

.gateway-card {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #000;
    /* Black background base */
}

.gateway-card:hover {
    transform: translateY(-10px);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.6;
    /* Darken the image by default to achieve "black" look */
}

.gateway-card:hover .card-bg {
    transform: scale(1.1);
    opacity: 0.4;
    /* Darken more on hover or lighten? Let's darken to make text pop */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient for black look */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Centered Logo */
.card-logo {
    position: absolute;
    top: 40%;
    /* Position roughly in the visible center/upper-middle */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 100%;
    text-align: center;
}

.card-logo img {
    max-width: 155px;
    height: auto;
    /* Filter removed to allow original logo colors */
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    color: #fff;
}

.card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.card-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    /* Slightly smaller to accommodate logo if needed */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.btn-arrow img {
    width: 16px;
    filter: invert(1);
}

.gateway-card:hover .btn-arrow {
    background: #FFB703;
    /* Highlight color */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gateways-container {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        height: 100vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .gateway-card {
        width: 100%;
        height: 250px;
        flex: none;
    }

    .intro-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
}