/* ==========================================
   AI Features Section
   ========================================== */

.ai-features-section {
    padding: 120px 0 100px;
    background: var(--bg-light);
}

.ai-features-header {
    text-align: center;
    margin-bottom: 60px;
}

.ai-features-title {
    font-size: 2.75rem;
    font-weight: 600;
    color: rgba(15, 26, 43, 0.95);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ai-features-subtitle {
    font-size: 1.125rem;
    color: #5a6c7d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ai-feature-card {
    text-align: center;
    padding: 40px 32px;
    background: #ffffff;
    border-radius: 18px;

    /* Gradient frame */
    border: 1px solid transparent;
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(135deg, rgba(47,86,201,0.70), rgba(48,197,107,0.55), rgba(47,86,201,0.45)) border-box;

    box-shadow: 0 6px 18px rgba(15, 26, 43, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ai-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 44px rgba(15, 26, 43, 0.12);
    background:
      linear-gradient(#ffffff, #ffffff) padding-box,
      linear-gradient(135deg, rgba(47,86,201,0.90), rgba(48,197,107,0.70), rgba(47,86,201,0.65)) border-box;
}

.ai-feature-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f8faff;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.ai-feature-icon img {
    width: 175px;
    height: 175px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    mix-blend-mode: normal; /* keep crisp colors for the new icon set */
}

.ai-feature-card:hover .ai-feature-icon img {
    transform: scale(1.15);
}

.ai-feature-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a2b49;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ai-feature-text {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .ai-features-section {
        padding: 72px 0;
    }
    
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .ai-features-title {
        font-size: 2rem;
    }
    
    .ai-features-subtitle {
        font-size: 1rem;
    }
    
    .ai-feature-card {
        padding: 32px 24px;
    }
    
    .ai-feature-heading {
        font-size: 1.2rem;
    }
    
    .ai-feature-text {
        font-size: 0.9375rem;
    }
    
    .ai-feature-icon {
        width: 140px;
        height: 140px;
    }
    
    .ai-feature-icon img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 640px) {
    .ai-features-section {
        padding: 48px 0;
    }
    
    .ai-features-header {
        margin-bottom: 36px;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .ai-features-title {
        font-size: 1.75rem;
    }
    
    .ai-feature-card {
        padding: 28px 24px;
    }
    
    .ai-feature-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }
    
    .ai-feature-icon img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .ai-feature-heading {
        font-size: 1.125rem;
        margin-bottom: 8px;
    }
    
    .ai-feature-text {
        font-size: 0.9rem;
    }
}
