/* ============================================
   Bento Grid - Feature Cards
   ============================================ */

.features {
    background: var(--color-bg-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: var(--container-xl);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto auto;
    }
}

/* Bento Card Base */
.bento-card {
    position: relative;
    padding: var(--space-8);
    background: var(--color-bg-card);
    border: var(--border-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: transform var(--transition-base),
                background var(--transition-base),
                border-color var(--transition-base);
}

.bento-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(127, 255, 127, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(127, 255, 127, 0.08);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(127, 255, 127, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* Card Sizes */
.bento-large {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.bento-medium {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .bento-medium {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .bento-medium {
        grid-column: span 2;
    }
}

.bento-small {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .bento-small {
        grid-column: span 1;
    }
}

/* Card Content */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-4);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-hotaru-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.bento-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.bento-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* Large Card Specific */
.bento-large h3 {
    font-size: var(--text-2xl);
}

.bento-large p {
    max-width: 480px;
}

/* Card Visual - Performance Bars */
.card-visual {
    margin-top: var(--space-8);
}

.perf-bar {
    margin-bottom: var(--space-3);
}

.perf-bar:last-child {
    margin-bottom: 0;
}

.perf-fill {
    position: relative;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    width: var(--width);
    transition: width 1s ease-out;
}

.perf-fill.hotaru {
    background: var(--color-accent-gradient);
    box-shadow: 0 0 20px rgba(127, 255, 127, 0.3);
}

.perf-fill.actix {
    background: linear-gradient(135deg, #5a7a90 0%, #3a5a70 100%);
}

.perf-fill span {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: #fff;
    white-space: nowrap;
}
