/* Apple-inspired benefits section styles */

/* Metric Cards */
.apple-metric-card {
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.apple-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 114, 227, 0.05), transparent 50%);
    z-index: 0;
}

.apple-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 114, 227, 0.15);
    border-color: rgba(0, 114, 227, 0.2);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 114, 227, 0.1), rgba(103, 58, 183, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #007FFF;
    position: relative;
    z-index: 1;
}

.metric-comparison {
    position: relative;
    z-index: 1;
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.metric-value.amtecco {
    color: #007FFF;
}

.metric-value.competitor {
    color: #86868b;
    font-size: 1.25rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.vs-indicator {
    font-size: 0.8rem;
    color: #86868b;
    margin: 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-improvement {
    font-size: 0.85rem;
    color: #34C759;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* Feature Comparison Cards */
.feature-comparison-card {
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007FFF, #673AB7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.feature-header h4 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provider-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.progress-container {
    position: relative;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 16px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.8s ease;
    margin: 0;
    padding: 0;
}

.progress-bar.amtecco-bar {
    background: linear-gradient(90deg, #007FFF, #0A84FF);
    box-shadow: 0 0 20px rgba(0, 127, 255, 0.3);
}

.progress-bar.competitor-bar {
    background: linear-gradient(90deg, #8E8E93, #636366);
}

.progress-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    z-index: 10;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apple-metric-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-value.competitor {
        font-size: 1.1rem;
    }
    
    .feature-comparison-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-header {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-header h4 {
        font-size: 1rem;
    }
    
    .comparison-bars {
        gap: 1rem;
    }
    
    .progress-container {
        height: 28px;
    }
    
    .progress-value {
        font-size: 0.75rem;
    }
}

/* Animation on scroll */
.apple-metric-card,
.feature-comparison-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.apple-metric-card.animate,
.feature-comparison-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.apple-metric-card:nth-child(1) { transition-delay: 0.1s; }
.apple-metric-card:nth-child(2) { transition-delay: 0.2s; }
.apple-metric-card:nth-child(3) { transition-delay: 0.3s; }
.apple-metric-card:nth-child(4) { transition-delay: 0.4s; }

.feature-comparison-card:nth-child(1) { transition-delay: 0.1s; }
.feature-comparison-card:nth-child(2) { transition-delay: 0.2s; }
.feature-comparison-card:nth-child(3) { transition-delay: 0.3s; }
