/* AI Infrastructure Marketplace */

.ai-marketplace {
    background: #F1F1F8;
    width: 100%;
    padding: 64px 0;
}

.ai-marketplace__inner {
    max-width: 1072px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 58px;
}

.ai-marketplace__title {
    color: #040548;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

/* Cards grid - mobile first: 1 column */
.ai-marketplace__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

/* Card */
.ai-marketplace__card {
    display: flex;
    width: 100%;
    height: 383px;
    padding: 147px 28.5px 186px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15px;
    background-color: lightgray;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ai-marketplace__card:hover {
    transform: translateY(-4px);
}

/* Dark overlay for text readability */
.ai-marketplace__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 15px;
    pointer-events: none;
}

.ai-marketplace__label {
    color: #ffffff;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 150%;
    position: relative;
    z-index: 1;
}

.ai-marketplace__value {
    display: flex;
    width: 72px;
    height: 18px;
    padding: 5px;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.ai-marketplace__value-text {
    color: #4CAF50;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 150%;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .ai-marketplace__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .ai-marketplace__cards {
        grid-template-columns: repeat(4, 1fr);
    }
}
