/* Why Choose SnapVideo - Features Grid */

.section-subtitle {
    font-size: 1.0625rem;
    color: #666;
    text-align: center;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* Main grid container with fine border */
.features-grid {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: background 0.3s ease;
}

.feature-card:hover {
    background: #fafafa;
}

/* Border logic for grid cells */
.feature-card:not(:nth-child(3n))::after {
    content: '';
    position: absolute;
    right: 0;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: #e0e0e0;
}

/* Bottom row top border */
.feature-card:nth-child(n+4) {
    border-top: 1px solid #e0e0e0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.75;
    position: relative;
    z-index: 1;
}

/* Pastel backgrounds for icons */
.feature-card:nth-child(1) .feature-icon {
    background: #f5f5f5;
}
.feature-card:nth-child(1) .feature-icon svg {
    stroke: #1a1a1a;
}

.feature-card:nth-child(2) .feature-icon {
    background: #fce7f3;
}
.feature-card:nth-child(2) .feature-icon svg {
    stroke: #be185d;
}

.feature-card:nth-child(3) .feature-icon {
    background: #fef3c7;
}
.feature-card:nth-child(3) .feature-icon svg {
    stroke: #b45309;
}

.feature-card:nth-child(4) .feature-icon {
    background: #ede9fe;
}
.feature-card:nth-child(4) .feature-icon svg {
    stroke: #7c3aed;
}

.feature-card:nth-child(5) .feature-icon {
    background: #d1fae5;
}
.feature-card:nth-child(5) .feature-icon svg {
    stroke: #059669;
}

.feature-card:nth-child(6) .feature-icon {
    background: #dbeafe;
}
.feature-card:nth-child(6) .feature-icon svg {
    stroke: #2563eb;
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    max-width: 280px;
}

/* Bottom CTA row */
.cta-row {
    grid-column: 1 / -1;
    border-top: 1px solid #e0e0e0;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fafafa;
}

.cta-text {
    font-size: 0.9375rem;
    color: #666;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-link:hover {
    gap: 10px;
    color: #22c55e;
}

.cta-link svg {
    width: 16px;
    height: 16px;
}

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

    .feature-card:not(:nth-child(3n))::after {
        display: none;
    }

    .feature-card:not(:nth-child(2n))::after {
        content: '';
        position: absolute;
        right: 0;
        top: 24px;
        bottom: 24px;
        width: 1px;
        background: #e0e0e0;
    }

    .feature-card:nth-child(n+3) {
        border-top: 1px solid #e0e0e0;
    }

    .feature-card:nth-child(4) {
        border-top: 1px solid #e0e0e0;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card::after {
        display: none !important;
    }

    .feature-card:not(:first-child) {
        border-top: 1px solid #e0e0e0;
    }

    .feature-card {
        padding: 32px 24px;
    }
}
