/* Optimized CSS - Only Classes Used in HTML */

        :root {
            --primary-color: #0066FF;
            --secondary-color: #00CC88;
            --background-light: #FAFAFA;
            --background-dark: #0A0A0A;
            --text-primary-light: #000000;
            --text-primary-dark: #FFFFFF;
            --text-secondary-light: #666666;
            --text-secondary-dark: #999999;
            --border-light: #E5E5E5;
            --border-dark: #2A2A2A;
            --card-light: #FFFFFF;
            --card-dark: #1A1A1A;
        }

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

        /* Body styling */
        body {
            font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 16px;
            font-weight: 400;
            line-height: 1.7;
            transition: all 0.2s ease;
        }

        /* Paragraph spacing for better readability */
        p {
            margin-bottom: 1.25rem;
        }

        p:last-child {
            margin-bottom: 0;
        }

        /* Theme Classes */
        .light-theme {
            --logo-color: #000000;
            background-color: var(--background-light);
            color: var(--text-primary-light);
        }

        .dark-theme {
            --logo-color: #FFFFFF;
            background-color: var(--background-dark);
            color: var(--text-primary-dark);
        }

        /* Layout Classes */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Social Bar */
        .social-bar {
            /* Normal document flow - scrolls away naturally */
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: none;
            padding: 12px 0;
            width: 100%;
            z-index: 100;
        }
        
        .social-bar-links {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 15px;
        }
        
        .social-bar-links a {
            color: #666;
            font-size: 18px;
            transition: all 0.3s ease;
            padding: 8px;
            border-radius: 4px;
            text-decoration: none;
            display: inline-block;
            line-height: 1;
        }
        
        .social-bar-links a:hover {
            color: var(--primary-color);
            transform: translateY(-1px);
        }
        
        .social-bar-links .fab.fa-twitter:hover { color: #1DA1F2; }
        .social-bar-links .fab.fa-github:hover { color: #333; }
        .social-bar-links .fab.fa-npm:hover { color: #CB3837; }
        .social-bar-links .fab.fa-linkedin-in:hover { color: #0077B5; }
        .social-bar-links .fas.fa-envelope:hover { color: var(--secondary-color); }
        
        /* Dark theme social bar */
        .dark-theme .social-bar {
            background: rgba(10, 10, 10, 0.95);
        }
        
        .dark-theme .social-bar-links a {
            color: #999;
        }
        
        .dark-theme .social-bar-links a:hover {
            color: var(--primary-color);
        }
        
        .dark-theme .social-bar-links .fab.fa-github:hover { color: #fff; }
        }
        
        .dark-theme .social-bar-links a:hover {
            color: var(--primary-color);
        }
        
        .dark-theme .social-bar-links .fab.fa-github:hover { color: #fff; }

        /* Mobile responsive for social bar */
        @media (max-width: 768px) {
            .social-bar-links {
                justify-content: center;
                gap: 12px;
            }
            
            .social-bar-links a {
                font-size: 16px;
                padding: 6px;
            }
        }
        
        @media (max-width: 480px) {
            .social-bar {
                padding: 8px 0;
            }
            
            .social-bar-links {
                gap: 10px;
            }
            
            .social-bar-links a {
                font-size: 14px;
                padding: 5px;
            }
        }

        /* Navigation */
        nav {
            /* Initially relative position - becomes fixed via JavaScript */
            position: relative;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
            border-bottom: none;
            box-shadow: none;
            transition: all 0.3s ease;
            padding: 32px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 100px;
        }

        .light-theme nav {
            background-color: rgba(250, 250, 250, 0.85);
        }

        .dark-theme nav {
            background-color: rgba(10, 10, 10, 0.85);
        }

        /* When nav becomes sticky */
        nav.is-sticky {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        /* Spacer to prevent content jump when nav becomes fixed */
        .nav-spacer {
            height: 0;
            transition: height 0.3s ease;
        }

        .nav-spacer.is-active {
            height: 100px; /* Match nav min-height */
        }

        /* Scrolled state - maintain clean look */
        nav.scrolled,
        nav.is-sticky.scrolled {
            border-bottom: none;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            padding: 20px 24px;
            min-height: 76px;
        }

        .nav-spacer.scrolled {
            height: 76px; /* Match scrolled nav height */
        }

        /* Logo styling with neon effects */
        .logo {
            font-size: 2rem;
            font-weight: 700;
            text-decoration: none;
            color: inherit;
            display: flex;
            align-items: center;
            position: relative;
        }

        .logo-text {
            position: relative;
        }

        /* Simple animated line underneath the logo text */
        .logo-text::before {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            width: 50%;
            height: 3px;
            background: linear-gradient(90deg, #FF69B4, #00CCFF);
            border-radius: 2px;
            animation: neonGlow 3s ease-in-out infinite;
        }

        @keyframes neonGlow {
            0%, 100% {
                box-shadow: 0 0 5px #FF69B4, 0 0 10px #FF69B4;
                opacity: 0.8;
            }
            50% {
                box-shadow: 0 0 8px #00CCFF, 0 0 15px #00CCFF;
                opacity: 1;
            }
        }

        /* Code animation container */
        .code-animation {
            position: absolute;
            right: -120px;
            top: 50%;
            transform: translateY(-50%);
            width: 100px;
            height: 60px;
            opacity: 0.4;
            overflow: hidden;
        }

        /* Floating code elements */
        .code-element {
            position: absolute;
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
            font-size: 10px;
            color: var(--secondary-color);
            animation: codeFloat 4s ease-in-out infinite;
        }

        .code-element:nth-child(1) {
            top: 5px;
            left: 10px;
            animation-delay: 0s;
        }

        .code-element:nth-child(2) {
            top: 25px;
            left: 40px;
            animation-delay: 1s;
        }

        .code-element:nth-child(3) {
            top: 45px;
            left: 15px;
            animation-delay: 2s;
        }

        .code-element:nth-child(4) {
            top: 15px;
            left: 70px;
            animation-delay: 0.5s;
        }

        @keyframes codeFloat {
            0%, 100% {
                transform: translateY(0) scale(0.8);
                opacity: 0.3;
            }
            25% {
                transform: translateY(-5px) scale(1);
                opacity: 0.6;
            }
            50% {
                transform: translateY(-8px) scale(1.1);
                opacity: 0.8;
            }
            75% {
                transform: translateY(-3px) scale(1);
                opacity: 0.6;
            }
        }

        /* Hide code animation on mobile */
        @media (max-width: 768px) {
            .code-animation {
                display: none;
            }
        }

        .nav-links {
            display: flex;
            gap: 32px;
            align-items: center;
            margin-left: auto;
            margin-right: 24px;
        }

        .nav-links a {
            text-decoration: none;
            color: inherit;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 8px 0;
        }

        .nav-links a:hover {
            color: #00CCFF;
            text-shadow: 0 0 8px rgba(0, 204, 255, 0.6);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #00CCFF, #FF69B4);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 32px;
            height: 32px;
            cursor: pointer;
            background: none;
            border: none;
            position: relative;
            z-index: 1001;
        }

        .hamburger-line {
            width: 24px;
            height: 3px;
            background: linear-gradient(90deg, #00CCFF, #FF69B4);
            border-radius: 2px;
            margin: 3px 0;
            transition: all 0.3s ease;
            box-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
        }

        /* Hamburger animation states */
        .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
            background: linear-gradient(90deg, #FF69B4, #8A2BE2);
            box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
        }

        .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
            background: linear-gradient(90deg, #FF69B4, #8A2BE2);
            box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
        }

        /* Mobile Menu Dropdown */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(20px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 32px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .light-theme .mobile-menu {
            background: rgba(250, 250, 250, 0.95);
        }

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile Menu Close Button */
        .mobile-menu-close {
            position: absolute;
            top: 32px;
            left: 32px;
            width: 40px;
            height: 40px;
            background: none;
            border: 2px solid #00CCFF;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: #00CCFF;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
            z-index: 1001;
            transform: translateX(-50px) rotate(-90deg);
            opacity: 0;
            transition: all 0.4s ease;
        }

        .mobile-menu-close:hover {
            background: linear-gradient(135deg, #00CCFF, #FF69B4);
            color: white;
            border-color: #FF69B4;
            box-shadow: 0 0 25px rgba(255, 105, 180, 0.5);
            transform: rotate(90deg) scale(1.1);
        }

        .mobile-menu-close:active {
            transform: rotate(90deg) scale(0.95);
        }

        /* Ensure close button is visible in both themes */
        .light-theme .mobile-menu-close {
            color: #0066FF;
            border-color: #0066FF;
            box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
        }

        .light-theme .mobile-menu-close:hover {
            background: linear-gradient(135deg, #0066FF, #FF69B4);
            color: white;
            border-color: #FF69B4;
            box-shadow: 0 0 25px rgba(255, 105, 180, 0.5);
        }

        .mobile-menu.active .mobile-menu-close {
            transform: translateX(0) rotate(0deg);
            opacity: 1;
            transition-delay: 0.2s;
        }

        .mobile-menu a {
            font-size: 1.5rem;
            font-weight: 600;
            text-decoration: none;
            color: inherit;
            padding: 16px 32px;
            border-radius: 12px;
            border: 2px solid transparent;
            background: transparent;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
            transform: translateY(30px);
            opacity: 0;
        }

        .mobile-menu a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .mobile-menu a:hover::before {
            left: 100%;
        }

        .mobile-menu a:hover {
            color: #00CCFF;
            border-color: #00CCFF;
            box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
            text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
            transform: translateY(-2px);
        }

        .mobile-menu a:nth-child(2):hover {
            color: #FF69B4;
            border-color: #FF69B4;
            box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
            text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
        }

        .mobile-menu a:nth-child(3):hover {
            color: #8A2BE2;
            border-color: #8A2BE2;
            box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
            text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
        }

        .mobile-menu a:nth-child(4):hover {
            color: #00CC88;
            border-color: #00CC88;
            box-shadow: 0 0 20px rgba(0, 204, 136, 0.3);
            text-shadow: 0 0 10px rgba(0, 204, 136, 0.5);
        }

        .mobile-menu a:nth-child(5):hover {
            color: #FFD700;
            border-color: #FFD700;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .mobile-menu.active a {
            transform: translateY(0);
            opacity: 1;
        }

        .mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
        .mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
        .mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
        .mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
        .mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }

        /* Floating Theme Toggle */
        .floating-theme-toggle {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            border-radius: 8px;
            background: linear-gradient(135deg, #00CCFF, #8A2BE2);
            border: none;
            color: white;
            font-size: 1.25rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 204, 255, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            backdrop-filter: blur(10px);
        }

        .floating-theme-toggle:hover {
            background: linear-gradient(135deg, #FF69B4, #00CCFF);
            box-shadow: 0 6px 30px rgba(255, 105, 180, 0.5);
            transform: translateY(-2px) scale(1.05);
        }

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

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 120px 0 80px; /* Reduced padding since nav spacer handles dynamic spacing */
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            gap: 32px;
            align-items: center;
            max-width: 1200px;
            width: 100%;
        }

        .hero-main {
            display: flex;
            flex-direction: column;
            gap: 32px;
            align-items: center;
            text-align: center;
        }

        .hero h1 {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 0;
        }

        .hero h2 {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(1.25rem, 3vw, 1.5rem);
            font-weight: 500;
            line-height: 1.4;
            color: #444444;
            margin: 16px 0 24px 0;
            max-width: 700px;
        }

        .dark-theme .hero h2 {
            color: #BBBBBB;
        }

        .tagline {
            font-size: 1.125rem;
            color: var(--text-secondary-light);
            margin: 0 auto;
            max-width: 600px;
        }

        .dark-theme .tagline {
            color: var(--text-secondary-dark);
        }

        .greeting {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--secondary-color);
            margin: 0;
        }

        .prompt-container {
            background: var(--card-light);
            border: 2px solid #00CCFF;
            border-radius: 12px;
            padding: 24px;
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
            font-size: 1.1rem;
            min-height: 60px;
            width: 100%;
            max-width: 700px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .dark-theme .prompt-container {
            background: var(--card-dark);
            border-color: #FF69B4;
            box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
        }

        .prompt-text {
            color: #00CCFF;
            font-weight: 500;
        }

        .dark-theme .prompt-text {
            color: #FF69B4;
        }

        .typing-cursor {
            display: inline-block;
            width: 2px;
            height: 1.2em;
            background: #00CCFF;
            margin-left: 4px;
            animation: blink 1s infinite;
        }

        .dark-theme .typing-cursor {
            background: #FF69B4;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* Animated background particles in prompt container */
        .prompt-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.1), transparent);
            animation: promptScan 3s ease-in-out infinite;
        }

        .dark-theme .prompt-container::before {
            background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.1), transparent);
        }

        @keyframes promptScan {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, #00CCFF, #8A2BE2);
            color: white;
            border-color: transparent;
            box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #FF69B4, #00CCFF);
            box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
            transform: translateY(-3px);
        }

        .btn-secondary {
            background: transparent;
            color: #00CCFF;
            border-color: #00CCFF;
            box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
        }

        .btn-secondary:hover {
            background: linear-gradient(135deg, #00CCFF, #FF69B4);
            color: white;
            border-color: #FF69B4;
            box-shadow: 0 0 25px rgba(255, 105, 180, 0.4);
            transform: translateY(-2px);
        }

        /* Enhanced Compatibility Badge - Connection Flow Diagram */
        .compatibility-badge {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 24px;
            padding: 40px;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.12),
                0 8px 32px rgba(0, 204, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
            position: relative;
            overflow: visible;
            min-width: 640px;
            margin: 48px auto 0;
            max-width: 1000px; /* Increased for wider desktop display */
        }

        .dark-theme .compatibility-badge {
            background: rgba(26, 26, 26, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.3),
                0 8px 32px rgba(255, 105, 180, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .compatibility-badge:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 32px 80px rgba(0, 0, 0, 0.15),
                0 16px 48px rgba(0, 204, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .dark-theme .compatibility-badge:hover {
            box-shadow: 
                0 32px 80px rgba(0, 0, 0, 0.4),
                0 16px 48px rgba(255, 105, 180, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        /* Badge title and subtitle styling */
        .badge-title {
            font-size: 0.95rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-secondary-light);
            margin-bottom: 8px;
            position: relative;
            z-index: 2;
        }

        .dark-theme .badge-title {
            color: #FFFFFF;
        }

        .badge-subtitle {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary-light);
            margin-bottom: 24px;
            position: relative;
            z-index: 2;
            background: linear-gradient(135deg, #0066FF, #8A2BE2);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .dark-theme .badge-subtitle {
            color: #FFFFFF;
            background: none;
            -webkit-text-fill-color: #FFFFFF;
        }

        .badge-title::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, #00CCFF, #FF69B4);
            border-radius: 2px;
            animation: badgeTitleGlow 2s ease-in-out infinite alternate;
        }

        @keyframes badgeTitleGlow {
            0% {
                box-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
                opacity: 0.8;
            }
            100% {
                box-shadow: 0 0 12px rgba(255, 105, 180, 0.5);
                opacity: 1;
            }
        }

        /* Flowchart Layout - Optimized for Arrow System */
        .flowchart {
            display: grid;
            grid-template-columns: 100px 100px 100px 100px;
            grid-template-rows: auto 40px auto 40px auto 40px auto;
            gap: 16px;
            position: relative;
            z-index: 2;
            margin-top: 32px;
            width: 100%;
            max-width: 480px;
            margin-left: auto;
            margin-right: auto;
            align-items: center;
            justify-items: center;
            padding: 20px;
        }

        /* Grid positioning */
        .user-node { 
            grid-column: 2 / 4; 
            grid-row: 1; 
        }
        .claude-code-node { 
            grid-column: 1; 
            grid-row: 3; 
        }
        .claude-node { 
            grid-column: 2 / 4; 
            grid-row: 3; 
        }
        .cursor-node { 
            grid-column: 4; 
            grid-row: 3; 
        }
        .houtini-node { 
            grid-column: 2 / 4; 
            grid-row: 5;
            z-index: 3;
        }
        .lm-studio-node { 
            grid-column: 1 / 3; 
            grid-row: 7; 
        }
        .claude-api-node { 
            grid-column: 3 / 5; 
            grid-row: 7; 
        }

        /* Node Styles */
        .flow-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            position: relative;
            z-index: 10; /* Bring entire node forward */
        }

        /* Ensure all specific node types are also forward */
        .claude-code-node,
        .claude-node,
        .cursor-node {
            z-index: 10; /* Explicitly bring tool nodes forward */
        }

        .node-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 11; /* Icons even more forward */
        }

        .node-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-primary-light);
            text-align: center;
        }

        .dark-theme .node-label {
            color: #FFFFFF;
        }

        .node-desc {
            font-size: 0.7rem;
            color: var(--text-secondary-light);
            text-align: center;
            line-height: 1.3;
            margin-top: -4px;
        }

        .dark-theme .node-desc {
            color: rgba(255, 255, 255, 0.8);
        }

        /* Specific Node Styles */
        .user-node .node-icon {
            background: linear-gradient(135deg, #4CAF50, #8BC34A);
            color: white;
        }

        .claude-node .node-icon,
        .claude-code-node .node-icon,
        .claude-api-node .node-icon {
            background: rgba(255, 140, 0, 0.15);
            border: 2px solid rgba(255, 140, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        /* Add opaque backdrop for middle row to block lines */
        .claude-node .node-icon::before,
        .claude-code-node .node-icon::before,
        .claude-api-node .node-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            border-radius: inherit;
            z-index: -1;
        }

        .dark-theme .claude-node .node-icon::before,
        .dark-theme .claude-code-node .node-icon::before,
        .dark-theme .claude-api-node .node-icon::before {
            background: rgba(26, 26, 26, 0.8);
        }

        .cursor-node .node-icon {
            background: rgba(0, 0, 0, 0.05);
            border: 2px solid rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        /* Add opaque backdrop for Cursor to block lines */
        .cursor-node .node-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            border-radius: inherit;
            z-index: -1;
        }

        .dark-theme .cursor-node .node-icon {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .dark-theme .cursor-node .node-icon::before {
            background: rgba(26, 26, 26, 0.8);
        }

        .houtini-node .node-icon {
            background: linear-gradient(135deg, #00CCFF, #8A2BE2);
            color: white;
            width: 80px;
            height: 80px;
            text-align: center;
            font-weight: 700;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: visible;
        }

        .dark-theme .houtini-node .node-icon {
            background: linear-gradient(135deg, #FF69B4, #00CCFF);
        }

        /* Logo text within Houtini node */
        .houtini-node .logo-text {
            font-size: 0.9rem;
            font-weight: 700;
            position: relative;
        }

        /* Code animation within Houtini node - scaled down */
        .houtini-node .code-animation {
            position: absolute;
            right: -60px;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 40px;
            opacity: 0.6;
            overflow: hidden;
        }

        /* Floating code elements - scaled for node */
        .houtini-node .code-element {
            position: absolute;
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
            font-size: 8px;
            color: white;
            animation: codeFloat 4s ease-in-out infinite;
        }

        .houtini-node .code-element:nth-child(1) {
            top: 3px;
            left: 5px;
            animation-delay: 0s;
        }

        .houtini-node .code-element:nth-child(2) {
            top: 15px;
            left: 25px;
            animation-delay: 1s;
        }

        .houtini-node .code-element:nth-child(3) {
            top: 30px;
            left: 8px;
            animation-delay: 2s;
        }

        .houtini-node .code-element:nth-child(4) {
            top: 8px;
            left: 35px;
            animation-delay: 0.5s;
        }

        .lm-studio-node .node-icon {
            background: rgba(147, 51, 234, 0.15);
            border: 2px solid rgba(147, 51, 234, 0.3);
            backdrop-filter: blur(10px);
        }

        /* Add opaque backdrop for LM Studio to block lines */
        .lm-studio-node .node-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            border-radius: inherit;
            z-index: -1;
        }

        .dark-theme .lm-studio-node .node-icon::before {
            background: rgba(26, 26, 26, 0.8);
        }

        .claude-api-node .node-icon {
            background: rgba(138, 43, 226, 0.15);
            border: 2px solid rgba(138, 43, 226, 0.3);
            backdrop-filter: blur(10px);
        }

        /* Add opaque backdrop for Claude API to block lines */
        .claude-api-node .node-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            border-radius: inherit;
            z-index: -1;
        }

        .dark-theme .claude-api-node .node-icon::before {
            background: rgba(26, 26, 26, 0.8);
        }

        /* Logo images */
        .node-logo {
            width: 36px;
            height: 36px;
            object-fit: contain;
            filter: contrast(1.1) saturate(1.1);
        }

        /* Connection Elements - Visual Flow Lines */
        .connection {
            position: absolute;
            width: 0;
            height: 0;
            z-index: 1;
            pointer-events: none;
            /* Container for line and arrow elements */
        }

        /* Dynamic Connection Lines */
        .connection-line {
            position: absolute;
            background: linear-gradient(90deg, #00CCFF, #FF69B4);
            border-radius: 2px;
            pointer-events: none;
            opacity: 0.8;
            transform-origin: 0 0;
            transition: all 0.3s ease;
            box-shadow: 0 0 8px rgba(0, 204, 255, 0.4);
            animation: connectionPulse 3s ease-in-out infinite;
        }

        .dark-theme .connection-line {
            background: linear-gradient(90deg, #FF69B4, #8A2BE2);
            box-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
        }

        @keyframes connectionPulse {
            0%, 100% {
                opacity: 0.6;
                filter: brightness(1);
            }
            50% {
                opacity: 1;
                filter: brightness(1.2);
            }
        }

        /* Connection Flow Animation */
        .connection-line::before {
            content: '';
            position: absolute;
            top: 0;
            left: -20px;
            width: 20px;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
            animation: connectionFlow 2s linear infinite;
            border-radius: inherit;
        }

        @keyframes connectionFlow {
            0% {
                left: -20px;
                opacity: 0;
            }
            10%, 90% {
                opacity: 1;
            }
            100% {
                left: 100%;
                opacity: 0;
            }
        }

        /* Cost badges for nodes */
        .cost-badge {
            position: absolute;
            top: -8px;
            right: -12px;
            background: linear-gradient(135deg, #00CC88, #00CCFF);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(0, 204, 136, 0.3);
        }

        .premium-badge {
            background: linear-gradient(135deg, #FF6B6B, #FF8E53);
        }

        /* Stats Section */
        .stats {
            padding: 96px 0;
            border-bottom: 1px solid;
        }

        .light-theme .stats {
            border-bottom-color: var(--border-light);
        }

        .dark-theme .stats {
            border-bottom-color: var(--border-dark);
        }

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

        .stat-card {
            text-align: center;
        }

        .stat-value {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(135deg, #00CCFF, #FF69B4);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
            animation: statGlow 3s ease-in-out infinite alternate;
        }

        @keyframes statGlow {
            0% { 
                filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.3));
            }
            100% { 
                filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.4));
            }
        }

        .stat-label {
            font-size: 1.125rem;
            font-weight: 500;
            color: var(--text-secondary-light);
        }

        .dark-theme .stat-label {
            color: var(--text-secondary-dark);
        }

        /* Features Section */
        .features {
            padding: 96px 0;
        }

        .section-title {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(1.75rem, 3vw, 2.25rem);
            font-weight: 700;
            line-height: 1.25;
            text-align: center;
            margin-bottom: 16px;
        }

        .text-center {
            text-align: center;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 48px;
            margin-top: 64px;
        }

        .feature-card {
            text-align: center;
            padding: 32px;
            border-radius: 12px;
            border: 1px solid;
            transition: all 0.2s ease;
        }

        .light-theme .feature-card {
            background-color: var(--card-light);
            border-color: var(--border-light);
        }

        .dark-theme .feature-card {
            background-color: var(--card-dark);
            border-color: var(--border-dark);
        }

        .feature-card:hover {
            transform: translateY(-4px);
            border-color: #00CCFF;
            box-shadow: 0 8px 30px rgba(0, 204, 255, 0.2);
        }

        .feature-icon {
            font-size: 2.5rem;
            background: linear-gradient(135deg, #00CCFF, #8A2BE2);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 24px;
            transition: all 0.3s ease;
        }

        .feature-card:hover .feature-icon {
            filter: drop-shadow(0 0 8px rgba(0, 204, 255, 0.5));
            transform: scale(1.1);
        }

        .feature-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 16px;
        }

        /* Problem/Solution Section */
        .problem-solution {
            padding: 96px 0;
            border-top: 1px solid;
        }

        .light-theme .problem-solution {
            border-top-color: var(--border-light);
        }

        .dark-theme .problem-solution {
            border-top-color: var(--border-dark);
        }

        .comparison {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 48px;
            margin-top: 64px;
        }

        .problem-card,
        .solution-card {
            padding: 32px;
            border-radius: 12px;
            border: 1px solid;
        }

        .problem-card {
            border-color: #FF6B6B;
        }

        .solution-card {
            border-color: var(--secondary-color);
        }

        .light-theme .problem-card,
        .light-theme .solution-card {
            background-color: var(--card-light);
        }

        .dark-theme .problem-card,
        .dark-theme .solution-card {
            background-color: var(--card-dark);
        }

        .problem-card h3 {
            color: #FF6B6B;
            margin-bottom: 24px;
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .solution-card h3 {
            color: var(--secondary-color);
            margin-bottom: 24px;
            font-size: 1.25rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .problem-card ul,
        .solution-card ul {
            list-style: none;
        }

        .problem-card li,
        .solution-card li {
            margin-bottom: 12px;
            padding-left: 24px;
            position: relative;
        }

        .problem-card li::before {
            content: '✗';
            position: absolute;
            left: 0;
            color: #FF6B6B;
            font-weight: bold;
        }

        .solution-card li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--secondary-color);
            font-weight: bold;
        }

        /* Audience Section */
        .audience {
            padding: 96px 0;
            border-top: 1px solid;
        }

        .light-theme .audience {
            border-top-color: var(--border-light);
        }

        .dark-theme .audience {
            border-top-color: var(--border-dark);
        }

        .segments-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 48px;
            margin-top: 64px;
        }

        .segment-card {
            text-align: center;
            padding: 32px;
            border-radius: 12px;
            border: 1px solid;
            transition: all 0.2s ease;
        }

        .light-theme .segment-card {
            background-color: var(--card-light);
            border-color: var(--border-light);
        }

        .dark-theme .segment-card {
            background-color: var(--card-dark);
            border-color: var(--border-dark);
        }

        .segment-card:hover {
            transform: translateY(-4px);
            border-color: #FF69B4;
            box-shadow: 0 8px 30px rgba(255, 105, 180, 0.2);
        }

        .segment-icon {
            font-size: 2.5rem;
            background: linear-gradient(135deg, #FF69B4, #8A2BE2);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 24px;
            transition: all 0.3s ease;
        }

        .segment-card:hover .segment-icon {
            filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.5));
            transform: scale(1.1);
        }

        .segment-card h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 16px;
        }

        /* Footer */
        footer {
            padding: 64px 0 32px;
            border-top: 1px solid;
        }

        .light-theme footer {
            border-top-color: var(--border-light);
        }

        .dark-theme footer {
            border-top-color: var(--border-dark);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 48px;
            margin-bottom: 48px;
        }

        .footer-column h3 {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 8px;
        }

        .footer-links a {
            color: var(--text-secondary-light);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .dark-theme .footer-links a {
            color: var(--text-secondary-dark);
        }

        .footer-links a:hover {
            color: #00CCFF;
            text-shadow: 0 0 8px rgba(0, 204, 255, 0.6);
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: linear-gradient(90deg, #00CCFF, #FF69B4);
            transition: width 0.3s ease;
        }

        .footer-links a:hover::after {
            width: 100%;
        }

        .social-links {
            display: flex;
            gap: 16px;
            margin-top: 16px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: linear-gradient(135deg, #00CCFF, #8A2BE2);
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
        }

        .social-links a:hover {
            background: linear-gradient(135deg, #FF69B4, #00CCFF);
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 0 25px rgba(255, 105, 180, 0.5);
        }

        .copyright {
            text-align: center;
            padding-top: 32px;
            border-top: 1px solid;
            color: var(--text-secondary-light);
        }

        .light-theme .copyright {
            border-top-color: var(--border-light);
        }

        .dark-theme .copyright {
            border-top-color: var(--border-dark);
            color: var(--text-secondary-dark);
        }

        /* Animations */
        .animate-fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }

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

        /* Responsive Design - Updated for 4-column grid */
        @media (max-width: 1200px) {
            .compatibility-badge {
                min-width: 520px;
                max-width: 600px;
                padding: 32px;
            }
            
            .flowchart {
                grid-template-columns: 90px 90px 90px 90px;
                grid-template-rows: auto 28px auto 28px auto 28px auto;
                max-width: 420px;
                gap: 12px;
                padding: 16px;
            }
            
            .node-icon {
                width: 52px;
                height: 52px;
                font-size: 1.6rem;
            }
            
            .houtini-node .node-icon {
                width: 64px;
                height: 64px;
            }
            
            .houtini-node .logo-text {
                font-size: 0.75rem;
            }
            
            /* Scale down code animation on smaller screens */
            .houtini-node .code-animation {
                right: -45px;
                width: 40px;
                height: 32px;
            }
            
            .houtini-node .code-element {
                font-size: 7px;
            }
            
            .node-label {
                font-size: 0.75rem;
            }
            
            .node-desc {
                font-size: 0.6rem;
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            nav {
                padding: 20px 16px;
                min-height: 80px;
            }

            nav.scrolled,
            nav.is-sticky.scrolled {
                padding: 16px;
                min-height: 64px;
            }

            /* Mobile spacer heights */
            .nav-spacer.is-active {
                height: 80px; /* Match mobile nav height */
            }

            .nav-spacer.scrolled {
                height: 64px; /* Match mobile scrolled nav height */
            }

            .logo {
                font-size: 1.6rem;
            }

            .hero {
                padding: 120px 0 80px; /* Reduced since nav/social bar handle spacing dynamically */
                text-align: center;
            }

            .hero-content {
                gap: 24px;
            }

            .hero-main {
                gap: 24px;
            }

            .prompt-container {
                font-size: 0.95rem;
                padding: 20px;
                min-height: 50px;
                max-width: 100%;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

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

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 32px;
            }

            .features-grid,
            .segments-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            /* Flow diagram scales down on mobile instead of hiding */
            .compatibility-badge {
                min-width: 280px;
                max-width: 100%;
                padding: 16px;
                margin: 24px auto 0;
                border-radius: 16px;
            }
            
            .flowchart {
                grid-template-columns: 60px 60px 60px 60px;
                grid-template-rows: auto 12px auto 12px auto 12px auto;
                max-width: 260px;
                gap: 4px;
                padding: 8px;
            }
            
            .flow-node {
                width: 60px;
                height: 60px;
                padding: 3px;
            }
            
            .node-label {
                font-size: 0.6rem;
                line-height: 1;
            }
            
            .node-desc {
                font-size: 0.55rem;
                line-height: 1;
            }
            
            .badge-title {
                font-size: 1rem;
            }
            
            .badge-subtitle {
                font-size: 0.8rem;
            }
            
            /* Hide specific elements on mobile for cleaner flow */
            .claude-code-node,
            .cursor-node,
            .cost-badge {
                display: none;
            }
            
            /* Hide node descriptions for LM Studio and Claude API on mobile */
            .lm-studio-node .node-desc,
            .claude-api-node .node-desc {
                display: none;
            }
            
            /* Hide connection lines to/from hidden elements */
            .connection[data-from="user"][data-to="claude-code"],
            .connection[data-from="user"][data-to="cursor-ide"],
            .connection[data-from="claude-code"][data-to="houtini"],
            .connection[data-from="cursor-ide"][data-to="houtini"] {
                display: none;
            }

            /* Make it smaller on mobile */
            .floating-theme-toggle {
                width: 48px;
                height: 48px;
                bottom: 16px;
                right: 16px;
                font-size: 1.1rem;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 16px;
            }

            nav {
                padding: 16px;
                min-height: 68px;
            }

            nav.scrolled {
                padding: 12px 16px;
                min-height: 56px;
            }

            .logo {
                font-size: 1.4rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }
        }


/* Email Signup Section */
.email-signup-section {
    margin: 48px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.separator-line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-light) 50%, transparent 100%);
    opacity: 0.6;
}

.dark-theme .separator-line {
    background: linear-gradient(90deg, transparent 0%, var(--border-dark) 50%, transparent 100%);
}

.email-signup-form {
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.signup-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary-light);
}

.dark-theme .signup-title {
    color: var(--text-primary-dark);
}

.signup-subtitle {
    font-size: 1rem;
    color: var(--text-secondary-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.dark-theme .signup-subtitle {
    color: var(--text-secondary-dark);
}

.email-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--card-light);
    border: 1px solid var(--border-light);
    padding: 4px;
    transition: all 0.2s ease;
}

.dark-theme .email-input-group {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.email-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.email-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary-light);
    outline: none;
    border-radius: 8px;
}

.dark-theme .email-input {
    color: var(--text-primary-dark);
}

.email-input::placeholder {
    color: var(--text-secondary-light);
}

.dark-theme .email-input::placeholder {
    color: var(--text-secondary-dark);
}

.email-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.email-submit-btn:hover {
    background: #00B377;
    transform: translateY(-1px);
}

.email-submit-btn:active {
    transform: translateY(0);
}

.submit-arrow {
    transition: transform 0.2s ease;
}

.email-submit-btn:hover .submit-arrow {
    transform: translateX(2px);
}

.signup-privacy {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
    text-align: center;
}

.dark-theme .signup-privacy {
    color: var(--text-secondary-dark);
}

/* Mobile Responsiveness for Email Signup */
@media (max-width: 640px) {
    .email-signup-section {
        margin: 32px 0;
        gap: 24px;
    }
    
    .separator-line {
        width: 150px;
    }
    
    .email-input-group {
        flex-direction: column;
        gap: 12px;
        padding: 8px;
    }
    
    .email-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .signup-title {
        font-size: 1.25rem;
    }
    
    .signup-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .email-signup-section {
        margin: 24px 0;
        gap: 20px;
    }
    
    .separator-line {
        width: 120px;
    }
}


/* Form Success/Error Messages */
.form-message {
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

.form-message.success {
    background: rgba(0, 204, 136, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
}

.dark-theme .form-message.success {
    background: rgba(0, 204, 136, 0.15);
}

.dark-theme .form-message.error {
    background: rgba(239, 68, 68, 0.15);
}

/* Loading state for button */
.email-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.email-submit-btn.loading .submit-text {
    opacity: 0;
}

.email-submit-btn.loading .submit-arrow {
    animation: spin 1s linear infinite;
}

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


/* Installation Config Section */
.install-config-section {
    padding: 3rem 0;
    margin: 2rem 0;
    background: var(--bg-color);
}

.install-config-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.config-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.setup-guide-link {
    text-align: center;
    margin: 1rem 0 2rem;
}

.setup-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    transition: all 0.3s ease;
}

.setup-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.setup-guide-btn i {
    font-size: 0.9rem;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.code-block-container {
    position: relative;
    background: var(--code-bg, #f8f9fa);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.dark-theme .code-block-container {
    --code-bg: #1e1e1e;
    --border-color: #374151;
}

.code-block {
    margin: 0;
    padding: 1.5rem;
    padding-right: 4rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    background: transparent;
    overflow-x: auto;
    white-space: pre;
}

.install-command {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 4rem 1rem 1rem;
}

.config-json {
    font-size: 0.85rem;
    line-height: 1.5;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--text-secondary, #6b7280);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.copy-btn:hover {
    opacity: 1;
    background: var(--primary-color);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--secondary-color, #10b981);
    transform: scale(0.95);
}

.copy-btn.copied i {
    animation: checkmark 0.3s ease;
}

.config-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.75rem;
    font-style: italic;
}

@keyframes checkmark {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .install-steps {
        gap: 1.5rem;
    }
    
    .install-step {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .step-content {
        text-align: center;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 1rem;
        padding-right: 3rem;
    }
    
    .config-json {
        font-size: 0.75rem;
    }
    
    .copy-btn {
        top: 8px;
        right: 8px;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .config-title {
        font-size: 1.6rem;
    }
    
    .config-subtitle {
        font-size: 1rem;
    }
    
    .code-block {
        font-size: 0.75rem;
        padding: 0.75rem;
        padding-right: 2.5rem;
    }
}

/* Requirements Section */
.requirements-section {
    margin: 2rem 0;
    padding: 2rem 0;
}

.requirements-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.requirements-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.requirement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.requirement-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.requirement-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.requirement-info {
    flex: 1;
    text-align: left;
}

.requirement-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.requirement-info p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.requirement-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.requirement-link:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
}

.requirement-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Dark theme adjustments */
.dark-theme .requirement-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-theme .requirement-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
}

.dark-theme .requirement-logo {
    background: var(--hero-bg);
    border-color: var(--border-color);
}

/* Responsive Design for Requirements */
@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .requirement-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .requirement-info {
        text-align: center;
    }
    
    .requirements-title {
        font-size: 1.8rem;
    }
    
    .requirements-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .requirement-card {
        padding: 1.25rem;
    }
    
    .requirement-logo {
        width: 70px;
        height: 70px;
    }
    
    .requirement-image {
        width: 50px;
        height: 50px;
    }
    
    .requirements-title {
        font-size: 1.6rem;
    }
}


/* Social Bar Styles */
.social-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.social-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-bar-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social-bar-links a {
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
    text-decoration: none;
}

.social-bar-links a:hover {
    color: #0066FF;
    transform: translateY(-1px);
}




/* ===== DOCUMENTATION STYLES ===== */

/* Documentation Header */
.docs-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 204, 136, 0.05) 100%);
}

.docs-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dark-theme .docs-tagline {
    color: var(--text-secondary-dark);
}

.docs-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary-light);
    z-index: 1;
}

.dark-theme .search-icon {
    color: var(--text-secondary-dark);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    background: var(--card-light);
    color: var(--text-primary-light);
    transition: all 0.3s ease;
    outline: none;
}

.dark-theme .search-input {
    border-color: var(--border-dark);
    background: var(--card-dark);
    color: var(--text-primary-dark);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Quick Start Banner */
.quick-start-banner {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.banner-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.banner-text p {
    opacity: 0.9;
    margin: 0;
}

.banner-cta {
    margin-left: auto;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.banner-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Documentation Categories */
.docs-categories {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    gap: 3rem;
}

.category-section {
    background: var(--card-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dark-theme .category-section {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.category-header p {
    color: var(--text-secondary-light);
    margin: 0;
}

.dark-theme .category-header p {
    color: var(--text-secondary-dark);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-info {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dark-theme .article-info {
    border-color: var(--border-dark);
}

.article-info:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-type {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
}

.reading-time {
    color: var(--text-secondary-light);
    font-size: 0.875rem;
}

.dark-theme .reading-time {
    color: var(--text-secondary-dark);
}

.article-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.article-link:hover h3 {
    color: var(--primary-color);
}

.article-info p {
    color: var(--text-secondary-light);
    margin: 0;
    line-height: 1.5;
}

.dark-theme .article-info p {
    color: var(--text-secondary-dark);
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 0;
    background: rgba(0, 102, 255, 0.02);
}

.dark-theme .featured-articles {
    background: rgba(0, 102, 255, 0.05);
}

.featured-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.featured-article {
    background: var(--card-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dark-theme .featured-article {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.1);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-type {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    background: var(--secondary-color);
    color: white;
}

.featured-date {
    color: var(--text-secondary-light);
    font-size: 0.875rem;
}

.dark-theme .featured-date {
    color: var(--text-secondary-dark);
}

.featured-article h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-article h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.featured-article h3 a:hover {
    color: var(--primary-color);
}

.featured-article p {
    color: var(--text-secondary-light);
    margin-bottom: 1.5rem;
}

.dark-theme .featured-article p {
    color: var(--text-secondary-dark);
}

.featured-stats {
    display: flex;
    gap: 1rem;
}

.featured-stats .stat {
    color: var(--text-secondary-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dark-theme .featured-stats .stat {
    color: var(--text-secondary-dark);
}

/* Documentation Article Layout */
.docs-layout {
    min-height: calc(100vh - 200px);
    padding: 120px 0 60px;
}

.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 140px;
    background: var(--card-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.dark-theme .docs-sidebar {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .sidebar-header {
    border-color: var(--border-dark);
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary-light);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.dark-theme .sidebar-back {
    color: var(--text-secondary-dark);
}

.sidebar-back:hover {
    color: var(--primary-color);
}

.table-of-contents {
    margin-bottom: 2rem;
}

.table-of-contents h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--text-secondary-light);
}

.dark-theme .table-of-contents h3 {
    color: var(--text-secondary-dark);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.toc-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
}

.dark-theme .toc-link {
    color: var(--text-secondary-dark);
}

.toc-link:hover, .toc-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.quick-nav {
    margin-bottom: 1rem;
}

.quick-nav h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--text-secondary-light);
}

.dark-theme .quick-nav h3 {
    color: var(--text-secondary-dark);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.nav-list li {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary-light);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dark-theme .nav-link {
    color: var(--text-secondary-dark);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

.nav-link.current {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
    font-weight: 500;
}

/* Main Article Content */
.docs-content {
    background: var(--card-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.dark-theme .docs-content {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.article-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .article-header {
    border-color: var(--border-dark);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-breadcrumb a {
    color: var(--text-secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark-theme .article-breadcrumb a {
    color: var(--text-secondary-dark);
}

.article-breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary-light);
}

.dark-theme .breadcrumb-separator {
    color: var(--text-secondary-dark);
}

.breadcrumb-current {
    color: var(--text-primary-light);
    font-weight: 500;
}

.dark-theme .breadcrumb-current {
    color: var(--text-primary-dark);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.author-role {
    color: var(--text-secondary-light);
    font-size: 0.75rem;
}

.dark-theme .author-role {
    color: var(--text-secondary-dark);
}

.article-stats {
    display: flex;
    gap: 1rem;
}

.meta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--text-secondary-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dark-theme .share-btn {
    background: var(--background-dark);
    color: var(--text-secondary-dark);
    border-color: var(--border-dark);
}

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

.print-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--text-secondary-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .print-btn {
    background: var(--background-dark);
    color: var(--text-secondary-dark);
    border-color: var(--border-dark);
}

.print-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Article Body */
.article-body {
    padding: 2rem;
}

.article-intro {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary-light);
    font-weight: 400;
}

.dark-theme .lead {
    color: var(--text-secondary-dark);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.dark-theme .content-section h2 {
    border-color: var(--border-dark);
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.content-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

/* Info Boxes */
.info-box, .warning-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box {
    background: rgba(0, 102, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.info-icon, .warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-icon {
    color: var(--primary-color);
}

.warning-icon {
    color: #ffc107;
}

.info-content h4, .warning-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.info-content p, .warning-content p {
    margin: 0;
}

.info-content ul, .warning-content ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

/* Code Examples */
.code-example {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.dark-theme .code-example {
    border-color: var(--border-dark);
}

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

.dark-theme .code-header {
    background: var(--background-dark);
    border-color: var(--border-dark);
}

.code-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary-light);
}

.dark-theme .code-title {
    color: var(--text-secondary-dark);
}

.copy-code-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: var(--secondary-color);
}

.code-block {
    background: var(--card-light);
    color: var(--text-primary-light);
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.dark-theme .code-block {
    background: var(--card-dark);
    color: var(--text-primary-dark);
}

/* Requirements Grid */
.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.requirement-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.dark-theme .requirement-item {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.req-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.dark-theme .req-icon {
    background: var(--background-dark);
}

.req-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.req-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.req-content p {
    color: var(--text-secondary-light);
    margin: 0 0 0.75rem 0;
}

.dark-theme .req-content p {
    color: var(--text-secondary-dark);
}

.req-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.req-link:hover {
    color: var(--secondary-color);
}

/* Configuration Tabs */
.config-tabs {
    margin: 1.5rem 0;
}

.tab-buttons {
    display: flex;
    gap: 1px;
    background: var(--border-light);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.dark-theme .tab-buttons {
    background: var(--border-dark);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: var(--background-light);
    color: var(--text-secondary-light);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.dark-theme .tab-btn {
    background: var(--background-dark);
    color: var(--text-secondary-dark);
}

.tab-btn:hover {
    background: var(--card-light);
    color: var(--text-primary-light);
}

.dark-theme .tab-btn:hover {
    background: var(--card-dark);
    color: var(--text-primary-dark);
}

.tab-btn.active {
    background: var(--card-light);
    color: var(--primary-color);
    font-weight: 600;
}

.dark-theme .tab-btn.active {
    background: var(--card-dark);
}

.tab-content {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
    padding: 2rem;
    display: none;
}

.dark-theme .tab-content {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.tab-content.active {
    display: block;
}

.config-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.config-note p {
    margin: 0;
    font-size: 0.875rem;
}

/* Step Lists */
.step-list {
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 1rem 0;
}

/* Verification Steps */
.verification-steps {
    margin: 1.5rem 0;
}

.verification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .verification-item {
    border-color: var(--border-dark);
}

.verification-item:last-child {
    border-bottom: none;
}

.verify-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    border: 2px solid var(--border-light);
    color: var(--text-secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dark-theme .verify-icon {
    background: var(--background-dark);
    border-color: var(--border-dark);
    color: var(--text-secondary-dark);
}

.verify-icon.success {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.verify-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.verify-content p {
    margin: 0;
    color: var(--text-secondary-light);
}

.dark-theme .verify-content p {
    color: var(--text-secondary-dark);
}

/* Troubleshooting */
.troubleshooting-list {
    margin: 1.5rem 0;
}

.trouble-item {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.dark-theme .trouble-item {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.trouble-item summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.trouble-item summary:hover {
    background: rgba(0, 102, 255, 0.05);
}

.trouble-item[open] summary {
    border-bottom: 1px solid var(--border-light);
    background: rgba(0, 102, 255, 0.05);
}

.dark-theme .trouble-item[open] summary {
    border-color: var(--border-dark);
}

.trouble-title {
    flex: 1;
}

.trouble-content {
    padding: 1.5rem;
}

.trouble-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.trouble-content li {
    margin-bottom: 0.5rem;
}

/* Next Steps */
.next-steps {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 204, 136, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 204, 136, 0.2);
}

.next-steps h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
}

.next-steps p {
    margin: 0 0 1.5rem 0;
}

.next-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.next-action {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.dark-theme .next-action {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

.next-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-color);
}

.next-action.primary {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.next-action:not(.primary) .action-icon {
    background: var(--secondary-color);
}

.action-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.action-content p {
    color: var(--text-secondary-light);
    margin: 0;
    font-size: 0.875rem;
}

.dark-theme .action-content p {
    color: var(--text-secondary-dark);
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    border-top: 1px solid var(--border-light);
    gap: 2rem;
}

.dark-theme .article-navigation {
    border-color: var(--border-dark);
}

.nav-item {
    flex: 1;
}

.nav-item.next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary-light);
    margin-bottom: 0.5rem;
}

.dark-theme .nav-label {
    color: var(--text-secondary-dark);
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark-theme .nav-item .nav-link {
    color: var(--text-primary-dark);
}

.nav-item .nav-link:hover {
    color: var(--primary-color);
}

.nav-item.next .nav-link {
    justify-content: flex-end;
}

.nav-title {
    font-size: 0.875rem;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 102, 255, 0.1);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease;
}

/* Navigation Active State for Docs */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Enhanced Code Syntax Highlighting Preparation */
.code-block code {
    display: block;
    white-space: pre;
}

.code-block .keyword {
    color: #0066ff;
    font-weight: 600;
}

.code-block .string {
    color: #00cc88;
}

.code-block .comment {
    color: #666666;
    font-style: italic;
}

.dark-theme .code-block .comment {
    color: #999999;
}

.code-block .number {
    color: #ff6b35;
}

.code-block .operator {
    color: #ff69b4;
}

/* Responsive Table Styles for Documentation */
.responsive-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.dark-theme .responsive-table {
    border-color: var(--border-dark);
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .responsive-table th,
.dark-theme .responsive-table td {
    border-color: var(--border-dark);
}

.responsive-table th {
    background: var(--background-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary-light);
}

.dark-theme .responsive-table th {
    background: var(--background-dark);
    color: var(--text-secondary-dark);
}

.responsive-table tr:last-child th,
.responsive-table tr:last-child td {
    border-bottom: none;
}

/* Documentation-specific utility classes */
.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
}

.docs-badge.secondary {
    background: var(--secondary-color);
}

.docs-badge.warning {
    background: #ffc107;
    color: #000;
}

.docs-badge.success {
    background: var(--secondary-color);
}

.docs-inline-code {
    padding: 0.125rem 0.375rem;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875em;
    color: var(--primary-color);
}

.dark-theme .docs-inline-code {
    background: var(--background-dark);
    border-color: var(--border-dark);
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.toc-link:focus,
.nav-link:focus,
.article-link:focus,
.share-btn:focus,
.copy-code-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1002;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 120px;
        max-height: 100vh;
    }
    
    .docs-sidebar.mobile-visible {
        left: 0;
    }
    
    .docs-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .docs-sidebar.mobile-visible::before {
        opacity: 1;
        visibility: visible;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .docs-header {
        padding: 100px 0 40px;
    }
    
    .docs-header h1 {
        font-size: 2.5rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .banner-cta {
        margin-left: 0;
    }
    
    .docs-categories {
        padding: 3rem 0;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .nav-item.next {
        text-align: left;
    }
    
    .nav-item.next .nav-link {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }
    
    .requirement-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .next-actions {
        grid-template-columns: 1fr;
    }
    
    .responsive-table {
        font-size: 0.875rem;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .docs-header h1 {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .banner-text h3 {
        font-size: 1.1rem;
    }
    
    .meta-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-info,
    .featured-article,
    .category-section,
    .docs-sidebar,
    .docs-content {
        border-width: 2px;
    }
    
    .share-btn:hover,
    .copy-code-btn:hover {
        outline: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .article-info,
    .featured-article,
    .share-btn,
    .copy-code-btn,
    .next-action,
    .toc-link,
    .nav-link {
        transition: none;
    }
    
    .reading-progress .progress-fill {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .social-bar,
    nav,
    .nav-spacer,
    .mobile-menu,
    .docs-sidebar,
    .share-buttons,
    .print-btn,
    .floating-theme-toggle,
    footer {
        display: none !important;
    }
    
    .docs-container {
        grid-template-columns: 1fr;
    }
    
    .docs-content {
        border: none;
        box-shadow: none;
    }
    
    .article-header {
        border-bottom: 2px solid #000;
    }
    
    .code-block {
        border: 1px solid #ccc;
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    .info-box,
    .warning-box {
        border: 1px solid #ccc;
        background: #f9f9f9 !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .article-navigation {
        border-top: 2px solid #000;
    }
}


/* ============================================================================
   PROFESSIONAL PARAMETER TABLES
   ============================================================================ */

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-primary-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.dark-theme .params-table {
    background: var(--bg-primary-dark);
    border-color: var(--border-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.params-table thead {
    background: linear-gradient(135deg, var(--primary-color), #0052cc);
    color: white;
}

.params-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    position: relative;
}

.params-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.params-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .params-table tbody tr {
    border-bottom-color: var(--border-dark);
}

.params-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.02);
    transform: translateX(2px);
}

.dark-theme .params-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.05);
}

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

.params-table td {
    padding: 1.25rem 1.25rem;
    vertical-align: top;
    border: none;
    font-size: 0.9rem;
    line-height: 1.6;
}

.params-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 140px;
    position: relative;
}

.params-table td:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border-light);
}

.dark-theme .params-table td:first-child::after {
    background: var(--border-dark);
}

.params-table td:nth-child(2) {
    width: 80px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary-light);
}

.dark-theme .params-table td:nth-child(2) {
    color: var(--text-secondary-dark);
}

.params-table td:nth-child(3) {
    width: 80px;
    text-align: center;
    font-weight: 500;
    font-size: 0.8rem;
}

.params-table td:nth-child(4) {
    width: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary-light);
}

.dark-theme .params-table td:nth-child(4) {
    color: var(--text-secondary-dark);
}

.params-table td:last-child {
    min-width: 300px;
}

.params-table td p {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary-light);
}

.dark-theme .params-table td p {
    color: var(--text-primary-dark);
}

.params-table td p:last-child {
    margin-bottom: 0;
}

.params-table code {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary-color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.dark-theme .params-table code {
    background: rgba(0, 102, 255, 0.15);
    color: #66b3ff;
    border-color: rgba(0, 102, 255, 0.2);
}

.param-example {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 102, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    font-size: 0.85rem;
    color: var(--text-secondary-light);
}

.dark-theme .param-example {
    background: rgba(0, 102, 255, 0.08);
    color: var(--text-secondary-dark);
}

.param-example code {
    background: rgba(0, 102, 255, 0.1);
    font-size: 0.8rem;
}

.dark-theme .param-example code {
    background: rgba(0, 102, 255, 0.2);
}

/* Responsive table design */
@media (max-width: 1024px) {
    .params-table {
        font-size: 0.85rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 1rem 0.875rem;
    }
    
    .params-table td:first-child {
        width: 120px;
    }
    
    .params-table td:nth-child(2),
    .params-table td:nth-child(3),
    .params-table td:nth-child(4) {
        width: 70px;
    }
}

@media (max-width: 768px) {
    .params-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 1.5rem -1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .params-table td:last-child {
        min-width: 250px;
        white-space: normal;
    }
    
    .param-example {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .params-table thead {
        display: none;
    }
    
    .params-table,
    .params-table tbody,
    .params-table tr,
    .params-table td {
        display: block;
        width: 100%;
    }
    
    .params-table tr {
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: var(--bg-primary-light);
        border-radius: 8px;
        border: 1px solid var(--border-light);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }
    
    .dark-theme .params-table tr {
        background: var(--bg-primary-dark);
        border-color: var(--border-dark);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }
    
    .params-table td {
        padding: 0.5rem 0;
        border: none;
    }
    
    .params-table td:first-child {
        width: 100%;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--border-light);
        padding-bottom: 0.75rem;
    }
    
    .dark-theme .params-table td:first-child {
        border-bottom-color: var(--border-dark);
    }
    
    .params-table td:first-child::after {
        display: none;
    }
    
    .params-table td:not(:first-child)::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        color: var(--text-secondary-light);
        display: inline-block;
        width: 100px;
        margin-bottom: 0.25rem;
    }
    
    .dark-theme .params-table td:not(:first-child)::before {
        color: var(--text-secondary-dark);
    }
    
    .params-table td:nth-child(2)::before {
        content: 'Type: ';
    }
    
    .params-table td:nth-child(3)::before {
        content: 'Required: ';
    }
    
    .params-table td:nth-child(4)::before {
        content: 'Default: ';
    }
    
    .params-table td:last-child::before {
        content: 'Description: ';
        width: 100%;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .params-table td:last-child {
        min-width: auto;
        white-space: normal;
    }
}


/* ============================================================================
   IMPROVED TYPOGRAPHY SPACING
   ============================================================================ */

/* Better spacing between lists and paragraphs */
.content-section ul + p,
.content-section ol + p {
    margin-top: 1.5rem;
}

.content-section p + ul,
.content-section p + ol {
    margin-top: 1rem;
}

/* Spacing between consecutive lists */
.content-section ul + ul,
.content-section ol + ol,
.content-section ul + ol,
.content-section ol + ul {
    margin-top: 1.5rem;
}

/* Better spacing for headings after lists */
.content-section ul + h3,
.content-section ol + h3,
.content-section ul + h4,
.content-section ol + h4 {
    margin-top: 2rem;
}

/* Ensure proper spacing for nested content */
.content-section li {
    margin-bottom: 0.5rem;
}

.content-section li:last-child {
    margin-bottom: 0;
}

/* Better spacing for list items with multiple paragraphs */
.content-section li p {
    margin: 0.5rem 0;
}

.content-section li p:first-child {
    margin-top: 0;
}

.content-section li p:last-child {
    margin-bottom: 0;
}


/* ============================================================================
   IMPROVED CONTENT SPACING AND LAYOUT
   ============================================================================ */

/* Better spacing for content sections within article body */
.article-body {
    padding: 2rem 2.5rem; /* Increased horizontal padding from 2rem to 2.5rem */
}

/* Ensure content sections have proper spacing */
.content-section {
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

.content-section:last-child {
    margin-bottom: 2rem;
}

/* Better responsive spacing for smaller screens */
@media (max-width: 1024px) {
    .article-body {
        padding: 2rem; /* Standard padding on tablets */
    }
}

@media (max-width: 768px) {
    .article-body {
        padding: 1.5rem; /* Reduced padding on mobile for more content space */
    }
    
    .content-section {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 640px) {
    .article-body {
        padding: 1rem; /* Minimal padding on small mobile */
    }
    
    .content-section {
        margin-bottom: 2rem;
    }
}

/* Ensure wide content like tables and code blocks respect the container */
.content-section .params-table,
.content-section .code-example,
.content-section .info-box,
.content-section .warning-box {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent content from touching edges on very wide screens */
@media (min-width: 1400px) {
    .article-body {
        padding: 2rem 3rem; /* Extra padding on very wide screens */
    }
}


/* ============================================================================
   IMPROVED PARAMETER TABLE RESPONSIVE DESIGN
   ============================================================================ */

/* Better responsive breakpoints for parameter tables */
@media (max-width: 1200px) {
    .params-table {
        font-size: 0.9rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.875rem 0.75rem;
    }
    
    .params-table td:first-child {
        width: 120px;
        font-size: 0.85rem;
    }
    
    .params-table td:nth-child(2) {
        width: 65px;
        font-size: 0.75rem;
    }
    
    .params-table td:nth-child(3) {
        width: 55px;
        font-size: 0.75rem;
    }
    
    .params-table td:nth-child(4) {
        width: 65px;
        font-size: 0.75rem;
    }
    
    .params-table td:last-child {
        min-width: auto; /* Remove min-width constraint */
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .params-table {
        font-size: 0.85rem;
        table-layout: fixed; /* Force table to respect container width */
    }
    
    .params-table th,
    .params-table td {
        padding: 0.75rem 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .params-table td:first-child {
        width: 25%; /* Use percentage instead of fixed width */
    }
    
    .params-table td:nth-child(2),
    .params-table td:nth-child(3),
    .params-table td:nth-child(4) {
        width: 12%; /* Smaller columns for type, required, default */
    }
    
    .params-table td:last-child {
        width: 39%; /* Remaining space for description */
    }
    
    /* Smaller text for compact columns */
    .params-table td:nth-child(2),
    .params-table td:nth-child(3),
    .params-table td:nth-child(4) {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .params-table {
        font-size: 0.8rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.6rem 0.4rem;
    }
    
    /* Even more compact layout */
    .params-table td:first-child {
        width: 22%;
        font-size: 0.75rem;
    }
    
    .params-table td:nth-child(2),
    .params-table td:nth-child(3),
    .params-table td:nth-child(4) {
        width: 13%;
        font-size: 0.7rem;
    }
    
    .params-table td:last-child {
        width: 39%;
        font-size: 0.8rem;
    }
    
    .param-example {
        font-size: 0.75rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* Override the existing mobile responsive to prevent breaking layout */
@media (max-width: 768px) {
    .params-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 1.5rem 0; /* Remove negative margins that cause scrolling */
        border-radius: 8px; /* Restore border radius */
        border-left: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .dark-theme .params-table {
        border-left-color: var(--border-dark);
        border-right-color: var(--border-dark);
    }
    
    .params-table td:last-child {
        min-width: 200px; /* Reduce minimum width */
        white-space: normal;
    }
}

/* Fix for params-table width - reduce by 20% to prevent horizontal scrolling */
.content-section .params-table {
    width: 75% !important;
    max-width: 100%;
    /* table-layout: auto; */
}


/* =================================================================
   MOBILE RESPONSIVE FIXES FOR HOUTINI HOMEPAGE - JANUARY 2025
   ================================================================= */

/* Critical Fix: Container and viewport overflow prevention */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix container padding for mobile to prevent horizontal overflow */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        padding: 80px 0 60px;
        min-height: auto; /* Remove fixed height on mobile */
    }
    
    .hero-content {
        gap: 24px;
    }
    
    .hero-main {
        gap: 24px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Critical fix: Prompt container responsive */
    .prompt-container {
        padding: 18px 16px !important;
        font-size: 1rem !important;
        max-width: 100% !important;
        min-height: 50px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    /* Ensure text doesn't overflow */
    .prompt-text {
        font-size: 0.95rem !important;
        word-break: break-word;
        hyphens: auto;
        text-align: center;
    }
    
    /* Button adjustments */
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        min-height: 44px; /* Touch target */
    }
    
    /* Typography mobile adjustments */
    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        line-height: 1.3 !important;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .hero h2 {
        font-size: clamp(1.1rem, 4vw, 1.3rem) !important;
        margin: 12px 0 20px 0 !important;
        max-width: 100% !important;
        padding: 0 10px;
        overflow-wrap: break-word;
    }
    
    .tagline {
        font-size: 1rem !important;
        max-width: 100% !important;
        padding: 0 10px;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .container {
        padding: 0 16px !important;
    }
    
    .hero {
        padding: 60px 0 40px !important;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-main {
        gap: 20px;
    }
    
    /* Prompt container for very small screens */
    .prompt-container {
        padding: 16px 14px !important;
        font-size: 0.9rem !important;
        min-height: 48px !important;
        border-radius: 10px !important;
    }
    
    .prompt-text {
        font-size: 0.9rem !important;
        text-align: center;
    }
    
    /* Typography for very small screens */
    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
        letter-spacing: -0.01em !important;
    }
    
    .hero h2 {
        font-size: clamp(1rem, 5vw, 1.2rem) !important;
        margin: 10px 0 16px 0 !important;
    }
    
    .tagline {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Button stack on very small screens */
    .btn {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 375px) {
    /* iPhone SE and similar small screens */
    .hero h1 {
        font-size: clamp(1.6rem, 10vw, 2.2rem) !important;
    }
    
    .hero h2 {
        font-size: clamp(0.95rem, 5vw, 1.1rem) !important;
    }
    
    .prompt-container {
        padding: 14px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .prompt-text {
        font-size: 0.85rem !important;
    }
}

/* Prevent any element from extending beyond viewport */
.hero, .hero-content, .hero-main, .prompt-container {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Touch target improvements */
@media (max-width: 768px) {
    /* Ensure all clickable elements have adequate touch targets */
    .btn, button, a {
        min-height: 44px;
    }
    
    /* Improve spacing between interactive elements */
    .cta-buttons .btn:not(:last-child) {
        margin-bottom: 8px;
    }
    
    /* Better text contrast and readability on mobile */
    .hero h1, .hero h2 {
        text-shadow: none;
        font-weight: 600;
    }
    
    /* Ensure proper line height for readability */
    p, .tagline {
        line-height: 1.6;
    }
}


/* =================================================================
   UNIVERSAL MOBILE TYPOGRAPHY SYSTEM - COMPREHENSIVE FIX
   Solves ALL text responsiveness without individual class hunting
   ================================================================= */

/* Base mobile typography - applies to ALL text elements */
@media (max-width: 768px) {
    /* Universal text scaling for mobile - catches ALL subtitle/description classes */
    p, div[class*="subtitle"], div[class*="description"], span[class*="subtitle"],
    .config-subtitle, .signup-subtitle, .requirements-subtitle,
    .install-config-content p, .email-signup-form p, .requirement-info p {
        font-size: clamp(0.9rem, 3.5vw, 1rem) !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    /* Universal heading scaling - catches ALL title classes */
    h1, h2, h3, h4, h5, h6, 
    div[class*="title"], span[class*="title"],
    .config-title, .signup-title, .requirements-title {
        font-size: clamp(1.2rem, 4vw, 2rem) !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    /* Smaller secondary headings and subtitles */
    h3, h4, h5, h6, .config-subtitle, .section-subtitle,
    div[class*="subtitle"] {
        font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
    }
    
    /* All text containers must respect viewport - universal container fix */
    .install-config-content, .email-signup-section, .requirements-section,
    [class*="content"], [class*="section"], [class*="container"] {
        max-width: 100% !important;
        padding-left: clamp(0.5rem, 2vw, 1rem) !important;
        padding-right: clamp(0.5rem, 2vw, 1rem) !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word;
    }
    
    /* Catch any remaining text elements */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile - even more conservative sizing */
    p, div[class*="subtitle"], div[class*="description"], span[class*="subtitle"],
    .config-subtitle, .signup-subtitle, .requirements-subtitle {
        font-size: clamp(0.85rem, 3.8vw, 0.95rem) !important;
        line-height: 1.6 !important;
    }
    
    h1, h2, h3, div[class*="title"], span[class*="title"],
    .config-title, .signup-title, .requirements-title {
        font-size: clamp(1.1rem, 4.2vw, 1.4rem) !important;
        line-height: 1.4 !important;
    }
    
    /* Reduce padding on very small screens */
    .install-config-content, .email-signup-section, .requirements-section,
    [class*="content"], [class*="section"], [class*="container"] {
        padding-left: clamp(0.75rem, 3vw, 1rem) !important;
        padding-right: clamp(0.75rem, 3vw, 1rem) !important;
    }
}

/* =================================================================
   VIEWPORT CONSTRAINT ENFORCEMENT - NUCLEAR OPTION
   Ensures NO element can ever exceed viewport width
   ================================================================= */

@media (max-width: 768px) {
    /* Force ALL elements to respect viewport width */
    *, *::before, *::after {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Specific enforcement for text containers */
    p, div, span, h1, h2, h3, h4, h5, h6 {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Container width enforcement */
    .container, [class*="container"], [class*="content"], [class*="section"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}


/* =================================================================
   CSS STANDARDS FIX - ADDRESS ROOT CAUSE
   The problem: Fixed rem values don't scale. Fix the classes themselves.
   ================================================================= */

/* Remove the complex overrides and fix the root cause */

/* STEP 1: Redefine problematic classes with responsive units */
.config-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important; /* Responsive by default */
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    max-width: 100%; /* Prevent overflow */
    word-wrap: break-word;
}

.signup-subtitle {
    font-size: clamp(0.85rem, 2.2vw, 1rem) !important;
    max-width: 100%;
    word-wrap: break-word;
}

.requirements-subtitle {
    font-size: clamp(0.85rem, 2.2vw, 1rem) !important;
    max-width: 100%;
    word-wrap: break-word;
}

/* STEP 2: Set up proper responsive typography scale */
:root {
    /* Fluid typography variables for consistent scaling */
    --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --text-sm: clamp(0.875rem, 2vw, 1rem);
    --text-base: clamp(1rem, 2.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 3vw, 1.25rem);
    --text-xl: clamp(1.25rem, 3.5vw, 1.5rem);
}

/* STEP 3: Fix container constraints */
@media (max-width: 768px) {
    /* Ensure text containers don't constrain content */
    .install-config-content,
    .email-signup-section,
    .requirements-section {
        padding: 0 1rem; /* Simple, clean padding */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Clean container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* STEP 4: Clean up - remove overly complex universal overrides */
/* The complex wildcard selectors above are replaced with these clean fixes */


/* =================================================================
   CODE BLOCK CONTAINER RESPONSIVE FIX
   Make code blocks follow screen width with 10px border gap
   ================================================================= */

/* Mobile responsive fix for code block containers */
@media (max-width: 768px) {
    .code-block-container {
        /* Follow screen width with 10px border gap on each side */
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 1rem;
        margin-bottom: 1rem;
        
        /* Ensure it doesn't exceed available space */
        max-width: calc(100vw - 20px); /* 10px gap on each side */
        box-sizing: border-box;
        
        /* Better mobile overflow handling */
        overflow: hidden;
    }
    
    .code-block {
        /* Improve mobile code block readability */
        padding: 1rem;
        padding-right: 3rem; /* Space for copy button */
        font-size: 0.85rem;
        line-height: 1.5;
        
        /* Better horizontal scrolling on mobile */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Adjust copy button for mobile */
    .copy-btn {
        right: 0.5rem;
        top: 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .code-block-container {
        /* Even more constrained on very small screens */
        margin-left: 8px;
        margin-right: 8px;
        max-width: calc(100vw - 16px); /* 8px gap on each side */
    }
    
    .code-block {
        padding: 0.75rem;
        padding-right: 2.5rem;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Ensure parent containers don't constrain the code blocks */
@media (max-width: 768px) {
    .install-step,
    .install-config-content,
    .step-content {
        /* Remove any padding/margin that might constrain code blocks */
        padding-left: 0;
        padding-right: 0;
    }
    
    /* But add back some padding for text content, not code blocks */
    .install-step .step-content h4,
    .install-step .step-content p:not(.code-block) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* =================================================================
   CLEAN PARAMETER TABLE FIX - SOLVES DESKTOP OVERFLOW + MOBILE SQUISHING
   Replaces the problematic existing params-table rules
   ================================================================= */

/* RESET AND FIX: Remove all problematic existing rules */
.params-table {
    /* Clean slate - proper responsive table */
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    
    /* Remove all display overrides that break table semantics */
    display: table !important;
    
    /* Prevent horizontal overflow on desktop */
    overflow: visible !important;
    white-space: normal !important;
    
    /* Clean styling */
    background: var(--bg-primary-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.dark-theme .params-table {
    background: var(--bg-primary-dark);
    border-color: var(--border-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* DESKTOP: Optimal column distribution - prevents overflow */
@media (min-width: 1025px) {
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 20%; min-width: 120px; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 12%; min-width: 60px; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 12%; min-width: 60px; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 15%; min-width: 80px; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 41%; min-width: 200px; }
}

/* TABLET: Balanced approach */
@media (max-width: 1024px) and (min-width: 769px) {
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 22%; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 15%; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 15%; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 15%; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 33%; }
}

/* MOBILE: Full width utilization - fixes the 40% squishing problem */
@media (max-width: 768px) {
    .params-table {
        /* Use FULL available width - fixes mobile squishing */
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        /* Keep table semantics - don't use display: block */
        display: table !important;
        
        /* Allow horizontal scrolling if absolutely needed */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.75rem 0.5rem !important;
        vertical-align: top;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        white-space: normal !important;
    }
    
    /* Mobile column distribution - use full screen width */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { 
        width: 25% !important;
        min-width: 100px;
        font-size: 0.85rem;
    }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { 
        width: 15% !important;
        min-width: 60px;
        font-size: 0.8rem;
    }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { 
        width: 15% !important;
        min-width: 50px;
        font-size: 0.8rem;
    }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { 
        width: 15% !important;
        min-width: 60px;
        font-size: 0.8rem;
    }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { 
        width: 30% !important;
        min-width: 150px;
        font-size: 0.85rem;
    }
}

/* SMALL MOBILE: Compact but usable */
@media (max-width: 480px) {
    .params-table {
        font-size: 0.8rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.6rem 0.4rem !important;
    }
    
    /* Prioritize description column on small screens */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 28% !important; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 12% !important; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 12% !important; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 12% !important; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 36% !important; }
}

/* ENSURE PARENT CONTAINERS DON'T CONSTRAIN THE TABLE */
.content-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
}

#parameters {
    /* Specific fix for parameters section */
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Remove any existing conflicting width constraints */
.content-section .params-table {
    width: 100% !important; /* Override the 75% rule that was causing issues */
    max-width: 100% !important;
}

/* Parameter examples responsive styling */
.param-example {
    background: rgba(0, 102, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.85em;
    font-style: italic;
    color: var(--text-secondary-light);
    word-wrap: break-word;
}

.dark-theme .param-example {
    background: rgba(0, 102, 255, 0.1);
    color: var(--text-secondary-dark);
}

@media (max-width: 768px) {
    .param-example {
        font-size: 0.8em;
        padding: 0.4rem 0.6rem;
    }
}


/* =================================================================
   MOBILE TABLE TD CONSTRAINT FIX
   Remove min-width constraints that prevent mobile td shrinking
   ================================================================= */

/* CRITICAL FIX: Remove min-width constraints on mobile */
@media (max-width: 768px) {
    .params-table th,
    .params-table td {
        /* Remove ALL min-width constraints on mobile */
        min-width: 0 !important;
        
        /* Force table-layout to be more flexible */
        box-sizing: border-box !important;
        
        /* Better text handling */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
    }
    
    /* Override specific min-width constraints that are cascading from desktop */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { 
        width: 25% !important;
        min-width: 0 !important; /* Remove 120px constraint */
        max-width: 25% !important;
    }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { 
        width: 15% !important;
        min-width: 0 !important; /* Remove 60px constraint */
        max-width: 15% !important;
    }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { 
        width: 15% !important;
        min-width: 0 !important; /* Remove 60px constraint */
        max-width: 15% !important;
    }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { 
        width: 15% !important;
        min-width: 0 !important; /* Remove 80px constraint */
        max-width: 15% !important;
    }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { 
        width: 30% !important;
        min-width: 0 !important; /* Remove 200px constraint */
        max-width: 30% !important;
    }
    
    /* Force table to respect mobile constraints */
    .params-table {
        table-layout: fixed !important; /* Force equal distribution */
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* EXTRA SMALL MOBILE: Even more aggressive constraints */
@media (max-width: 480px) {
    .params-table th,
    .params-table td {
        min-width: 0 !important;
        max-width: none !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    /* Redistribute space for tiny screens */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { 
        width: 28% !important;
        max-width: 28% !important;
    }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { 
        width: 12% !important;
        max-width: 12% !important;
        font-size: 0.7rem !important;
    }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { 
        width: 12% !important;
        max-width: 12% !important;
        font-size: 0.7rem !important;
    }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { 
        width: 12% !important;
        max-width: 12% !important;
        font-size: 0.7rem !important;
    }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { 
        width: 36% !important;
        max-width: 36% !important;
    }
}


/* =================================================================
   NUCLEAR RESET FOR PARAMS-TABLE - OVERRIDE ALL CONFLICTING STYLES
   Multiple previous attempts created conflicting rules - this overrides them all
   ================================================================= */

/* CRITICAL: Override ALL the problematic existing rules */
.params-table {
    /* Base table reset */
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important; /* Force predictable layout */
    border-collapse: collapse !important;
    display: table !important; /* Override display: block */
    white-space: normal !important; /* Override nowrap */
    overflow: visible !important;
    margin: 2rem 0 !important; /* Override negative margins */
    border-radius: 8px !important;
    border-left: 1px solid var(--border-light) !important;
    border-right: 1px solid var(--border-light) !important;
}

/* MOBILE: Nuclear reset for all td elements */
@media (max-width: 768px) {
    .params-table {
        display: table !important; /* Override display: block */
        width: 100% !important;
        table-layout: fixed !important;
        white-space: normal !important; /* Override nowrap */
        margin: 2rem 0 !important; /* Override negative margins */
        border-radius: 8px !important;
        overflow: visible !important;
    }
    
    .params-table th,
    .params-table td {
        /* Reset ALL cell constraints */
        white-space: normal !important; /* Override nowrap */
        width: auto !important; /* Reset fixed widths */
        min-width: 0 !important; /* Override ALL min-width constraints */
        max-width: none !important;
        display: table-cell !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        box-sizing: border-box !important;
        padding: 0.75rem 0.5rem !important;
        vertical-align: top !important;
    }
    
    /* Override specific problematic selectors */
    .params-table td:first-child {
        width: auto !important; /* Override 140px */
        min-width: 0 !important;
        white-space: normal !important; /* Override nowrap */
        font-weight: 600 !important;
    }
    
    .params-table td:last-child {
        min-width: 0 !important; /* Override 300px constraint */
        width: auto !important;
        white-space: normal !important;
    }
    
    /* Force equal column distribution */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 25% !important; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 15% !important; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 15% !important; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 15% !important; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 30% !important; }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .params-table th,
    .params-table td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Better distribution for tiny screens */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 30% !important; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 12% !important; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 12% !important; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 12% !important; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 34% !important; }
}

/* Ensure no parent constraints */
.content-section .params-table {
    width: 100% !important; /* Override any percentage constraints */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#parameters .params-table {
    width: 100% !important;
    max-width: 100% !important;
}

/* Dark theme overrides */
.dark-theme .params-table {
    border-left-color: var(--border-dark) !important;
    border-right-color: var(--border-dark) !important;
}


/* =================================================================
   CONTAINER OVERFLOW FIX - PREVENT TABLE ESCAPE
   The content-section overflow-x: auto is allowing table to break bounds
   ================================================================= */

/* CRITICAL: Override container overflow that allows table escape */
@media (max-width: 768px) {
    .content-section {
        /* Force container to constrain its content */
        overflow-x: hidden !important; /* Prevent horizontal overflow */
        overflow-y: visible !important; /* Allow vertical content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Specifically for parameters section */
    #parameters.content-section {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Force all tables within content sections to be constrained */
    .content-section .params-table {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important; /* Critical - table itself must not overflow */
        table-layout: fixed !important;
        box-sizing: border-box !important;
        
        /* Add safety constraints */
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    /* Ensure article-body container also constrains */
    .article-body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Extra small mobile - even tighter constraints */
@media (max-width: 480px) {
    .content-section,
    #parameters.content-section {
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .content-section .params-table {
        /* Remove any borders that might cause overflow */
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        /* Force cells to be even more constrained */
        table-layout: fixed !important;
        width: 100% !important;
    }
    
    .params-table th,
    .params-table td {
        /* Aggressive text wrapping for tiny screens */
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        hyphens: auto !important;
        white-space: normal !important;
    }
}


/* =================================================================
   PARAMS-TABLE CLEAN IMPLEMENTATION - REPLACES ALL PREVIOUS VERSIONS
   ================================================================= */

/* Base table style - works perfectly on desktop */
.params-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    background: var(--bg-primary-light) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--border-light) !important;
    box-sizing: border-box !important;
}

.dark-theme .params-table {
    background: var(--bg-primary-dark) !important;
    border-color: var(--border-dark) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Header styling */
.params-table thead {
    background: linear-gradient(135deg, var(--primary-color), #0052cc) !important;
    color: white !important;
}

.params-table th {
    padding: 1rem 1.25rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border: none !important;
    position: relative !important;
}

.params-table th:not(:last-child):after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 60% !important;
    width: 1px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Body styling */
.params-table tbody tr {
    transition: all 0.2s ease !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.dark-theme .params-table tbody tr {
    border-bottom-color: var(--border-dark) !important;
}

.params-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.02) !important;
    transform: translateX(2px) !important;
}

.dark-theme .params-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.05) !important;
}

.params-table tbody tr:last-child {
    border-bottom: none !important;
}

.params-table td {
    padding: 1.25rem 1.25rem !important;
    vertical-align: top !important;
    border: none !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    min-width: 0 !important;
}

/* Column-specific styling */
.params-table td:first-child {
    font-weight: 600 !important;
}

.params-table td:nth-child(2),
.params-table td:nth-child(3),
.params-table td:nth-child(4) {
    font-family: var(--font-mono) !important;
    font-size: 0.8rem !important;
    color: var(--text-secondary-light) !important;
}

.dark-theme .params-table td:nth-child(2),
.dark-theme .params-table td:nth-child(3),
.dark-theme .params-table td:nth-child(4) {
    color: var(--text-secondary-dark) !important;
}

/* Description column content */
.params-table .param-description {
    margin: 0 0 0.5rem 0 !important;
    color: var(--text-primary-light) !important;
}

.dark-theme .params-table .param-description {
    color: var(--text-primary-dark) !important;
}

.params-table .param-description:last-child {
    margin-bottom: 0 !important;
}

.params-table .param-example {
    background: rgba(0, 102, 255, 0.08) !important;
    color: var(--primary-color) !important;
    padding: 0.2em 0.4em !important;
    border-radius: 4px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    border: 1px solid rgba(0, 102, 255, 0.1) !important;
}

.dark-theme .params-table .param-example {
    background: rgba(0, 102, 255, 0.15) !important;
    color: #66b3ff !important;
    border-color: rgba(0, 102, 255, 0.2) !important;
}

/* Desktop column widths - maintain existing proportions */
@media (min-width: 769px) {
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 20% !important; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 12% !important; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 12% !important; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 15% !important; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 41% !important; }
}

/* Mobile responsive - CRITICAL CONTAINER CONSTRAINT */
@media (max-width: 768px) {
    
    /* CRITICAL: Force container constraint - PREVENTS TABLE ESCAPE */
    .content-section {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* CRITICAL: Force article-body constraint */
    .article-body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .params-table {
        /* Table must fit within viewport - NO ESCAPE */
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        
        /* Reset any problematic styles */
        display: table !important;
        overflow: hidden !important;
        margin: 1.5rem 0 !important;
        
        /* Remove borders that might cause overflow */
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }
    
    .params-table th,
    .params-table td {
        /* Force text wrapping - CRITICAL */
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        
        /* Smaller padding for mobile */
        padding: 0.75rem 0.5rem !important;
        
        /* Reset any width constraints */
        min-width: 0 !important;
        max-width: none !important;
    }
    
    /* Mobile column distribution - EQUAL AND CONSTRAINED */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 25% !important; max-width: 25% !important; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 15% !important; max-width: 15% !important; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 15% !important; max-width: 15% !important; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 15% !important; max-width: 15% !important; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 30% !important; max-width: 30% !important; }
    
    /* Smaller text for mobile */
    .params-table th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .params-table td {
        font-size: 0.8rem !important;
    }
    
    .params-table td:nth-child(2),
    .params-table td:nth-child(3),
    .params-table td:nth-child(4) {
        font-size: 0.7rem !important;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .params-table th,
    .params-table td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }
    
    .params-table td:nth-child(2),
    .params-table td:nth-child(3),
    .params-table td:nth-child(4) {
        font-size: 0.65rem !important;
    }
    
    /* Adjust column distribution for tiny screens */
    .params-table th:nth-child(1), .params-table td:nth-child(1) { width: 28% !important; max-width: 28% !important; }
    .params-table th:nth-child(2), .params-table td:nth-child(2) { width: 12% !important; max-width: 12% !important; }
    .params-table th:nth-child(3), .params-table td:nth-child(3) { width: 12% !important; max-width: 12% !important; }
    .params-table th:nth-child(4), .params-table td:nth-child(4) { width: 12% !important; max-width: 12% !important; }
    .params-table th:nth-child(5), .params-table td:nth-child(5) { width: 36% !important; max-width: 36% !important; }
}


/* =================================================================
   DISABLE PROBLEMATIC RESPONSIVE BREAKPOINTS
   User prefers desktop table behavior at all screen sizes
   ================================================================= */

/* CRITICAL: Override the 768px breakpoint that breaks table layout */
@media (max-width: 768px) {
    .params-table {
        /* FORCE desktop table behavior - override display: block */
        display: table !important;
        
        /* PREVENT overflow escape - override overflow-x: auto */
        overflow: hidden !important;
        
        /* ALLOW text wrapping - override white-space: nowrap */
        white-space: normal !important;
        
        /* NORMAL margins - override negative margins */
        margin: 1.5rem 0 !important;
        
        /* KEEP borders - override border removal */
        border-radius: 8px !important;
        border-left: 1px solid var(--border-light) !important;
        border-right: 1px solid var(--border-light) !important;
    }
    
    .dark-theme .params-table {
        border-left-color: var(--border-dark) !important;
        border-right-color: var(--border-dark) !important;
    }
}

/* CRITICAL: Override the 640px breakpoint that converts to cards */
@media (max-width: 640px) {
    .params-table thead {
        /* KEEP headers visible - override display: none */
        display: table-header-group !important;
    }
    
    .params-table,
    .params-table tbody,
    .params-table tr,
    .params-table td {
        /* FORCE table semantics - override display: block */
        display: revert !important;
        width: revert !important;
    }
    
    .params-table {
        display: table !important;
        width: 100% !important;
    }
    
    .params-table tbody {
        display: table-row-group !important;
    }
    
    .params-table tr {
        display: table-row !important;
        /* REMOVE card styling - override margins, padding, background */
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    
    .params-table td {
        display: table-cell !important;
        /* REMOVE card cell styling */
        padding: 1.25rem 1.25rem !important;
        border: none !important;
        width: auto !important;
    }
}


/* =================================================================
   RESPONSIVE FONT SIZING WITH CSS CLAMP() - NO MEDIA QUERIES NEEDED
   Automatically scales font sizes based on viewport width
   ================================================================= */

/* Update the existing clean params-table styles with responsive typography */
.params-table th {
    /* Auto-scaling header text: 12px at 320px viewport, 14px at 1200px+ */
    font-size: clamp(0.75rem, 2.5vw, 0.875rem) !important;
    padding: clamp(0.5rem, 2vw, 1rem) clamp(0.5rem, 2vw, 1.25rem) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

.params-table td {
    /* Auto-scaling body text: 12px at 320px viewport, 14.4px at 1200px+ */
    font-size: clamp(0.75rem, 2.2vw, 0.9rem) !important;
    padding: clamp(0.5rem, 2vw, 1.25rem) clamp(0.25rem, 1.5vw, 1.25rem) !important;
    line-height: 1.6 !important;
}

.params-table td:first-child {
    /* Parameter names slightly larger */
    font-size: clamp(0.8rem, 2.3vw, 0.95rem) !important;
    font-weight: 600 !important;
}

.params-table td:nth-child(2),
.params-table td:nth-child(3),
.params-table td:nth-child(4) {
    /* Smaller monospace columns scale down more aggressively */
    font-size: clamp(0.65rem, 1.8vw, 0.8rem) !important;
    font-family: var(--font-mono) !important;
    color: var(--text-secondary-light) !important;
}

.dark-theme .params-table td:nth-child(2),
.dark-theme .params-table td:nth-child(3),
.dark-theme .params-table td:nth-child(4) {
    color: var(--text-secondary-dark) !important;
}

.params-table .param-example {
    /* Example code scales appropriately */
    font-size: clamp(0.7rem, 1.9vw, 0.85em) !important;
    padding: clamp(0.15em, 0.5vw, 0.2em) clamp(0.3em, 1vw, 0.4em) !important;
    background: rgba(0, 102, 255, 0.08) !important;
    color: var(--primary-color) !important;
    border-radius: 4px !important;
    font-family: var(--font-mono) !important;
    font-weight: 500 !important;
    border: 1px solid rgba(0, 102, 255, 0.1) !important;
}

.dark-theme .params-table .param-example {
    background: rgba(0, 102, 255, 0.15) !important;
    color: #66b3ff !important;
    border-color: rgba(0, 102, 255, 0.2) !important;
}

/* Override any fixed font sizes in previous rules */
.params-table * {
    /* Ensure clamp() takes precedence over any hardcoded font sizes */
    font-size: inherit !important;
}

.params-table th,
.params-table td,
.params-table .param-example {
    /* Restore specific sizing after the wildcard reset */
    font-size: revert !important;
}
