/* ============================================
   IMPLANT-FOCUSED REFINED DESIGN
   Sophisticated, compact, elegant
   ============================================ */

:root {
    /* Refined Color Palette - Sophisticated & Easy on Eyes */
    --rich-navy: #0a1628;
    --deep-blue: #1e3a5f;
    --slate-blue: #334155;
    --refined-purple: #6366f1;
    --accent-teal: #14b8a6;
    --warm-gold: #f59e0b;

    /* Neutrals - Softer than pure white/black */
    --off-white: #fafbfc;
    --soft-gray: #f1f5f9;
    --medium-gray: #64748b;
    --text-primary: #1e293b;
    --text-secondary: #475569;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Refined Spacing - More compact */
    --sp-xs: 0.375rem;    /* 6px */
    --sp-sm: 0.625rem;    /* 10px */
    --sp-md: 1rem;        /* 16px */
    --sp-lg: 1.5rem;      /* 24px */
    --sp-xl: 2rem;        /* 32px */
    --sp-2xl: 3rem;       /* 48px */

    /* Refined Typography */
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

    /* Subtle Shadows */
    --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.15);
}

/* ============================================
   CAPABILITY COMPARISON CARDS - REFINED
   ============================================ */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin: var(--sp-2xl) 0;
}

.capability-card {
    background: linear-gradient(135deg, var(--off-white) 0%, #ffffff 100%);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--refined-purple), var(--accent-teal));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.capability-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(99, 102, 241, 0.2);
}

.capability-card:hover::before {
    opacity: 1;
}

/* Capability Header - More Compact */
.capability-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.capability-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(20, 184, 166, 0.1));
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.capability-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.85;
}

.capability-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

/* Problem/Solution Split - Refined & Compact */
.capability-divider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.capability-problem,
.capability-solution {
    padding: 1rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    border-left: 2px solid;
}

.capability-problem {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.02));
    border-left-color: #fca5a5;
}

.capability-problem strong {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.capability-solution {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.02));
    border-left-color: #6ee7b7;
}

.capability-solution strong {
    color: #059669;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer - Compact Badges */
.capability-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 116, 139, 0.12);
}

.capability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.08));
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.02em;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.5rem;
    color: var(--refined-purple);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.learn-more-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(3px);
    box-shadow: var(--shadow-soft);
}

/* ============================================
   IMPLANT-SPECIFIC MESSAGING
   ============================================ */

.implant-value-prop {
    background: linear-gradient(135deg, var(--rich-navy), var(--deep-blue));
    color: white;
    padding: var(--sp-2xl) var(--sp-xl);
    border-radius: 1rem;
    margin-bottom: var(--sp-2xl);
    position: relative;
    overflow: hidden;
}

.implant-value-prop::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.implant-headline {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--sp-md);
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.implant-subheadline {
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
}

/* Case Value Highlights */
.case-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: var(--sp-xl);
}

.case-value-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
}

.case-value-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-teal);
    margin-bottom: 0.375rem;
    text-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.case-value-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ============================================
   COMPARISON TABLE - ULTRA REFINED
   ============================================ */

.comparison-table-refined {
    background: var(--bg-lightest);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin: var(--sp-2xl) 0;
}

.comparison-header {
    background: linear-gradient(135deg, var(--refined-purple), var(--accent-teal));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.comparison-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.comparison-header p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.comparison-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.comparison-column {
    padding: 1.75rem;
}

.comparison-column:first-child {
    border-right: 1px solid rgba(100, 116, 139, 0.12);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(239, 68, 68, 0.01));
}

.comparison-column:last-child {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(16, 185, 129, 0.01));
}

.comparison-column-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-column:first-child .comparison-column-title {
    color: #dc2626;
}

.comparison-column:last-child .comparison-column-title {
    color: #059669;
}

.comparison-list-refined {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-list-refined li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.comparison-list-refined li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.comparison-column:first-child li::before {
    color: #dc2626;
}

.comparison-column:last-child li::before {
    color: #059669;
}

.comparison-column:last-child li {
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .capability-divider {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .comparison-body {
        grid-template-columns: 1fr;
    }

    .comparison-column:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(100, 116, 139, 0.12);
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .implant-headline {
        font-size: 1.5rem;
    }

    .case-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ANIMATION & MICRO-INTERACTIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capability-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.capability-card:nth-child(1) { animation-delay: 0.05s; }
.capability-card:nth-child(2) { animation-delay: 0.1s; }
.capability-card:nth-child(3) { animation-delay: 0.15s; }
.capability-card:nth-child(4) { animation-delay: 0.2s; }
.capability-card:nth-child(5) { animation-delay: 0.25s; }
.capability-card:nth-child(6) { animation-delay: 0.3s; }
.capability-card:nth-child(7) { animation-delay: 0.35s; }

/* Smooth Badge Pulse */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.capability-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

/* Icon Hover Effect */
.capability-icon {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover .capability-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}
