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

:root {
    --bg-deep: #060613;
    --bg-surface: #0c0c24;
    --bg-card: rgba(16, 16, 42, 0.65);
    --text-primary: #e8ecf4;
    --text-secondary: #9498b8;
    --text-muted: #5c6080;
    --accent-cyan: #06B6D4;
    --accent-purple: #8B5CF6;
    --accent-violet: #6366F1;
    --accent-glow: #00E5FF;
    --border-subtle: rgba(255,255,255,0.06);
    --border-glow: rgba(139, 92, 246, 0.3);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --grid-gap: 2rem;
    --section-pad: 6rem 2rem;
    --max-width: 1280px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg-deep); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; min-height: 100vh; position: relative; transition: opacity 0.4s ease; }
body.loading { overflow: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-purple); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

.loader-wrapper { position: fixed; inset: 0; z-index: 10000; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.6s ease, visibility 0.6s ease; }
.loader-wrapper.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { width: 100px; height: 100px; margin-bottom: 2rem; animation: loaderPulse 2s infinite ease-in-out; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7)); }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } }
.loader-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.loader-bar { width: 260px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); width: 0%; border-radius: 2px; transition: width 0.3s ease; animation: loaderFill 2s ease-in-out infinite; }
@keyframes loaderFill { 0% { width: 0%; } 50% { width: 70%; } 100% { width: 100%; } }
.loader-hint { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; }

.bg-orb { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; will-change: transform; animation: orbFloat 20s infinite alternate var(--ease-in-out); }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%); top: -200px; left: -150px; animation-duration: 22s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%); bottom: -150px; right: -100px; animation-duration: 25s; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 65%); top: 50%; left: 55%; animation-duration: 18s; animation-delay: -10s; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-25px, 20px) scale(0.94); } 100% { transform: translate(15px, -10px) scale(1.03); } }
.bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.025; background-image: linear-gradient(rgba(139,92,246,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,0.4) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%); }
#particleCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.2rem 2rem; transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo); }
.header.scrolled { background: rgba(6,6,19,0.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 30px rgba(0,0,0,0.4); border-bottom: 1px solid var(--border-subtle); }
.header-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; z-index: 101; flex-shrink: 0; }

/* АВТО-РАЗМЕР ЛОГОТИПА В ШАПКЕ */
.logo-img {
    width: auto;
    height: auto;
    max-width: 85px;
    max-height: 85px;
    border-radius: 16px;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
}

.logo-text { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text-primary); }
.logo-accent { color: var(--accent-cyan); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: all 0.3s var(--ease-out-expo); }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; z-index: 101; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s var(--ease-out-expo); display: block; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.hero { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; padding: 7rem 2rem 5rem; }
.hero-grid { max-width: var(--max-width); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: rgba(139,92,246,0.1); border: 1px solid var(--border-glow); border-radius: 50px; font-size: 0.8rem; font-weight: 500; color: var(--accent-purple); letter-spacing: 0.02em; margin-bottom: 1.5rem; }
.badge-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.gradient-text { background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-violet) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 440px; line-height: 1.55; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; cursor: pointer; border: none; position: relative; overflow: hidden; transition: all 0.35s var(--ease-out-expo); font-family: var(--font-sans); text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-purple) 100%); color: #fff; box-shadow: 0 4px 25px rgba(139,92,246,0.35); }
.btn-primary:hover { box-shadow: 0 8px 40px rgba(139,92,246,0.5); transform: translateY(-2px); }
.btn-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.15) 45%, transparent 55%); transform: translateX(-100%); transition: transform 0.6s; }
.btn-primary:hover .btn-shine { transform: translateX(100%); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; row-gap: 1rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

.hero-console-wrapper { position: relative; }
.console-window { background: #08081a; border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 60px rgba(139,92,246,0.08), 0 20px 60px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.console-glow { position: absolute; inset: -30px; background: radial-gradient(ellipse at center, rgba(139,92,246,0.12) 0%, transparent 70%); border-radius: 50%; z-index: 0; pointer-events: none; animation: consoleGlowPulse 4s infinite alternate; }
@keyframes consoleGlowPulse { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.9; transform: scale(1.05); } }
.console-header { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1.2rem; background: rgba(12,12,36,0.9); border-bottom: 1px solid rgba(255,255,255,0.05); }
.console-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #EF4444; } .dot-yellow { background: #F59E0B; } .dot-green { background: #10B981; }
.console-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); flex: 1; }
.console-status { font-family: var(--font-mono); font-size: 0.65rem; color: var(--success); background: rgba(16,185,129,0.1); padding: 2px 8px; border-radius: 4px; letter-spacing: 0.05em; animation: pulse-dot 3s infinite; }
.console-body { padding: 1.2rem; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; min-height: 300px; max-height: 380px; overflow-y: auto; }
.console-line { white-space: pre-wrap; word-break: break-all; }
.console-prompt { color: var(--accent-cyan); font-weight: 500; }
.console-cmd { color: var(--text-primary); }
.console-output { color: #8892b0; padding-left: 0.3rem; }
.console-success { color: var(--success); }
.console-highlight { color: var(--accent-glow); font-weight: 500; }
.console-status-ready { color: var(--accent-purple); font-weight: 500; }
.console-cursor { color: var(--accent-cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.features-page { padding: 120px 2rem 6rem; position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 0.8rem; padding: 0.3rem 1rem; background: rgba(6,182,212,0.08); border-radius: 50px; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }
.features-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 2.2rem; transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden; backdrop-filter: blur(10px); text-align: center; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-purple), transparent); opacity: 0; transition: opacity 0.4s; }
.feature-card:hover { transform: translateY(-8px); border-color: var(--border-glow); box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 40px rgba(139,92,246,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 56px; height: 56px; margin: 0 auto 1.5rem; color: var(--accent-purple); }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.comparison-section { margin-top: 5rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.comparison-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.comparison-table th, .comparison-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.comparison-table th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.comparison-table td { font-size: 0.95rem; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table .check { color: var(--success); font-weight: bold; }
.comparison-table .cross { color: var(--text-muted); }

.cta-section { position: relative; z-index: 2; padding: 3rem 2rem 6rem; }
.cta-card { max-width: var(--max-width); margin: 0 auto; background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(6,182,212,0.06) 100%); border: 1px solid var(--border-glow); border-radius: var(--radius-lg); padding: 4rem 3rem; text-align: center; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.cta-desc { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-logo-watermark { position: absolute; right: 20px; bottom: 20px; width: 100px; height: 100px; pointer-events: none; opacity: 0.08; }
.cta-logo-watermark img { width: 100%; height: 100%; object-fit: contain; }

.footer { position: relative; z-index: 2; border-top: 1px solid var(--border-subtle); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.6rem; }

/* АВТО-РАЗМЕР ЛОГОТИПА В ПОДВАЛЕ */
.logo-footer-img {
    width: auto;
    height: auto;
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
    border-radius: 12px;
}

.footer-brand-text { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-copy { color: var(--text-muted); font-size: 0.75rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-console-wrapper { max-width: 600px; margin: 0 auto; width: 100%; }
    .hero { padding-top: 6rem; min-height: auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header { padding: 0.9rem 1rem; }
    .nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: rgba(10,10,30,0.97); backdrop-filter: blur(20px); flex-direction: column; padding: 5rem 2rem 2rem; gap: 0.8rem; transition: right 0.4s var(--ease-out-expo); border-left: 1px solid var(--border-subtle); }
    .nav.active { right: 0; }
    .nav-link { font-size: 1rem; padding: 0.7rem 1rem; width: 100%; }
    .mobile-toggle { display: flex; }
    .hero { padding: 5rem 1rem 3rem; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1rem; }
    .stat-value { font-size: 1.3rem; }
    .features-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .cta-card { padding: 2.5rem 1.5rem; }
    .cta-section { padding: 1rem 1rem 3rem; }
    /* Уменьшаем максимальный размер логотипа на мобильных */
    .logo-img { max-width: 60px; max-height: 60px; }
    .logo-footer-img { max-width: 45px; max-height: 45px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; width: 100%; }
    .hero-stats { gap: 0.8rem; }
    .footer-links { gap: 1rem; }
    .console-body { font-size: 0.68rem; padding: 0.8rem; }
}