/* =========================================
   KEY FEATURES SECTION (From Mockup)
========================================= */

/* --- Font Import (Required by Mockup) --- */
/* You may already have this, but the mockup depends on it */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');

/* --- Base Section --- */
.key-features-section {
    /* Color from prototype: bg-background-light */
    background-color: #F0F2F5; 
    padding: 80px 40px;
    font-family: 'Inter', sans-serif;
    color: #333333; /* default neutral-text */
    overflow: hidden;
}

.key-features-container {
    max-width: 1200px; /* Matches .atlas-feature-boxes max-width */
    margin: 0 auto;
}

/* --- Section Header --- */
.key-features-header {
    text-align: center;
    margin-bottom: 48px; /* 3rem */
}

.key-features-main-title {
    /* Color from prototype: text-primary-text */
    color: #0A2342; 
    /* Font from prototype: text-4xl sm:text-5xl font-bold */
    font-size: 40px;
    font-weight: 400; /* Use 700 for bold 'Inter' */
    line-height: 1.2;
    margin-bottom: 16px;
}

.key-features-main-subtitle {
    /* Color from prototype: text-neutral-text */
    color: #333333; 
    /* Font from prototype: text-lg */
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px; /* 42rem */
    margin: 0 auto;
}

/* --- Features Grid --- */
.key-features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: 1 column */
    gap: 24px; /* 1.5rem */
}

/* --- Feature Card --- */
.key-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px; /* 1rem */
    
    background-color: #ffffff;
    padding: 24px; /* 1.5rem */
    text-align: center;
    
    /* Border from prototype: border-gray-200/80 */
    border: 1px solid rgba(229, 231, 235, 0.8); 
    
    /* Radius from prototype: rounded-xl */
    border-radius: 12px; 
    
    /* Shadow from prototype: shadow-sm */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
    
    transition: box-shadow 0.3s ease;
}

.key-feature-card:hover {
    /* Shadow from prototype: hover:shadow-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --- Card Icon --- */
.key-feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px; /* h-16 */
    width: 64px;  /* w-16 */
    border-radius: 50%; /* rounded-full */
    
    /* Colors from prototype: bg-primary/10 */
    background-color: rgba(17, 115, 212, 0.1); 
    flex-shrink: 0;
}

.key-feature-icon-wrapper .material-symbols-outlined {
    /* Font size from prototype: !text-4xl */
    font-size: 36px !important; 
    
    /* Color from prototype: text-primary */
    color: #1173d4; 
    
    /* Fix for Material Symbols alignment */
    font-variation-settings: 'wght' 300;
}

/* --- Card Content --- */
.key-feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* gap-2 */
}

.key-feature-card h3 {
    /* Font from prototype: text-lg font-bold */
    font-size: 18px; 
    font-weight: 400;
    
    /* Color from prototype: text-primary-text */
    color: #0A2342; 
    margin: 0;
    line-height: 1.4;
}

.key-feature-card p {
    /* Font from prototype: text-sm font-normal */
    font-size: 14px; 
    font-weight: 400;
    
    /* Color from prototype: text-neutral-text */
    color: #333333; 
    line-height: 1.6;
    margin: 0;
}

/* --- Special Card 3: Progress Ring --- */
.key-feature-icon-wrapper.progress-ring {
    background-color: transparent;
    position: relative;
}

.progress-ring .progress-svg {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
}

.progress-ring .progress-bg {
    /* Color from prototype: text-gray-200 */
    stroke: #e5e7eb; 
}

.progress-ring .progress-bar {
    /* Color from prototype: text-secondary-accent */
    stroke: #2CA58D; 
    transition: stroke-dasharray 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.progress-ring .material-symbols-outlined {
    /* Color from prototype: text-secondary-accent */
    color: #2CA58D; 
    
    /* Font size from prototype: text-3xl */
    font-size: 30px !important; 
}

.key-feature-card h3 .animated-counter {
    /* Color from prototype: text-secondary-accent */
    color: #2CA58D; 
}

/* --- Responsive Grid --- */
@media (min-width: 640px) {
    /* sm:grid-cols-2 */
    .key-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* lg:grid-cols-5 */
    .key-features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- Responsive Typography --- */
@media (max-width: 768px) {
    .key-features-main-title {
        font-size: 32px;
    }
    .key-features-main-subtitle {
        font-size: 16px;
    }
    .key-features-section {
        padding: 60px 20px;
    }
}