/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И СБРОС СТИЛЕЙ
   ========================================================================== */
:root {
    --bg-color: #0b0b0e;
    --card-bg: rgba(22, 22, 29, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-orange: #FF6900;
    --orange-glow: rgba(255, 105, 0, 0.4);
    --text-main: #FFFFFF;
    --text-muted: #8E8E93;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ==========================================================================
   2. ФОНОВЫЕ И ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ
   ========================================================================== */
/* Кастомное свечение за курсором */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    background: radial-gradient(circle, var(--orange-glow) 0%, rgba(255, 105, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: transform 0.1s ease-out;
    border-radius: 50%;
}

/* Фоновая технологическая сетка */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Стеклянные панели Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary-orange);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* Кнопка */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 105, 0, 0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 105, 0, 0.7);
}

/* ==========================================================================
   3. НАВИГАЦИЯ
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 11, 14, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 14px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-mi {
    background: var(--primary-orange);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.logo-text {
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* ==========================================================================
   4. HERO-БЛОК
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary-orange);
    margin: 16px 0;
    font-weight: 500;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 36px;
}

/* Визуальный 3D объект в Hero */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sphere {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.inner-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.6;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 105, 0, 0.3);
    animation: spin 20s linear infinite;
}

.ring-1 { width: 340px; height: 340px; border-dasharray: 10 20; }
.ring-2 { width: 420px; height: 420px; border-color: rgba(255, 255, 255, 0.1); animation-duration: 35s; animation-direction: reverse; }

/* ==========================================================================
   5. О КОМПАНИИ & СТАТИСТИКА
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    padding: 40px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-orange);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   6. ЭКОСИСТЕМА
   ========================================================================== */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.eco-card {
    padding: 36px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.eco-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
    opacity: 0;
    transition: var(--transition);
}

.eco-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 105, 0, 0.4);
    box-shadow: 0 12px 40px rgba(255, 105, 0, 0.15);
}

.eco-card:hover::before {
    opacity: 1;
}

.eco-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.eco-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.eco-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.eco-more {
    font-size: 0.85rem;
    color: var(--primary-orange);
    font-weight: 600;
}

/* ==========================================================================
   7. ЛЕГЕНДАРНЫЕ ПРОДУКТЫ
   ========================================================================== */
.products-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
}

.product-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* SVG / CSS заглушки для продуктов */
.product-mockup {
    width: 120px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    background: linear-gradient(145deg, #1e1e24, #0f0f12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.product-card:hover .product-mockup {
    transform: scale(1.05);
    border-color: var(--primary-orange);
}

.smartphone-mockup .camera-module {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a35;
    margin: 15px auto;
    border: 1px solid rgba(255,255,255,0.1);
}

.car-mockup {
    width: 200px;
    height: 90px;
    border-radius: 40px 40px 10px 10px;
}

.car-mockup .headlights {
    position: absolute;
    bottom: 20px;
    left: 10px; right: 10px;
    height: 4px;
    background: var(--primary-orange);
    box-shadow: 0 0 10px var(--primary-orange);
}

.robot-mockup {
    width: 100px;
    height: 160px;
    border-radius: 50px 50px 20px 20px;
}

.robot-mockup .robot-eye {
    width: 60px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 4px;
    margin: 30px auto;
    box-shadow: 0 0 12px var(--primary-orange);
}

.product-cat {
    color: var(--primary-orange);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 6px 0 12px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-specs {
    list-style: none;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
}

.product-specs li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.product-specs li span {
    color: #fff;
    font-weight: 500;
}

/* ==========================================================================
   8. HYPEROS ИНТЕРАКТИВНАЯ СХЕМА
   ========================================================================== */
.hyperos-box {
    padding: 60px 40px;
    text-align: center;
}

.hyperos-slogan {
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-family: var(--font-heading);
    margin: 10px 0;
}

.hyperos-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.hyperos-network {
    position: relative;
    height: 350px;
    max-width: 800px;
    margin: 0 auto;
}

.network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.net-line {
    stroke: rgba(255, 105, 0, 0.3);
    stroke-width: 2;
    stroke-dasharray: 6;
    animation: dash 30s linear infinite;
}

.net-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid var(--card-border);
    padding: 16px 24px;
    border-radius: 16px;
    transition: var(--transition);
}

.net-node:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 25px var(--orange-glow);
}

.node-center { top: 50%; left: 50%; border-color: var(--primary-orange); }
.node-1 { top: 25%; left: 22%; }
.node-2 { top: 25%; left: 78%; }
.node-3 { top: 75%; left: 22%; }
.node-4 { top: 75%; left: 78%; }

.glow-text {
    text-shadow: 0 0 20px var(--orange-glow);
}

/* ==========================================================================
   9. ИННОВАЦИИ & СЕГОДНЯ
   ========================================================================== */
.innovations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.inno-card {
    padding: 32px 24px;
}

.inno-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.inno-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.inno-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.today-banner {
    padding: 80px 40px;
    text-align: center;
}

.today-quote {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 20px 0;
    background: linear-gradient(90deg, #fff, var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.today-banner p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ==========================================================================
   10. ФУТЕР
   ========================================================================== */
.footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.footer-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.scroll-top-btn {
    margin-bottom: 80px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   11. АНИМАЦИИ КЛЮЧЕВЫХ КАДРОВ
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

/* ==========================================================================
   12. АДАПТИВНОСТЬ (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
    .products-slider, .ecosystem-grid, .innovations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    .hero-content { margin-bottom: 40px; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.4rem; }
    
    .about-grid, .products-slider, .ecosystem-grid, .innovations-grid {
        grid-template-columns: 1fr;
    }
    
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 11, 14, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-menu.active { right: 0; }
    
    .today-quote { font-size: 2rem; }
    .footer-title { font-size: 2.5rem; }
    
    .hyperos-network { height: 450px; }
    .net-node { position: relative; top: auto !important; left: auto !important; transform: none; margin: 10px auto; }
    .network-lines { display: none; }
    
    .cursor-glow { display: none; } /* Отключаем свечение на тачскринах */
}

/* Accessibility: уменьшение движения */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}