﻿/* ============================================================
   FEATURES.CSS — Bento Grid
   ============================================================ */

.features {
    padding: var(--space-5xl) 0;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: var(--space-lg);
}

.bento-card {
    background: var(--surface-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

    .bento-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-glow);
        opacity: 0;
        transition: opacity 0.5s;
    }

    .bento-card:hover {
        border-color: var(--brand-300);
        transform: translateY(-4px);
        box-shadow: var(--shadow-glow);
    }

        .bento-card:hover::before {
            opacity: 1;
        }

    .bento-card.span-2 {
        grid-column: span 2;
    }

.bento-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-50);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--brand-500);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
    transition: all 0.5s var(--ease-out-expo);
}

[data-theme="dark"] .bento-icon {
    background: rgba(106, 137, 181, 0.15);
}

.bento-card:hover .bento-icon {
    background: var(--gradient-brand);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.bento-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.bento-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    flex: 1;
}

.bento-visual {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* AI animated bars */
.ai-visual {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.ai-bar {
    flex: 1;
    height: 80px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    opacity: 0.2;
    animation: aiPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes aiPulse {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.2;
    }

    50% {
        transform: scaleY(1);
        opacity: 0.5;
    }
}
/* RESPONSIVE */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-card.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}
