/* ── ECP360 Platforms Bento Grid ── */

.platforms {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
}

.platforms-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.platforms-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.04), transparent 70%);
}

/* Filters */
.platform-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(168, 85, 247, 0.2);
}

.filter-btn.active {
    color: #fff;
    background: var(--gradient-brand);
    border-color: transparent;
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    padding: 1.75rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.bento-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 0%, rgba(168, 85, 247, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.bento-card:hover::before { opacity: 1; }

/* Featured (spans 2 cols) */
.bento-card.featured {
    grid-column: span 2;
}

/* Hidden via filter */
.bento-card.hidden {
    display: none;
}

/* Card innards */
.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.bento-icon i,
.bento-icon svg { width: 22px; height: 22px; color: inherit; }

.bento-icon.purple  { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }
.bento-icon.blue    { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.bento-icon.pink    { background: rgba(236, 72, 153, 0.12); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.2); }
.bento-icon.cyan    { background: rgba(6, 182, 212, 0.12); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.2); }
.bento-icon.green   { background: rgba(34, 197, 94, 0.12); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.bento-icon.orange  { background: rgba(249, 115, 22, 0.12); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.2); }
.bento-icon.yellow  { background: rgba(234, 179, 8, 0.12); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.2); }
.bento-icon.red     { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.bento-icon.indigo  { background: rgba(99, 102, 241, 0.12); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.2); }
.bento-icon.teal    { background: rgba(20, 184, 166, 0.12); color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.2); }

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.bento-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.bento-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.bento-tag {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
}

.bento-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.bento-status.coming-soon {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.bento-status.live {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.bento-status.beta {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.featured { grid-column: span 2; }
}

@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.featured { grid-column: span 1; }
    .platform-filters { gap: 0.4rem; }
    .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.78rem; }
}
