/* ===== УЛУЧШЕННЫЕ АНИМАЦИИ - ЧИТАЕМЫЕ И МЯГКИЕ ===== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Мягкий Pulse для элементов интерфейса */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Count Up Animation для статистики */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* УБРАНА агрессивная glow анимация */
/* Теперь используем мягкое свечение только для цвета */
@keyframes softGlow {
    0%, 100% {
        color: var(--primary);
    }
    50% {
        color: var(--primary-light);
    }
}

/* Улучшенная анимация статистики - БЕЗ text-shadow */
#stats .advantage-title {
    animation: countUp 0.8s ease-out, softGlow 3s infinite;
}

#stats .advantage-card:nth-child(1) .advantage-title { animation-delay: 0.1s; }
#stats .advantage-card:nth-child(2) .advantage-title { animation-delay: 0.2s; }
#stats .advantage-card:nth-child(3) .advantage-title { animation-delay: 0.3s; }
#stats .advantage-card:nth-child(4) .advantage-title { animation-delay: 0.4s; }

/* Мягкая анимация движения */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(100vw) translateY(-10px);
    }
}

/* Checkmark Pop Animation */
@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Мягкие классы pulse */
.radar-effect,
.orbit-effect {
    animation: pulse 3s infinite;
}

.status-dot {
    animation: pulse 2s infinite;
}

/* Анимированные линии */
.animated-line {
    animation: gentleFloat 20s ease-in-out infinite;
}

/* Мягкие Hover эффекты для изображений */
.image-wrapper:hover .section-image {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* Деликатный Button Shine Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

/* ИСПРАВЛЕННЫЕ Card Hover Effects - соответствуют улучшенной системе */
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(9, 175, 244, 0.15);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(9, 175, 244, 0.2);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(9, 175, 244, 0.15);
}

.earning-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.tier-card:hover:not(.disabled) {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.allocation-item:hover {
    transform: translateX(6px);
    transition: transform 0.3s ease;
}

/* Мягкие Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.btn-outline:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Trust Content Hover - соответствует улучшенной системе */
.trust-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(9, 175, 244, 0.3);
}

/* Мягкие Scale Effects */
.advantage-card::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

/* Деликатные Opacity Effects */
.advantage-card::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover::after {
    opacity: 0.7;
}

.testimonial-card::before {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 0.6;
}

/* Navigation Link Animation */
.nav-link::after {
    width: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Мягкая Icon Rotation */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Улучшенные Modal Animations */
.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.language-modal.show .modal-content,
.wallet-modal.show .wallet-modal-content {
    transform: scale(1);
}

.wallet-modal-content {
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.wallet-modal.show .wallet-modal-content {
    transform: scale(1) translateY(0);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ МЯГКИЕ АНИМАЦИИ ===== */

/* Мягкое появление элементов */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Мягкий slideInLeft */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Мягкий slideInRight */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Мягкое bounceIn */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

/* Мягкое вращение для иконок загрузки */
@keyframes gentleSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: gentleSpin 1s linear infinite;
}

/* Мягкий эффект печатания для заголовков */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: typewriter 2s steps(30) forwards, blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% {
        border-color: var(--primary);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ===== СТИЛИ ДЛЯ ACCESSIBILITY ===== */

/* Отключение анимаций для пользователей с предпочтением уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ПРОИЗВОДИТЕЛЬНОСТЬ ===== */

/* Используем transform и opacity для лучшей производительности */
.performance-optimized {
    will-change: transform, opacity;
}

/* Удаляем will-change после анимации */
.performance-optimized:hover {
    will-change: auto;
}