/* ============================================
   Features Grid - Lovable Style
   ============================================ */

.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Left-aligned header */
.section-header--left {
    text-align: left;
    max-width: 600px;
    margin-bottom: 4rem;
}

.section-header--left h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-header--left p {
    color: var(--sp-text-secondary);
    font-size: 1.125rem;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--sp-text-tertiary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7b7b;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Muted text for header */
.text-muted {
    color: var(--sp-text-tertiary);
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Feature Card */
.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(255, 123, 123, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

/* Corner Accent */
.feature-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(225deg, rgba(255, 123, 123, 0.1), transparent);
    pointer-events: none;
}

/* Feature Tags */
.feature-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.feature-tag--coral {
    background: rgba(255, 123, 123, 0.15);
    color: #ff7b7b;
}

.feature-tag--purple {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.feature-tag--orange {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.feature-tag--blue {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

/* Icon Box */
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease;
}

.feature-card:hover .feature-icon-box {
    border-color: rgba(255, 123, 123, 0.4);
}

.feature-icon-box svg {
    width: 20px;
    height: 20px;
    color: var(--sp-text-primary);
}

/* Card Title with Arrow */
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sp-text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
    color: #ff7b7b;
    font-size: 1rem;
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Card Description */
.feature-card p {
    color: var(--sp-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Bottom gradient line on hover */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 123, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header--left h2 {
        font-size: 2.5rem;
    }
}