:root {
    --gradient-color: linear-gradient(330deg, #00d4ff 0%, #0099ff 100%);
    --gradient-hover-color: linear-gradient(330deg, #00bfea 0%, #0088ee 100%);
    --gradient-focus-color: linear-gradient(330deg, #00aad4 0%, #0077dd 100%);
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --bg-color: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --accent-color: #00d4ff;
    --accent-secondary: #0099ff;
    
    /* Дополнительные переменные для совместимости */
    --bg-primary: #0a0e27;
    --text-primary: #ffffff;
    --card-bg: #1a1f3a;
    --primary-color: #00d4ff;
    --secondary-color: #0099ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #050510;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Красивый анимированный градиентный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #0a0e27 0%, 
        #1a1f4a 15%,
        #0d1535 30%,
        #1e2555 45%,
        #0a0e27 60%,
        #151a40 75%,
        #0d1230 90%,
        #0a0e27 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
    z-index: -3;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 100%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Светящиеся волны */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: wavesMove 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes wavesMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 70% 20%;
        opacity: 1;
    }
    25% {
        background-position: 50% 30%, 80% 70%, 30% 70%, 90% 40%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%, 50% 50%, 70% 30%, 60% 80%;
        opacity: 1;
    }
    75% {
        background-position: 70% 80%, 30% 30%, 90% 60%, 40% 50%;
        opacity: 0.9;
    }
}

/* Плавающие светящиеся частицы */
.particles-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particles-layer::before,
.particles-layer::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

.particles-layer::before {
    background-image: 
        radial-gradient(circle, rgba(0, 212, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(138, 43, 226, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 255, 136, 0.3) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 100px 100px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: particlesFloat 25s linear infinite;
}

.particles-layer::after {
    background-image: 
        radial-gradient(circle, rgba(0, 153, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle, rgba(0, 212, 255, 0.2) 1px, transparent 1px);
    background-size: 120px 120px, 70px 70px;
    background-position: 50px 50px, 180px 180px;
    animation: particlesFloat 30s linear infinite reverse;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Кастомный курсор - максимально быстрый */
.custom-cursor {
    position: fixed;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    /* БЕЗ transition для мгновенного отклика */
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.9);
    border-radius: 50%;
}

.custom-cursor.hover {
    border-color: rgba(0, 255, 136, 0.9);
    border-width: 3px;
}

.custom-cursor.hover::before {
    background: rgba(0, 255, 136, 0.9);
}

.custom-cursor.click {
    border-width: 1px;
}

.cursor-trail {
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    will-change: opacity;
    transition: opacity 0.3s ease-out;
}

/* Скрываем стандартный курсор */
* {
    cursor: none !important;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.language-switch {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.language-switch:hover {
    background: var(--gradient-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.language-switch:hover .language-dropdown {
    max-height: 200px;
}

.language-option {
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
}

.language-option:hover {
    background: rgba(0, 212, 255, 0.2);
}

.support-btn {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-btn:hover {
    color: #00d4ff;
}

.auth-btn {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-color);
    border: none;
    border-radius: 25px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-btn:hover {
    background: var(--gradient-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--gradient-color);
    border: none;
    border-radius: 30px;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gradient-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.features {
    margin: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: var(--gradient-color);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(even) {
    transform: rotate(2deg);
}

.stat-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

footer {
    background: var(--bg-secondary);
    margin-top: 4rem;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #00d4ff;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00d4ff;
}

.footer-text {
    color: var(--text-secondary);
}

.footer-email {
    display: inline;
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    header {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================== */

/* Скрываем кастомный курсор на мобильных устройствах */
@media (max-width: 768px) {
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
}

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    header {
        padding: 1rem;
    }
    
    nav {
        padding: 0;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    /* Хедер */
    header {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(26, 31, 58, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a,
    .nav-links button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .nav-links a:hover,
    .nav-links button:hover {
        background: rgba(0, 212, 255, 0.2);
    }
    
    /* Кнопка меню */
    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: #00d4ff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    /* Основной контент */
    main {
        margin-top: 60px;
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Сетка функций */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Языковой переключатель */
    .language-switch {
        padding: 0.5rem;
    }
    
    .language-dropdown {
        left: 0;
        right: auto;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Адаптация для touch устройств */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем размеры кликабельных элементов */
    .auth-btn,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .support-btn {
        padding: 0.75rem;
    }
    
    /* Убираем hover эффекты */
    .feature-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    /* Добавляем active состояния */
    .btn-primary:active {
        transform: scale(0.95);
    }
    
    .btn-secondary:active {
        transform: scale(0.95);
    }
}
