/* ============================================
   MODERN WEB3 DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Modern Color Palette - Web3 Inspired */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    /* Solid Colors */
    --color-primary: #667eea;
    --color-primary-dark: #5568d3;
    --color-secondary: #f093fb;
    --color-accent: #4facfe;
    --color-success: #43e97b;
    --color-warning: #ffa502;
    --color-danger: #ff6b6b;
    --color-info: #00d4ff;
    
    /* Dark Theme Colors */
    --bg-dark: #0a0a0f;
    --bg-dark-light: #15151f;
    --bg-card-dark: rgba(21, 21, 31, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-dark: rgba(255, 255, 255, 0.02);
    
    /* Light Theme Colors (Disabled - Full Dark Mode) */
    --bg-light: #0a0a0f;
    --bg-white: #15151f;
    --bg-card-light: rgba(21, 21, 31, 0.8);
    
    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-light: #a8a8b3;
    --text-white: #ffffff;
    --text-muted: #8b8b9a;
    
    /* Border & Shadow */
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(79, 172, 254, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%) !important;
    color: #e8e8e8 !important;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    cursor: auto !important;
}

/* Force dark theme on all sections */
section {
    background-color: transparent !important;
}

.bg-white,
.bg--white,
[class*="bg-white"] {
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* No background effects */
body::before {
    display: none;
}

/* Modern Gradient Background */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1a1f3a 100%);
    pointer-events: none;
}

/* Remove decorative elements that cause usability issues */

/* Particles Disabled - Too distracting */
.particles {
    display: none;
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.glass-card-light {
    background: var(--bg-card-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MODERN BUTTONS
   ============================================ */

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    text-decoration: none;
}

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

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

/* Enhanced Visible Buttons */
.btn-modern, .btn, .btn--base, .cmn--btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: 2px solid transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary-modern, .btn--base, .btn-primary {
    background: var(--primary-gradient) !important;
    color: var(--text-white) !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-primary-modern:hover, .btn--base:hover, .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(102, 126, 234, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    filter: brightness(1.15);
    color: var(--text-white) !important;
}

.btn-secondary-modern {
    background: var(--secondary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-accent-modern {
    background: var(--accent-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-outline-modern {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-white) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    color: var(--text-white) !important;
}

/* ============================================
   MODERN CARDS
   ============================================ */

.modern-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: background 0.2s ease;
}

.modern-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

/* ============================================
   MODERN FORMS
   ============================================ */

.form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-modern {
    padding: 0.875rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
}

/* ============================================
   MODERN NAVIGATION
   ============================================ */

.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-modern.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: var(--shadow-lg);
}

.nav-link-modern {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 500;
    position: relative;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-gradient);
    transition: transform var(--transition-normal);
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--text-white);
    background: var(--bg-glass);
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.code-block-modern {
    background: var(--bg-dark-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
}

.code-language {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-copy-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
}

.code-copy-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success-modern {
    background: rgba(67, 233, 123, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.badge-warning-modern {
    background: rgba(255, 165, 2, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.badge-danger-modern {
    background: rgba(255, 107, 107, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.badge-info-modern {
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-info);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-primary-modern {
    background: rgba(102, 126, 234, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* ============================================
   STATUS INDICATORS
   ============================================ */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    opacity: 0.3;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0; }
}

.status-operational .status-dot {
    background: var(--color-success);
}

.status-operational .status-dot::after {
    background: var(--color-success);
}

.status-degraded .status-dot {
    background: var(--color-warning);
}

.status-degraded .status-dot::after {
    background: var(--color-warning);
}

.status-down .status-dot {
    background: var(--color-danger);
}

.status-down .status-dot::after {
    background: var(--color-danger);
}

/* ============================================
   TABLES
   ============================================ */

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.table-modern thead tr {
    background: var(--bg-glass-dark);
}

.table-modern th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-glass);
}

.table-modern td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-white);
}

.table-modern tbody tr {
    transition: background var(--transition-fast);
}

.table-modern tbody tr:hover {
    background: var(--bg-glass);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Staggered animations */
.stagger-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   MOBILE APP-LIKE DESIGN
   ============================================ */

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

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding: 0.75rem 0;
    display: none;
    z-index: 999;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.5rem;
}

.mobile-nav-item.active {
    color: var(--color-primary);
}

.mobile-nav-icon {
    font-size: 1.5rem;
}

.mobile-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* ============================================
   DARK THEME ENFORCEMENT
   ============================================ */

/* Override all white/light backgrounds */
.card,
.modal-content,
.dropdown-menu,
.popover,
.tooltip-inner,
.list-group-item,
.table,
.form-control,
.form-select,
.input-group-text,
.page-item .page-link,
.accordion-item,
.alert {
    background: var(--bg-glass) !important;
    color: var(--text-white) !important;
    border-color: var(--border-glass) !important;
}

/* Inputs and form elements */
input,
textarea,
select {
    background: var(--bg-glass) !important;
    color: var(--text-white) !important;
    border-color: var(--border-glass) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Tables */
.table thead th {
    background: var(--bg-glass-dark) !important;
    color: var(--text-light) !important;
}

.table tbody tr {
    background: transparent !important;
}

.table tbody tr:hover {
    background: var(--bg-glass) !important;
}

/* Modals */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* ============================================
   SIMPLE ANIMATIONS (NO 3D EFFECTS)
   ============================================ */

/* Remove all 3D animations and effects */
.animate-glow,
.animate-slide-up,
.animate-rotate-in,
.animate-bounce-in,
.hover-lift,
.hover-scale,
.hover-glow,
.text-shimmer {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* Simple fade only */
@keyframes simpleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.simple-fade {
    animation: simpleFade 0.3s ease-out;
}

/* ============================================
   SIMPLE COMPONENTS (NO 3D EFFECTS)
   ============================================ */

.card-modern-enhanced {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: background 0.2s ease;
}

.card-modern-enhanced:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Remove all 3D effects */
.neon-border,
.text-glow,
.btn-glow {
    position: static !important;
    overflow: visible !important;
}

.neon-border::before,
.btn-glow::before {
    display: none !important;
}

.text-glow {
    text-shadow: none !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-dark-light);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-modern {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-glass);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   TOOLTIP
   ============================================ */

.tooltip-modern {
    position: relative;
}

.tooltip-modern::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.875rem;
    background: var(--bg-dark-light);
    color: var(--text-white);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    border: 1px solid var(--border-glass);
}

.tooltip-modern:hover::after {
    opacity: 1;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MINIMAL BREADCRUMB (VERY SMALL)
   ============================================ */

.minimal-breadcrumb-section {
    padding: 0.5rem 0;
    background: transparent;
    position: relative;
}

.minimal-breadcrumb-nav {
    padding: 0;
    margin: 0;
}

.breadcrumb-minimal {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-link {
    color: #b8b8b8;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.8rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-link:hover {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.8rem;
}

.breadcrumb-separator {
    color: #667eea;
    font-size: 0.7rem;
}

.breadcrumb-link i {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .minimal-breadcrumb-section {
        padding: 0.25rem 0;
    }
    
    .breadcrumb-link,
    .breadcrumb-item.active {
        font-size: 0.75rem;
    }
}

/* ============================================
   SECTION SPACING
   ============================================ */

.section-modern {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff !important;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* FORCE ALL HEADINGS TO WHITE */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
}

/* Override main.css dark heading color #373e4a */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a {
    color: #ffffff !important;
}

/* CRITICAL: Force all page titles to be white and BRING TO FRONT */
.page-title,
h1.page-title,
h1.page-title.mt-3,
h1.page-title.mt-4,
.page-title.mt-3,
.page-title.mt-4,
h2.section-title,
h2.section-title.mt-3,
.section-title,
.section-title.mt-3,
section h1,
section h1.page-title,
section h2.section-title,
.about-hero-section h1,
.about-hero-section h2,
.features-hero-section h1,
.features-hero-section h2,
.pricing-hero-section h1,
.pricing-hero-section h2,
.ecosystem-hero h1,
.ecosystem-hero h2 {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 1) !important;
    position: relative !important;
    z-index: 999 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* Subtitles should be gradient color */
.page-subtitle,
.section-subtitle {
    color: #667eea !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Descriptions */
.page-description,
.section-description {
    color: #ffffff !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 999 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Section badges to front */
.section-badge {
    position: relative !important;
    z-index: 999 !important;
}

@media (max-width: 768px) {
    .section-modern {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

