/* Case Studies Section Styles */

/* Hero Section */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 3rem 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.25);
    border: 1px solid var(--primary);
}

.filter-btn.inactive {
    background: white;
    color: var(--text-body);
    border: 1px solid var(--border-color);
}

.filter-btn.inactive:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Case Study Grid */
.case-study-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .case-study-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Case Study Card */

.case-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.15s ease-out, opacity 0.15s ease-out, transform 0.15s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card:hover {
    border-color: rgba(19, 127, 236, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.company-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

/* Badge Colors */
.badge-green {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #dcfce7;
}

.badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.badge-purple {
    background: #faf5ff;
    color: #9333ea;
    border-color: #f3e8ff;
}

.badge-orange {
    background: #fff7ed;
    color: #ea580c;
    border-color: #ffedd5;
}

.badge-primary {
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary);
    border-color: rgba(19, 127, 236, 0.2);
}

/* Problem/Solution Sections */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.section-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.problem-box {
    margin-bottom: 1.5rem;
}

/* Metric Box */
.metric-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.big-metric {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.result-bar {
    margin-top: 1rem;
}

.bar-container {
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Card Action */
.view-details {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9375rem;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.view-details:hover {
    gap: 0.5rem;
}

.view-details i {
    font-size: 1.125rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.disclaimer-text {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* CTA Section */
.cta-dark {
    background: #0f172a;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}