:root {
            --bg-gradient-start: #0f1724;
            --bg-gradient-end: #111827;
            --surface-primary: rgba(30, 38, 52, 0.85);
            --surface-secondary: rgba(22, 28, 40, 0.9);
            --card-bg: rgba(26, 34, 48, 0.75);
            --border-light: rgba(71, 85, 105, 0.3);
            --border-medium: rgba(139, 92, 246, 0.35);
            --text-primary: #f0f2ff;
            --text-secondary: #c5cbe0;
            --text-muted: #9aa5c5;
            --accent-primary: #8b5cf6;
            --accent-secondary: #f97316;
            --accent-glow: rgba(139, 92, 246, 0.5);
            --btn-primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);
            --code-bg: #121626;
            --code-header: #0a0e1a;
            --code-border: #2a2f4a;
            --shadow-sm: 0 4px 15px -5px rgba(0, 0, 0, 0.5);
            --shadow-md: 0 10px 35px -10px rgba(0, 0, 0, 0.6);
            --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
            --shadow-glow: 0 0 50px rgba(139, 92, 246, 0.25);
            --transition-default: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
        }

        body[data-theme="light"] {
            --bg-gradient-start: #e8edf8;
            --bg-gradient-end: #f0f4fb;
            --surface-primary: rgba(255, 255, 255, 0.88);
            --surface-secondary: rgba(248, 249, 252, 0.92);
            --card-bg: rgba(255, 255, 255, 0.78);
            --border-light: rgba(124, 58, 237, 0.18);
            --border-medium: rgba(124, 58, 237, 0.28);
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --text-muted: #64748b;
            --accent-primary: #7c3aed;
            --accent-secondary: #ea580c;
            --accent-glow: rgba(124, 58, 237, 0.25);
            --btn-primary-gradient: linear-gradient(135deg, #7c3aed 0%, #ea580c 100%);
            --code-bg: #f8fafc;
            --code-header: #f1f5f9;
            --code-border: #e2e8f0;
            --shadow-sm: 0 4px 15px -5px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 10px 35px -10px rgba(0, 0, 0, 0.15);
            --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.2);
            --shadow-glow: 0 0 50px rgba(124, 58, 237, 0.18);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(145deg, var(--bg-gradient-start), var(--bg-gradient-end));
            color: var(--text-primary);
            line-height: 1.7;
            transition: background 0.4s ease, color 0.3s;
            overflow-x: hidden;
            scroll-behavior: smooth;
            position: relative;
            min-height: 100vh;
        }

        .grid-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
            z-index: 0;
        }

        .particles-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
            opacity: 0.12;
            animation: float linear infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.12;
            }
            90% {
                opacity: 0.12;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        .glow-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(90px);
            opacity: 0.25;
            pointer-events: none;
            z-index: 0;
            animation: pulse 10s ease-in-out infinite;
        }

        .glow-orb-1 {
            width: 600px;
            height: 600px;
            background: var(--accent-primary);
            top: -250px;
            right: -250px;
        }

        .glow-orb-2 {
            width: 500px;
            height: 500px;
            background: var(--accent-secondary);
            bottom: -200px;
            left: -200px;
            animation-delay: -5s;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.25;
            }
            50% {
                transform: scale(1.15);
                opacity: 0.35;
            }
        }

        .mouse-glow {
            position: fixed;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
            opacity: 0.08;
            pointer-events: none;
            z-index: 0;
            transition: opacity 0.3s ease;
            transform: translate(-50%, -50%);
        }

        header, .feature-card, .script-code, .screenshot-item, .download-cta, .stat-card, .tag {
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
        }

        header {
            background: var(--surface-primary);
            border-bottom: 1px solid var(--border-light);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            padding: 0.9rem 0;
            transition: var(--transition-smooth);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
        }

        header:hover {
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
            border-color: var(--border-medium);
        }

        .nav-container {
            max-width: 1350px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2.5rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            transition: var(--transition-smooth);
        }

        .logo:hover {
            transform: scale(1.03);
        }

        .logo-img {
            height: 44px;
            width: auto;
            filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.35));
            transition: var(--transition-smooth);
        }

        .logo:hover .logo-img {
            filter: drop-shadow(0 6px 25px rgba(139, 92, 246, 0.5));
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition-smooth);
            font-size: 0.96rem;
            position: relative;
            padding: 0.4rem 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--btn-primary-gradient);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover {
            color: var(--accent-primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .theme-toggle {
            background: rgba(139, 92, 246, 0.12);
            border: 1px solid var(--border-light);
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--text-primary);
            transition: var(--transition-smooth);
        }

        .theme-toggle:hover {
            background: rgba(139, 92, 246, 0.25);
            border-color: var(--accent-primary);
            transform: rotate(18deg) scale(1.08);
            box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.7rem;
            cursor: pointer;
        }

        .fade-up {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
        }

        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .hero {
            padding: 11rem 2.5rem 6rem;
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-container {
            max-width: 1350px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 5rem;
        }

        .hero-content {
            flex: 1.3;
        }

        .version-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0.5rem 1.1rem;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(249, 115, 22, 0.1));
            border: 1px solid var(--border-light);
            border-radius: 50px;
            font-size: 0.88rem;
            color: var(--accent-secondary);
            margin-bottom: 1.5rem;
            animation: badgePulse 2.5s ease-in-out infinite;
        }

        @keyframes badgePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.3); }
            50% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 1.6rem;
            line-height: 1.1;
            animation: gradientShift 6s ease infinite;
            text-shadow: 0 0 80px rgba(139, 92, 246, 0.25);
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 620px;
            margin-bottom: 2.8rem;
            line-height: 1.8;
        }

        .hero-buttons {
            display: flex;
            gap: 1.4rem;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2.6rem;
            border-radius: 55px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition-smooth);
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 1rem;
            position: relative;
            overflow: hidden;
        }

        .btn:active {
            transform: scale(0.97);
        }

        .btn-primary {
            background: var(--btn-primary-gradient);
            color: white;
            box-shadow: 0 10px 35px var(--accent-glow);
        }

        .btn-secondary {
            background: var(--surface-secondary);
            border: 1px solid var(--border-light);
            color: var(--text-primary);
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .hero-image img {
            max-width: 100%;
            width: 100%;
            border-radius: 32px;
            box-shadow: var(--shadow-lg), var(--shadow-glow);
            transition: var(--transition-smooth);
            object-fit: cover;
            border: 1px solid var(--border-light);
        }



        .stats-section {
            padding: 2.5rem 2.5rem 0;
            position: relative;
            z-index: 1;
        }

        .stats-container {
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.8rem;
        }

        .stat-card {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 2rem 1.6rem;
            text-align: center;
            border: 1px solid var(--border-light);
            transition: var(--transition-smooth);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--btn-primary-gradient);
            transform: scaleX(0);
            transition: transform 0.5s ease;
        }

        .stat-card:hover {
            border-color: var(--border-medium);
            box-shadow: var(--shadow-lg), var(--shadow-glow);
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-number {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 0.4rem;
        }

        .stat-label {
            color: var(--text-muted);
            font-size: 0.98rem;
            font-weight: 500;
        }

        .features {
            padding: 7rem 2.5rem;
            position: relative;
            z-index: 1;
        }

        .section-title {
            text-align: center;
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 4rem;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            position: relative;
        }

        .features-grid {
            max-width: 1300px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2.5rem;
        }

        .feature-card {
            background: var(--card-bg);
            border-radius: 28px;
            padding: 2.4rem;
            border: 1px solid var(--border-light);
            transition: var(--transition-smooth);
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--btn-primary-gradient);
            transform: scaleX(0);
            transition: transform 0.6s ease;
        }

        .feature-card:hover {
            border-color: var(--border-medium);
            box-shadow: var(--shadow-lg), var(--shadow-glow);
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-icon {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(249, 115, 22, 0.15));
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--accent-primary);
            margin-bottom: 1.5rem;
            transition: var(--transition-smooth);
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
            border-color: var(--accent-primary);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.9rem;
        }

        .feature-desc {
            color: var(--text-muted);
            line-height: 1.8;
            font-size: 1rem;
        }

        .tag-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            margin-top: 1.2rem;
        }

        .tag {
            padding: 0.35rem 0.9rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
            background: rgba(139, 92, 246, 0.12);
            border: 1px solid var(--border-light);
            color: var(--accent-secondary);
            transition: var(--transition-smooth);
        }

        .tag:hover {
            background: rgba(139, 92, 246, 0.2);
            border-color: var(--accent-primary);
        }

        .script-showcase {
            padding: 7rem 2.5rem;
            background: var(--surface-secondary);
            position: relative;
            z-index: 1;
        }

        .script-container {
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            gap: 5rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .script-content {
            flex: 1;
        }

        .script-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1.4rem;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .script-text {
            color: var(--text-secondary);
            margin-bottom: 1.6rem;
            line-height: 1.8;
            font-size: 1.02rem;
        }

        .script-code {
            flex: 1;
            background: var(--code-bg);
            border-radius: 28px;
            overflow: hidden;
            border: 1px solid var(--code-border);
            box-shadow: var(--shadow-lg);
            transition: var(--transition-smooth);
            max-width: 100%;
        }

        .script-code:hover {
            box-shadow: var(--shadow-lg), var(--shadow-glow);
            border-color: var(--border-medium);
        }

        .code-header {
            background: var(--code-header);
            padding: 1rem 1.6rem;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid var(--border-light);
        }

        .code-body {
            max-height: 480px;
            overflow: auto;
        }

        .CodeMirror {
            height: auto !important;
            font-family: 'Inter', 'SF Pro Text', 'Segoe UI', 'Roboto', sans-serif;
            font-size: 13px;
            background: var(--code-bg) !important;
            color: var(--text-primary) !important;
        }

        .CodeMirror-gutters {
            background: var(--code-header);
            border-right: 1px solid var(--border-light);
        }

        .CodeMirror-linenumber {
            color: var(--text-muted);
        }

        body[data-theme="dark"] .cm-keyword { color: #c77dff !important; }
        body[data-theme="dark"] .cm-string { color: #f9a8d4 !important; }
        body[data-theme="dark"] .cm-number { color: #9dd4ff !important; }
        body[data-theme="dark"] .cm-comment { color: #98c379 !important; }
        body[data-theme="dark"] .cm-gc-function { color: #e5c07b !important; }
        body[data-theme="dark"] .cm-variable { color: #61afef !important; }

        body[data-theme="light"] .cm-keyword { color: #7c3aed !important; font-weight: 600; }
        body[data-theme="light"] .cm-string { color: #db2777 !important; }
        body[data-theme="light"] .cm-number { color: #047857 !important; }
        body[data-theme="light"] .cm-comment { color: #16a34a !important; }
        body[data-theme="light"] .cm-gc-function { color: #b45309 !important; font-weight: 600; }
        body[data-theme="light"] .cm-variable { color: #1d4ed8 !important; }

        .screenshots {
            padding: 7rem 2.5rem;
            position: relative;
            z-index: 1;
        }

        .screenshots-grid {
            max-width: 1300px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
        }

        .screenshot-item {
            background: var(--card-bg);
            border-radius: 28px;
            overflow: hidden;
            aspect-ratio: 16/10;
            border: 1px solid var(--border-light);
            transition: var(--transition-smooth);
            cursor: pointer;
            position: relative;
        }

        .screenshot-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }



        .download-cta {
            padding: 6rem 2.5rem;
            text-align: center;
            background: var(--surface-primary);
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
            position: relative;
            z-index: 1;
        }

        .cta-title {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 1.2rem;
        }

        .cta-subtitle {
            color: var(--text-secondary);
            margin: 1rem auto 2.5rem;
            max-width: 650px;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .cta-buttons {
            display: flex;
            gap: 1.4rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        footer {
            background: var(--surface-secondary);
            padding: 5rem 2.5rem 2.5rem;
            border-top: 1px solid var(--border-light);
            position: relative;
            z-index: 1;
        }

        .footer-container {
            max-width: 1300px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 3rem;
        }

        .footer-col h3 {
            font-size: 1.2rem;
            margin-bottom: 1.4rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a, .footer-links span {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.96rem;
            transition: var(--transition-smooth);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }

        .footer-links a:hover {
            color: var(--accent-primary);
        }

        .footer-bottom {
            text-align: center;
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-light);
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        @media (max-width: 992px) {
            .hero-container {
                flex-direction: column;
                text-align: center;
            }
            .hero-content {
                text-align: center;
            }
            .hero-subtitle {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-buttons {
                justify-content: center;
            }
            .hero-image img {
                max-width: 90%;
                margin: 0 auto;
            }
            .script-container {
                flex-direction: column;
            }
            .script-code {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 78px;
                left: 0;
                width: 100%;
                background: var(--surface-primary);
                backdrop-filter: blur(30px);
                flex-direction: column;
                gap: 1.2rem;
                padding: 1.8rem;
                border-bottom: 1px solid var(--border-light);
                border-radius: 0 0 28px 28px;
                z-index: 999;
            }
            .nav-links.show {
                display: flex;
            }
            .mobile-menu-btn {
                display: block;
            }
            .nav-container {
                padding: 0 1.5rem;
            }
        }

        @media (max-width: 640px) {
            .hero-title {
                font-size: 2.6rem;
            }
            .features-grid {
                grid-template-columns: 1fr;
            }
            .screenshots-grid {
                grid-template-columns: 1fr;
            }
            .btn {
                padding: 0.85rem 2rem;
            }
            .hero {
                padding: 9rem 1.5rem 4rem;
            }
            .features, .script-showcase, .screenshots, .download-cta {
                padding: 4rem 1.5rem;
            }
            footer {
                padding: 3.5rem 1.5rem 2rem;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--surface-primary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--btn-primary-gradient);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(var(--accent-secondary), var(--accent-primary));
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }