/* Enhanced Design System Variables - Consistent with overview page */
:root {
    --qc-purple-primary: #6a3de8;
    --qc-purple-dark: #5227cf;
    --qc-purple-light: #8a65f0;
    --qc-purple-lighter: #b39ddb;
    --qc-purple-accent: #7c4dff;
    --qc-purple-subtle: #f5f0ff;

    --qc-success: #10b981;
    --qc-success-light: #34d399;
    --qc-warning: #f59e0b;
    --qc-danger: #ef4444;

    --qc-neutral-50: #f9fafb;
    --qc-neutral-100: #f3f4f6;
    --qc-neutral-200: #e5e7eb;
    --qc-neutral-300: #d1d5db;
    --qc-neutral-400: #9ca3af;
    --qc-neutral-500: #6b7280;
    --qc-neutral-600: #4b5563;
    --qc-neutral-700: #374151;
    --qc-neutral-800: #1f2937;
    --qc-neutral-900: #111827;

    --qc-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --qc-radius-sm: 0.375rem;
    --qc-radius: 0.5rem;
    --qc-radius-lg: 0.75rem;
    --qc-radius-xl: 1rem;
    --qc-radius-2xl: 1.5rem;

    --qc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --qc-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --qc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --qc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --qc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --qc-spacing-1: 0.25rem;
    --qc-spacing-2: 0.5rem;
    --qc-spacing-3: 0.75rem;
    --qc-spacing-4: 1rem;
    --qc-spacing-5: 1.25rem;
    --qc-spacing-6: 1.5rem;
    --qc-spacing-8: 2rem;
    --qc-spacing-10: 2.5rem;
    --qc-spacing-12: 3rem;
    --qc-spacing-16: 4rem;
    --qc-spacing-20: 5rem;
    --qc-spacing-24: 6rem;

    --qc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --qc-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: var(--qc-font-family);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--qc-spacing-4);
}

/* Enhanced Button System */
.btn-enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--qc-spacing-2);
    padding: var(--qc-spacing-3) var(--qc-spacing-6);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--qc-radius-lg);
    border: 2px solid transparent;
    text-decoration: none;
    transition: var(--qc-transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-enhanced--primary {
    background: linear-gradient(135deg, var(--qc-purple-primary), var(--qc-purple-light));
    color: white;
    box-shadow: var(--qc-shadow-md);
}

.btn-enhanced--primary:hover {
    background: linear-gradient(135deg, var(--qc-purple-dark), var(--qc-purple-primary));
    transform: translateY(-2px);
    box-shadow: var(--qc-shadow-lg);
    color: white;
    text-decoration: none;
}

.btn-enhanced--secondary {
    background: white;
    color: var(--qc-purple-primary);
    border-color: var(--qc-purple-primary);
    box-shadow: var(--qc-shadow);
}

.btn-enhanced--secondary:hover {
    background: var(--qc-purple-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--qc-shadow-lg);
    text-decoration: none;
}

.btn-enhanced--large {
    padding: var(--qc-spacing-4) var(--qc-spacing-8);
    font-size: 1.125rem;
}

/* Market Opportunity Page Styles */
.market-opportunity {
    font-family: var(--qc-font-family);
    color: var(--qc-neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--qc-neutral-50);
}

/* Hero Section */
.market-opportunity__hero {
    background: linear-gradient(135deg, #8a4baf 0%, #6b46c1 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #4c1d95;
}

.market-opportunity__hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.market-opportunity__hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.market-opportunity__hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.market-opportunity__hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Market Statistics Section */
.market-opportunity__stats {
    padding: var(--qc-spacing-20) 0;
    background: white;
}

.market-opportunity__stats-header {
    text-align: center;
    margin-bottom: var(--qc-spacing-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.market-opportunity__stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--qc-neutral-900);
    margin-bottom: var(--qc-spacing-4);
}

.market-opportunity__stats-subtitle {
    font-size: 1.125rem;
    color: var(--qc-neutral-600);
    margin-bottom: 0;
}

.market-opportunity__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--qc-spacing-8);
    max-width: 1000px;
    margin: 0 auto;
}

.market-opportunity__stat-card {
    background: white;
    border-radius: var(--qc-radius-2xl);
    padding: var(--qc-spacing-8);
    box-shadow: var(--qc-shadow-xl);
    border: 1px solid var(--qc-neutral-200);
    transition: var(--qc-transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.market-opportunity__stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--qc-shadow-xl);
    border-color: var(--qc-purple-light);
}

.market-opportunity__stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--qc-purple-primary), var(--qc-purple-light));
}

.market-opportunity__stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--qc-purple-primary), var(--qc-purple-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--qc-spacing-6);
    font-size: 40px;
    box-shadow: var(--qc-shadow-md);
}

.market-opportunity__stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--qc-purple-primary);
    margin-bottom: var(--qc-spacing-3);
    line-height: 1;
}

.market-opportunity__stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--qc-neutral-800);
    margin-bottom: var(--qc-spacing-3);
}

.market-opportunity__stat-description {
    color: var(--qc-neutral-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Business Case Section */
.market-opportunity__business-case {
    padding: var(--qc-spacing-20) 0;
    background: var(--qc-neutral-50);
}

.market-opportunity__business-case-header {
    text-align: center;
    margin-bottom: var(--qc-spacing-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.market-opportunity__business-case-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--qc-neutral-900);
    margin-bottom: var(--qc-spacing-4);
}

.market-opportunity__osha-quote {
    background: white;
    border-left: 5px solid var(--qc-purple-primary);
    padding: var(--qc-spacing-8);
    margin: var(--qc-spacing-8) 0;
    border-radius: var(--qc-radius-lg);
    box-shadow: var(--qc-shadow-lg);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--qc-neutral-700);
    position: relative;
}

.market-opportunity__osha-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--qc-purple-light);
    position: absolute;
    top: -10px;
    left: var(--qc-spacing-6);
    font-family: serif;
}

.market-opportunity__roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--qc-spacing-6);
    margin-top: var(--qc-spacing-12);
}

.market-opportunity__roi-item {
    background: white;
    padding: var(--qc-spacing-6);
    border-radius: var(--qc-radius-xl);
    box-shadow: var(--qc-shadow-md);
    border: 1px solid var(--qc-neutral-200);
    transition: var(--qc-transition);
}

.market-opportunity__roi-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--qc-shadow-lg);
    border-color: var(--qc-purple-light);
}

.market-opportunity__roi-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--qc-success), var(--qc-success-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--qc-spacing-4);
    font-size: 24px;
}

.market-opportunity__roi-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--qc-neutral-800);
    margin-bottom: var(--qc-spacing-2);
}

.market-opportunity__roi-description {
    color: var(--qc-neutral-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Regulatory Tailwinds Section */
.market-opportunity__regulatory {
    padding: var(--qc-spacing-20) 0;
    background: linear-gradient(135deg, var(--qc-purple-dark), var(--qc-purple-primary));
    color: white;
}

.market-opportunity__regulatory-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.market-opportunity__regulatory-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--qc-spacing-6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.market-opportunity__regulatory-callout {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--qc-radius-2xl);
    padding: var(--qc-spacing-8);
    margin: var(--qc-spacing-8) 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.market-opportunity__regulatory-callout::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.1));
    border-radius: var(--qc-radius-2xl);
    z-index: -1;
}

.market-opportunity__regulatory-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0;
    opacity: 0.95;
}

/* CTA Section */
.market-opportunity__cta {
    padding: var(--qc-spacing-20) 0;
    background: white;
    text-align: center;
}

.market-opportunity__cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--qc-neutral-900);
    margin-bottom: var(--qc-spacing-6);
}

.market-opportunity__cta-description {
    font-size: 1.125rem;
    color: var(--qc-neutral-600);
    margin-bottom: var(--qc-spacing-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.market-opportunity__cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--qc-spacing-4);
    flex-wrap: wrap;
}

/* Animation Enhancement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-opportunity__stat-card,
.market-opportunity__roi-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.market-opportunity__stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.market-opportunity__stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.market-opportunity__roi-item:nth-child(1) {
    animation-delay: 0.1s;
}

.market-opportunity__roi-item:nth-child(2) {
    animation-delay: 0.2s;
}

.market-opportunity__roi-item:nth-child(3) {
    animation-delay: 0.3s;
}

.market-opportunity__roi-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .market-opportunity__hero-title {
        font-size: 3rem;
    }

    .market-opportunity__stats-title,
    .market-opportunity__business-case-title,
    .market-opportunity__regulatory-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .market-opportunity__hero-title {
        font-size: 2.5rem;
    }

    .market-opportunity__hero-subtitle {
        font-size: 1.2rem;
    }

    .market-opportunity__stats-grid {
        grid-template-columns: 1fr;
        gap: var(--qc-spacing-6);
    }

    .market-opportunity__roi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--qc-spacing-4);
    }

    .market-opportunity__stat-value {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .market-opportunity__hero {
        padding: 4rem 0;
    }

    .market-opportunity__hero-title {
        font-size: 2.25rem;
    }

    .market-opportunity__hero-subtitle {
        font-size: 1.1rem;
    }

    .market-opportunity__stats-title,
    .market-opportunity__business-case-title,
    .market-opportunity__regulatory-title {
        font-size: 2rem;
    }

    .market-opportunity__cta-title {
        font-size: 2.25rem;
    }

    .market-opportunity__roi-grid {
        grid-template-columns: 1fr;
    }

    .market-opportunity__stat-value {
        font-size: 2.5rem;
    }

    .market-opportunity__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .market-opportunity__hero {
        padding: 3rem 0;
    }

    .market-opportunity__hero-title {
        font-size: 1.85rem;
    }

    .market-opportunity__hero-subtitle {
        font-size: 1rem;
    }

    .market-opportunity__stat-card,
    .market-opportunity__roi-item {
        padding: var(--qc-spacing-6);
    }

    .market-opportunity__regulatory-callout,
    .market-opportunity__osha-quote {
        padding: var(--qc-spacing-6);
    }

    .market-opportunity__cta-title {
        font-size: 1.875rem;
    }
}