        :root {
            /* Цветовая палитра: глубокий космос + кибер-бирюза */
            --bg-base: #02040a;
            --bg-nav: rgba(2, 4, 10, 0.7);
            --bg-card: rgba(13, 17, 23, 0.6);
            --bg-card-hover: rgba(22, 27, 34, 0.8);
            
            --cyan-primary: #00e5ff;
            --cyan-hover: #00b8cc;
            --cyan-glow: rgba(0, 229, 255, 0.4);
            --cyan-dim: rgba(0, 229, 255, 0.1);
            
            --text-main: #f0f6fc;
            --text-muted: #8b949e;
            
            --border-glass: rgba(255, 255, 255, 0.08);
            --border-cyan: rgba(0, 229, 255, 0.2);
            
            --font-ui: 'Inter', system-ui, sans-serif;
            --font-code: 'JetBrains Mono', monospace;

            /* Размеры */
            --max-width: 1200px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-main);
            font-family: var(--font-ui);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
        }

        /* --- ГЛОБАЛЬНЫЕ ФОНОВЫЕ ЭФФЕКТЫ --- */
        .ambient-bg {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .ambient-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(140px);
            opacity: 0.4;
            animation: orb-float 25s infinite alternate ease-in-out;
        }

        .orb-1 {
            width: 50vw; height: 50vw;
            background: rgba(0, 229, 255, 0.15);
            top: -20%; left: -10%;
        }

        .orb-2 {
            width: 40vw; height: 40vw;
            background: rgba(30, 60, 150, 0.15);
            bottom: -10%; right: -10%;
            animation-delay: -12s;
        }

        .grid-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: 
                linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
            -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
        }

        @keyframes orb-float {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(15%, 15%) scale(1.2); }
        }

        /* --- НАВИГАЦИЯ --- */
        .navbar {
            position: fixed;
            top: 0; left: 0; width: 100%;
            height: 72px;
            background: var(--bg-nav);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--border-glass);
            z-index: 100;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }

        .navbar.scrolled {
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            height: 64px;
        }

        .nav-container {
            width: 100%;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-main);
            font-weight: 700;
            font-size: 18px;
            letter-spacing: -0.5px;
        }

        .nav-logo svg {
            width: 28px;
            height: 28px;
            stroke: var(--cyan-primary);
            filter: drop-shadow(0 0 8px var(--cyan-glow));
        }

        .nav-links {
            display: flex;
            gap: 32px;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: var(--text-main);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-ghost {
            color: var(--text-main);
            background: transparent;
            border: 1px solid transparent;
        }

        .btn-ghost:hover {
            background: rgba(255,255,255,0.05);
            border-color: var(--border-glass);
        }

        .btn-primary {
            background: var(--cyan-dim);
            color: var(--cyan-primary);
            border: 1px solid var(--cyan-primary);
            box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
        }

        .btn-primary:hover {
            background: var(--cyan-primary);
            color: var(--bg-base);
            box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
        }

        /* --- HERO СЕКЦИЯ --- */
        .hero {
            padding: 180px 24px 100px;
            max-width: var(--max-width);
            margin: 0 auto;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: var(--cyan-dim);
            border: 1px solid var(--border-cyan);
            border-radius: 20px;
            color: var(--cyan-primary);
            font-family: var(--font-code);
            font-size: 12px;
            margin-bottom: 24px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.8s ease forwards;
        }

        .badge-dot {
            width: 6px; height: 6px;
            background: var(--cyan-primary);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--cyan-primary);
            animation: pulse 2s infinite;
        }

        .hero h1 {
            font-size: clamp(40px, 6vw, 72px);
            font-weight: 700;
            letter-spacing: -2px;
            line-height: 1.1;
            margin-bottom: 24px;
            max-width: 900px;
            background: linear-gradient(180deg, #fff, #8b949e);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.8s ease 0.1s forwards;
        }

        .hero p {
            font-size: clamp(16px, 2vw, 20px);
            color: var(--text-muted);
            max-width: 600px;
            margin-bottom: 40px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.8s ease 0.2s forwards;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.8s ease 0.3s forwards;
        }

        /* --- ИМИТАЦИЯ ТЕРМИНАЛА (КРАСОТА) --- */
        .terminal-widget {
            margin-top: 60px;
            width: 100%;
            max-width: 800px;
            background: rgba(13, 17, 23, 0.7);
            border: 1px solid var(--border-glass);
            border-radius: 12px;
            overflow: hidden;
            text-align: left;
            backdrop-filter: blur(12px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 0.8s ease 0.4s forwards;
        }

        .terminal-header {
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid var(--border-glass);
            padding: 12px 16px;
            display: flex;
            gap: 8px;
        }

        .terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
        .dot-r { background: #ff5f56; }
        .dot-y { background: #ffbd2e; }
        .dot-g { background: #27c93f; }

        .terminal-body {
            padding: 20px;
            font-family: var(--font-code);
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.8;
            min-height: 140px;
        }

        .prompt::before {
            content: '➜';
            color: var(--cyan-primary);
            margin-right: 10px;
        }
        
        .typewriter {
            display: inline-block;
            color: var(--text-main);
        }

        .cursor {
            display: inline-block;
            width: 8px;
            height: 16px;
            background: var(--cyan-primary);
            vertical-align: middle;
            animation: blink 1s step-end infinite;
        }

        /* --- FEATURES SECTION --- */
        .features {
            max-width: var(--max-width);
            margin: 100px auto;
            padding: 0 24px;
        }

        .section-title {
            text-align: center;
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 60px;
            letter-spacing: -1px;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
        }

        .feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-glass);
            border-radius: 16px;
            padding: 32px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            /* Класс для анимации при скролле */
            opacity: 0;
            transform: translateY(30px);
        }

        .feature-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .feature-card:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-cyan);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
        }

        .feature-icon {
            width: 48px; height: 48px;
            background: rgba(0, 229, 255, 0.05);
            border: 1px solid var(--border-cyan);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
            color: var(--cyan-primary);
        }

        .feature-icon svg {
            width: 24px; height: 24px;
            stroke: currentColor;
        }

        .feature-card h3 {
            font-size: 20px;
            margin-bottom: 12px;
            color: var(--text-main);
        }

        .feature-card p {
            color: var(--text-muted);
            font-size: 15px;
            line-height: 1.6;
        }

        /* --- FOOTER --- */
        .footer {
            border-top: 1px solid var(--border-glass);
            background: rgba(2, 4, 10, 0.8);
            padding: 60px 24px;
            margin-top: 100px;
        }

        .footer-content {
            max-width: var(--max-width);
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-text {
            color: var(--text-muted);
            font-size: 14px;
        }

        /* --- АНИМАЦИИ --- */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
            70% { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* Мобилка */
        @media (max-width: 768px) {
            .nav-links { display: none; }
            .hero { padding-top: 140px; }
            .terminal-widget { display: none; /* Скрываем терминал на мобилках для экономии места */ }
        }
		
		#preloader {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        width: 100%;
        height: 100%;
        overflow: visible;
        background: #fffdfe url('preloader.gif') no-repeat center center;
}

.visible {
visibility: visible;
opacity: 1;
transition: opacity 2s linear;
}

.hidden {
visibility: hidden;
opacity: 0;
transition: visibility 0s 2s, opacity 2s linear;
}