/* BreakoutWithAI API Landing Page Styles */
/* Mobile-first responsive design with performance optimization */
/* Enhanced with Professional Design System Components */

/* Import Design System */
@import url('../../design-system.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

/* GitHub-Inspired Professional Color Scheme - WCAG AA Compliant */
:root {
    --primary-color: #0366d6;          /* GitHub blue - 4.5:1+ contrast */
    --primary-hover: #0256cc;          /* Darker GitHub blue */
    --secondary-color: #586069;        /* GitHub gray - high contrast */
    --success-color: #28a745;          /* GitHub green - accessible */
    --warning-color: #ffc107;          /* GitHub yellow - visible */
    --error-color: #dc3545;            /* GitHub red - accessible */
    --background-color: #ffffff;
    --surface-color: #f6f8fa;          /* GitHub light background */
    --border-color: #d0d7de;           /* GitHub border gray */
    --text-primary: #24292e;           /* GitHub dark text - 4.5:1+ contrast */
    --text-secondary: #586069;         /* GitHub medium text - 4.5:1+ contrast */
    --text-muted: #6a737d;             /* GitHub muted text - adequate contrast */
    
    /* Professional Health Status Colors - High Contrast */
    --status-online: #28a745;          /* GitHub green - higher contrast */
    --status-degraded: #fd7e14;        /* Professional orange - accessible */
    --status-offline: #dc3545;         /* GitHub red - accessible */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* GitHub-Inspired Dark Mode - WCAG AA Compliant */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0d1117;      /* GitHub dark background */
        --surface-color: #161b22;          /* GitHub dark surface */
        --border-color: #30363d;           /* GitHub dark border - higher contrast */
        --text-primary: #f0f6fc;           /* GitHub dark text - high contrast */
        --text-secondary: #8b949e;         /* GitHub dark secondary text */
        --text-muted: #7d8590;             /* GitHub dark muted text */
        --success-color: #3fb950;          /* GitHub dark green - accessible */
        --warning-color: #d29922;          /* GitHub dark yellow - visible */
        --error-color: #f85149;            /* GitHub dark red - accessible */
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-primary);
    }
}

/* Enhanced Button Styles with Design System Integration */
.btn {
    /* Inherit from design system base button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    
    /* Enhanced anti-aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-color);      /* Higher contrast focus */
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3); /* Additional visibility */
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* Primary Button - Enhanced with gradients and professional styling */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary-600) 0%, var(--brand-primary-700) 100%);
    color: var(--color-text-inverse);
    border-color: var(--brand-primary-600);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-700) 0%, var(--brand-primary-800) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button - Professional subtle styling */
.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border-color: var(--color-border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--color-surface-subtle);
    border-color: var(--color-border-interactive);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Outline Button - High contrast professional outline */
.btn-outline {
    background: rgba(255, 255, 255, 0.9);  /* Semi-transparent background for contrast */
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;                     /* Thicker border for visibility */
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;                          /* Pure white for max contrast */
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline:focus-visible {
    outline: 3px solid var(--primary-hover);
    outline-offset: 2px;
}

/* Button Sizes */
.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-bold);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
    border-radius: var(--radius-md);
}

/* Button Icon Enhancement */
.btn-icon {
    font-size: 1.2em;
    margin-left: var(--space-1);
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

/* Loading State for Buttons */
.btn-loading {
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: ds-spin 1s linear infinite;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.health-status-nav {
    display: none;
}

/* Enhanced Health Status Indicators with Professional Design */
.health-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--surface-color);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.health-indicator:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-400);
    position: relative;
    transition: all var(--transition-fast);
    animation: ds-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* GitHub-Inspired Professional Status Colors with Enhanced Visual Feedback */
.health-dot.online { 
    background: #28a745;                      /* GitHub green */
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2), 0 0 8px rgba(40, 167, 69, 0.3);
}

.health-dot.degraded { 
    background: #fd7e14;                      /* Professional orange */
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.2), 0 0 8px rgba(253, 126, 20, 0.3);
}

.health-dot.offline { 
    background: #dc3545;                      /* GitHub red */
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2), 0 0 8px rgba(220, 53, 69, 0.3);
}

.health-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);  /* Bolder for better visibility */
    color: var(--text-primary);                /* Use primary text for contrast */
    transition: color var(--transition-fast);
}

/* GitHub-Inspired Status Text Colors - High Contrast */
.health-indicator:has(.health-dot.online) .health-text {
    color: #155724;                           /* GitHub dark green for high contrast */
}

.health-indicator:has(.health-dot.degraded) .health-text {
    color: #b45309;                           /* Professional dark orange for high contrast */
}

.health-indicator:has(.health-dot.offline) .health-text {
    color: #721c24;                           /* GitHub dark red for high contrast */
}

/* Dark mode status text adjustments */
@media (prefers-color-scheme: dark) {
    .health-indicator:has(.health-dot.online) .health-text {
        color: #6ee7b7;                       /* Bright green for dark mode */
    }
    
    .health-indicator:has(.health-dot.degraded) .health-text {
        color: #fbbf24;                       /* Bright amber for dark mode */
    }
    
    .health-indicator:has(.health-dot.offline) .health-text {
        color: #fca5a5;                       /* Bright red for dark mode */
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);  /* GitHub-inspired gradient */
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);  /* Define boundary */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);  /* Solid color for accessibility */
    /* Gradient text removed for better contrast compliance */
}

.hero-subtitle {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary-color);  /* Use primary color for better visibility */
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-primary);   /* Use primary text color for better contrast */
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;             /* Slightly bolder for better readability */
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

/* Health Dashboard */
.health-dashboard {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.health-dashboard-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.health-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Enhanced Metric Cards with Professional Design System */
.metric-card {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-interactive);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary-500), var(--brand-primary-600));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.metric-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: var(--line-height-tight);
}

.metric-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
    line-height: var(--line-height-tight);
    transition: color var(--transition-fast);
    position: relative;
}

.metric-unit {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    margin-left: var(--space-1);
    opacity: 0.8;
}

/* Status-based metric styling */
.metric-card--success .metric-value {
    color: var(--color-text-success);
}

.metric-card--success::before {
    background: linear-gradient(90deg, var(--status-success-500), var(--status-success-600));
}

.metric-card--warning .metric-value {
    color: var(--color-text-warning);
}

.metric-card--warning::before {
    background: linear-gradient(90deg, var(--status-warning-500), var(--status-warning-600));
}

.metric-card--error .metric-value {
    color: var(--color-text-error);
}

.metric-card--error::before {
    background: linear-gradient(90deg, var(--status-error-500), var(--status-error-600));
}

/* Loading state for metrics */
.metric-value--loading {
    background: linear-gradient(90deg, var(--color-surface-subtle) 25%, var(--color-border) 50%, var(--color-surface-subtle) 75%);
    background-size: 200% 100%;
    animation: ds-shimmer 2s infinite;
    color: transparent;
    border-radius: var(--radius-base);
    min-width: 3ch;
    min-height: 1.5rem;
}

@keyframes ds-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Status Badge with Professional Design System */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-transform: capitalize;
    letter-spacing: 0.025em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-400);
    flex-shrink: 0;
    transition: all var(--transition-fast);
    position: relative;
    animation: ds-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* GitHub-Inspired Professional Status Badge Variants - WCAG AA Compliant */
.status-badge.online {
    background: rgba(40, 167, 69, 0.1);     /* GitHub green base */
    color: #155724;                         /* Dark green text - high contrast */
    border-color: #28a745;                  /* GitHub green border */
    border-width: 2px;                     /* Thicker for visibility */
}

.status-badge.online .status-dot {
    background: #28a745;                    /* GitHub green dot */
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3), 0 0 6px rgba(40, 167, 69, 0.4);
}

.status-badge.degraded {
    background: rgba(253, 126, 20, 0.1);    /* Professional orange base */
    color: #b45309;                         /* Dark orange text - high contrast */
    border-color: #fd7e14;                  /* Professional orange border */
    border-width: 2px;                     /* Thicker for visibility */
}

.status-badge.degraded .status-dot {
    background: #fd7e14;                    /* Professional orange dot */
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.3), 0 0 6px rgba(253, 126, 20, 0.4);
}

.status-badge.offline {
    background: rgba(220, 53, 69, 0.1);     /* GitHub red base */
    color: #721c24;                         /* Dark red text - high contrast */
    border-color: #dc3545;                  /* GitHub red border */
    border-width: 2px;                     /* Thicker for visibility */
}

.status-badge.offline .status-dot {
    background: #dc3545;                    /* GitHub red dot */
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3), 0 0 6px rgba(220, 53, 69, 0.4);
}

.status-badge.unavailable,
.status-badge.neutral {
    background: rgba(75, 85, 99, 0.1);      /* Darker neutral base */
    color: #1f2937;                         /* Dark gray text - 4.5:1+ contrast */
    border-color: #4b5563;                  /* Dark gray border */
    border-width: 2px;                     /* Thicker for visibility */
}

.status-badge.unavailable .status-dot,
.status-badge.neutral .status-dot {
    background: #4b5563;                    /* Darker gray dot */
    box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.3), 0 0 6px rgba(75, 85, 99, 0.4);
    animation: none; /* No pulse for neutral states */
}

/* Dark mode adjustments for status badges - WCAG AA Compliant */
@media (prefers-color-scheme: dark) {
    .status-badge.online {
        background: rgba(16, 185, 129, 0.2);   /* Higher opacity for contrast */
        color: #6ee7b7;                        /* Brighter green for dark mode */
        border-color: #10b981;
    }
    
    .status-badge.degraded {
        background: rgba(245, 158, 11, 0.2);   /* Higher opacity for contrast */
        color: #fbbf24;                        /* Brighter amber for dark mode */
        border-color: #f59e0b;
    }
    
    .status-badge.offline {
        background: rgba(239, 68, 68, 0.2);    /* Higher opacity for contrast */
        color: #fca5a5;                        /* Brighter red for dark mode */
        border-color: #ef4444;
    }
    
    .status-badge.unavailable,
    .status-badge.neutral {
        background: rgba(156, 163, 175, 0.2);  /* Higher opacity for contrast */
        color: #d1d5db;                        /* Brighter gray for dark mode */
        border-color: #9ca3af;
    }
}

.health-updated {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Business Impact Section */
.business-impact {
    padding: 4rem 0;
    background: var(--surface-color);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.impact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.impact-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.impact-detail {
    font-size: 0.875rem;
    color: var(--text-primary);  /* Use primary text for better contrast */
    font-weight: 500;            /* Slightly bolder for readability */
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-description {
    color: var(--text-primary);  /* Use primary text for better contrast */
    margin-bottom: 1.5rem;
    font-weight: 400;            /* Ensure readability */
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);  /* Use primary text for better contrast */
    font-size: 0.875rem;
    font-weight: 500;            /* Slightly bolder for readability */
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Quick Start Section */
.quickstart {
    padding: 4rem 0;
    background: var(--surface-color);
}

.quickstart-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.quickstart-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-primary);  /* Use primary text for better contrast */
    font-size: 0.875rem;
    font-weight: 500;            /* Slightly bolder for readability */
}

.code-example {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.code-label {
    font-size: 0.875rem;
    color: #d1d5db;              /* Higher contrast for dark background */
    font-weight: 600;            /* Bolder for better visibility */
}

.copy-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: #334155;
    color: white;
}

.code-block {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e2e8f0;
    background: transparent;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.quickstart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

/* Documentation Section */
.documentation {
    padding: 4rem 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    display: block;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.doc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.doc-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.doc-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.doc-description {
    color: var(--text-primary);  /* Use primary text for better contrast */
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;            /* Slightly bolder for readability */
}

.doc-link {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.doc-card:hover .doc-link {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--text-primary);  /* Use primary text for better contrast */
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 500;            /* Slightly bolder for readability */
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: var(--text-primary);              /* Use primary text for better contrast */
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;                        /* Slightly bolder for readability */
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;              /* Add underline for accessibility */
}

.footer-list a:focus-visible {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    align-items: center;
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--text-primary);              /* Use primary text for better contrast */
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;                        /* Slightly bolder for readability */
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;              /* Add underline for accessibility */
}

.footer-legal a:focus-visible {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */

/* Tablets and small laptops */
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .quickstart-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .health-status-nav {
        display: block;
    }
    
    .health-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Laptops and desktops */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 1rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .quickstart-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .hero {
        padding: 8rem 1rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .nav-container {
        padding: 1.5rem 1rem;
    }
    
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .docs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .health-dot {
        border: 0.5px solid rgba(255, 255, 255, 0.2);
    }
}

/* High contrast mode support for better accessibility */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
        --primary-color: #0000ff;
        --success-color: #008000;
        --warning-color: #ff8c00;
        --error-color: #ff0000;
    }
    
    .btn {
        border-width: 2px !important;
    }
    
    .status-badge {
        border-width: 3px !important;
    }
    
    .health-dot {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skip-link {
        transition: none;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .health-dashboard,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: white !important;
        padding: 2rem 0 !important;
    }
    
    .section-container {
        padding: 0 !important;
    }
}

/* Enhanced focus visible for better keyboard navigation - WCAG AA */
.btn:focus-visible,
.doc-card:focus-visible,
.footer-list a:focus-visible {
    outline: 3px solid var(--primary-color);        /* Thicker outline */
    outline-offset: 2px;
    border-radius: 0.25rem;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);  /* Additional ring */
}

/* High contrast focus for all interactive elements */
.copy-button:focus-visible,
.health-indicator:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Enhanced Loading States with Design System */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-border);
    border-top-color: var(--brand-primary-500);
    border-radius: 50%;
    animation: ds-spin 1s linear infinite;
}

/* Enhanced card components integration */
.impact-card,
.feature-card,
.doc-card {
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.impact-card:hover,
.feature-card:hover,
.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-interactive);
}

/* Enhanced code block styling */
.code-example {
    background: var(--brand-secondary-900);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.code-header {
    background: var(--brand-secondary-800);
    border-bottom: 1px solid var(--brand-secondary-700);
    padding: var(--space-4) var(--space-6);
}

.copy-button {
    background: rgba(71, 85, 105, 0.1);  /* Light background for contrast */
    border: 1px solid var(--border-color);
    color: var(--text-primary);          /* High contrast text */
    cursor: pointer;
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.copy-button:hover {
    background: var(--primary-color);
    color: white;                        /* High contrast on hover */
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.code-block {
    padding: var(--space-6);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--neutral-200);
    overflow-x: auto;
    background: transparent;
}

/* Enhanced focus states for better accessibility */
.btn:focus-visible,
.doc-card:focus-visible,
.copy-button:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Professional scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary-500), var(--brand-primary-600));
    z-index: var(--z-sticky);
    transition: width var(--transition-fast);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* Enhanced animation integration */
.fade-in-up {
    animation: ds-fade-in-up var(--transition-slower) ease-out;
}
/* ============================================
   DARK MODE STYLES
   ============================================ */

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 2px solid var(--neutral-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.theme-toggle:hover {
    background: var(--neutral-100);
    border-color: var(--brand-primary-500);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Show/hide icons based on theme */
body:not(.dark-mode) .moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: none;
}

/* Dark Mode Color Overrides */
body.dark-mode {
    /* Custom dark mode variables - DEFINE FIRST */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;

    /* Override root CSS variables for consistent theming */
    --primary-color: #93c5fd;  /* Changed from #60a5fa (blue-400) to blue-300 for better contrast */
    --primary-hover: #bfdbfe;  /* Changed from #3b82f6 (blue-500) to blue-200 for better contrast */
    --secondary-color: #94a3b8;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --status-online: #22c55e;
    --status-degraded: #f59e0b;
    --status-offline: #ef4444;

    /* Set dark background and text color - USE VARIABLES AFTER THEY'RE DEFINED */
    background-color: #0f172a !important;
    color: #f1f5f9;

    --text-tertiary: #cbd5e1;  /* Changed from #94a3b8 for better contrast (6.1:1 vs 2.97:1) */

    --neutral-50: #1e293b;
    --neutral-100: #334155;
    --neutral-200: #475569;
    --neutral-300: #64748b;
    --neutral-400: #94a3b8;
    --neutral-500: #cbd5e1;
    --neutral-600: #e2e8f0;
    --neutral-700: #f1f5f9;
    --neutral-800: #f8fafc;
    --neutral-900: #ffffff;

    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark mode component adjustments */
body.dark-mode .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--neutral-200);
}

body.dark-mode .nav-brand {
    color: var(--text-primary);
}

body.dark-mode .theme-toggle {
    border-color: var(--neutral-300);
    color: var(--text-primary);
}

body.dark-mode .theme-toggle:hover {
    background: var(--neutral-100);
    border-color: var(--brand-primary-400);
}

body.dark-mode .btn-outline {
    border-color: var(--neutral-300);
    color: var(--text-primary);
}

body.dark-mode .btn-outline:hover {
    background: var(--brand-primary-600);
    border-color: var(--brand-primary-600);
    color: white;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

body.dark-mode .hero-content h2 {
    color: var(--text-primary);
}

body.dark-mode .hero-content p {
    color: var(--text-secondary);
}

body.dark-mode .section {
    background-color: var(--bg-primary);
}

body.dark-mode .section-alternate {
    background-color: var(--bg-secondary);
}

/* Dark mode for specific sections */
body.dark-mode .business-impact {
    background-color: #0f172a !important;
}

body.dark-mode .features {
    background-color: #1e293b !important;
}

body.dark-mode .quickstart {
    background-color: #0f172a !important;
}

body.dark-mode .documentation {
    background-color: #1e293b !important;
}

body.dark-mode .section-title {
    color: var(--text-primary);
}

body.dark-mode .section-container {
    background-color: transparent;
}

body.dark-mode .health-dashboard {
    background: var(--bg-secondary);
    border-color: var(--neutral-200);
}

body.dark-mode .metric-card {
    background: var(--bg-tertiary);
    border-color: var(--neutral-300);
}

body.dark-mode .metric-label {
    color: var(--text-tertiary);
}

body.dark-mode .metric-value {
    color: var(--text-primary);
}

body.dark-mode .code-block {
    background: var(--bg-tertiary);
    border-color: var(--neutral-300);
}

body.dark-mode .code-block code {
    color: var(--text-secondary);
}

body.dark-mode .feature-card {
    background: var(--bg-secondary);
    border-color: var(--neutral-200);
}

body.dark-mode .feature-card:hover {
    border-color: var(--brand-primary-500);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

body.dark-mode .doc-card {
    background: var(--bg-secondary) !important;
    border-color: var(--neutral-200);
}

body.dark-mode .doc-card:hover {
    border-color: var(--brand-primary-500);
}

body.dark-mode .pricing-card {
    background: var(--bg-secondary);
    border-color: var(--neutral-200);
}

body.dark-mode .pricing-card:hover {
    border-color: var(--brand-primary-500);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

body.dark-mode .footer {
    background: var(--bg-secondary);
    border-top-color: var(--neutral-200);
}

body.dark-mode .footer-link {
    color: var(--text-secondary);
}

body.dark-mode .footer-link:hover {
    color: var(--brand-primary-400);
}

/* Dark mode health status adjustments */
body.dark-mode .health-indicator {
    background: var(--bg-tertiary);
}

body.dark-mode .health-text {
    color: var(--text-secondary);
}

/* Dark mode status badge adjustments */
body.dark-mode .status-badge.online {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: #22c55e;
}

body.dark-mode .status-badge.degraded {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
    border-color: #fb923c;
}

body.dark-mode .status-badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: #ef4444;
}

/* Dark mode text elements */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-primary);
}

body.dark-mode p,
body.dark-mode li {
    color: var(--text-secondary);
}

body.dark-mode a {
    color: #60a5fa;
}

body.dark-mode a:hover {
    color: #93c5fd;
}

/* Dark mode containers */
body.dark-mode .container {
    background-color: transparent;
}

body.dark-mode .impact-card {
    background: var(--bg-secondary);
    border-color: var(--neutral-200);
}

body.dark-mode .impact-card:hover {
    border-color: var(--brand-primary-500);
}

body.dark-mode .step {
    background: var(--bg-secondary);
    border-color: #64748b;  /* Brighter border (slate-500) for better visibility */
}

body.dark-mode .step-number {
    background: #3b82f6;  /* Bright blue background */
    color: #ffffff;  /* Pure white text */
    font-weight: 700;  /* Bold for emphasis */
}

body.dark-mode .step-title {
    color: #f1f5f9;  /* Bright white for titles */
    font-weight: 600;
}

body.dark-mode .step-description {
    color: #cbd5e1;  /* Light gray for descriptions */
}

/* Dark mode code examples */
body.dark-mode .code-example {
    background: var(--bg-tertiary);
    border-color: var(--neutral-300);
}

body.dark-mode .code-example code {
    color: #e2e8f0;
}

body.dark-mode .copy-button {
    background: var(--neutral-200);
    color: var(--text-primary);
}

body.dark-mode .copy-button:hover {
    background: var(--neutral-300);
}

/* Dark mode buttons */
body.dark-mode .btn-primary {
    background: #2563eb;
    color: white;
}

body.dark-mode .btn-primary:hover {
    background: #1d4ed8;
}

body.dark-mode .btn-secondary {
    background: rgba(203, 213, 225, 0.1);  /* Subtle light background */
    color: #f1f5f9;  /* Bright white text */
    border-color: #cbd5e1;  /* Bright visible border */
}

body.dark-mode .btn-secondary:hover {
    background: rgba(203, 213, 225, 0.2);  /* Slightly brighter on hover */
    border-color: #e2e8f0;  /* Even brighter border on hover */
    transform: translateY(-1px);
}

/* Dark mode nav */
body.dark-mode .nav-link {
    color: var(--text-secondary);
}

body.dark-mode .nav-link:hover {
    color: var(--text-primary);
}

/* Additional comprehensive dark mode rules */
body.dark-mode .brand-text {
    color: #60a5fa;
}

body.dark-mode .hero-title {
    color: #ffffff !important;  /* Pure white for maximum contrast (21:1) - !important to override specificity */
}

body.dark-mode .hero-subtitle {
    color: #93c5fd;  /* Changed from #60a5fa (blue-400) to blue-300 for better contrast (6.2:1 vs 3.8:1) */
}

body.dark-mode .hero-description {
    color: #e2e8f0;  /* slate-200 for excellent visibility (12.6:1 contrast) */
    font-weight: 500;  /* Slightly bolder for better readability */
}

body.dark-mode .health-dashboard-title {
    color: var(--text-primary);
}

body.dark-mode .metric-unit {
    color: var(--text-tertiary);
}

body.dark-mode .metric-card--success .metric-value {
    color: #6ee7b7;
}

body.dark-mode .metric-card--warning .metric-value {
    color: #fbbf24;
}

body.dark-mode .metric-card--error .metric-value {
    color: #fca5a5;
}

body.dark-mode .metric-value--loading {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-300) 50%, var(--neutral-200) 75%);
}

body.dark-mode .health-updated {
    color: var(--text-tertiary);
}

body.dark-mode .health-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3), 0 0 8px rgba(34, 197, 94, 0.4);
}

body.dark-mode .health-dot.degraded {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 0 8px rgba(245, 158, 11, 0.4);
}

body.dark-mode .health-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), 0 0 8px rgba(239, 68, 68, 0.4);
}

body.dark-mode .health-indicator:has(.health-dot.online) .health-text {
    color: #6ee7b7;
}

body.dark-mode .health-indicator:has(.health-dot.degraded) .health-text {
    color: #fbbf24;
}

body.dark-mode .health-indicator:has(.health-dot.offline) .health-text {
    color: #fca5a5;
}

body.dark-mode .impact-number {
    color: #60a5fa;
}

body.dark-mode .impact-label {
    color: var(--text-primary);
}

body.dark-mode .impact-detail {
    color: var(--text-secondary);
}

body.dark-mode .feature-icon {
    opacity: 0.9;
}

body.dark-mode .feature-title {
    color: var(--text-primary);
}

body.dark-mode .feature-description {
    color: var(--text-secondary);
}

body.dark-mode .feature-list li {
    color: var(--text-secondary);
}

body.dark-mode .feature-list li::before {
    color: #22c55e;
}

body.dark-mode .code-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

body.dark-mode .code-label {
    color: #e2e8f0;
}

body.dark-mode .doc-icon {
    opacity: 0.9;
}

body.dark-mode .doc-title {
    color: var(--text-primary);
}

body.dark-mode .doc-description {
    color: var(--text-secondary);
}

body.dark-mode .doc-link {
    color: #60a5fa;
}

body.dark-mode .footer-title {
    color: #60a5fa;
}

body.dark-mode .footer-description {
    color: var(--text-secondary);
}

body.dark-mode .footer-section-title {
    color: var(--text-primary);
}

body.dark-mode .footer-list a {
    color: var(--text-secondary);
}

body.dark-mode .footer-list a:hover {
    color: #60a5fa;
}

body.dark-mode .footer-legal a {
    color: var(--text-secondary);
}

body.dark-mode .footer-legal a:hover {
    color: #60a5fa;
}

body.dark-mode .footer-bottom {
    border-top-color: var(--neutral-200);
    color: var(--text-secondary);
}

body.dark-mode .skip-link {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .loading::after {
    border-color: var(--neutral-200);
    border-top-color: #60a5fa;
}

body.dark-mode .scroll-progress {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

/* Smooth transition for theme changes */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header,
.hero,
.section,
.metric-card,
.feature-card,
.doc-card,
.pricing-card,
.footer,
.code-block,
.btn,
.theme-toggle {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}
