/* Основные стили и сброс */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #0a0a0a; /* Темно-серый */
    --accent-color: #cccccc; /* Серебристый */
    --accent-hover: #999999; /* Темно-серый */
    --text-color: #cccccc; /* Светло-серый */
    --text-secondary: #808080; /* Серый */
    --background: #050505; /* Почти черный */
    --dark-bg: #030303; /* Чёрный */
    --gradient-1: rgba(20, 20, 20, 0.7);
    --gradient-2: rgba(15, 15, 15, 0.6);
    --gradient-3: rgba(25, 25, 25, 0.5);
    --highlight: rgba(40, 40, 40, 0.3);
    --wave-color-light: rgba(30, 30, 30, 0.6);
    --wave-color-dark: rgba(15, 15, 15, 0.7);
    --line-color: rgba(150, 150, 150, 0.6);
    --primary-accent: #aaaaaa; /* Серый акцент */
    --secondary-accent: #777777; /* Тёмно-серый акцент */
    --hover-color: #666666;
    --discord-color: #5865F2; /* Цвет Discord */
    --discord-hover: #4752c4; /* Цвет Discord при наведении */
    --card-border: rgba(50, 50, 50, 0.1);
    --neon-glow: 0 0 10px rgba(150, 150, 150, 0.4);
    --scrollbar-track: #040404;
    --scrollbar-thumb: #1a1a1a;
    --scrollbar-thumb-hover: #252525;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

ul {
    list-style: none;
}

/* Анимации появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Заголовки секций с анимацией */
.section-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Герой-секция */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    padding: 0 1rem 0 5rem; /* Увеличен отступ слева для сдвига контента */
    margin: 0 auto 0 0; /* Убран центральный margin-auto и установлен margin-left: 0 */
    position: relative;
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(150, 150, 150, 0.4);
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 60%;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.download-btn, .discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.download-btn {
    background-color: var(--primary-accent);
    color: var(--background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.discord-btn {
    background-color: var(--primary-accent); /* Изменен цвет на такой же, как у download-btn */
    color: var(--background); /* Изменен цвет текста */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.download-btn:hover {
    background-color: var(--secondary-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    color: var(--text-color);
}

.discord-btn:hover {
    background-color: var(--secondary-accent); /* Изменен цвет при наведении */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    color: var(--text-color); /* Добавлен цвет текста при наведении */
}

.download-btn i, .discord-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i, .discord-btn:hover i {
    transform: translateY(-2px);
}

/* Фоновая анимация */
.hero-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(145deg, var(--dark-bg), var(--background));
}

.animated-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Блоки градиента */
.gradient-block {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    mix-blend-mode: soft-light;
    transform-origin: center;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--gradient-1), transparent 70%);
    top: 10%;
    left: 60%;
    animation: moveBlock1 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.block-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--gradient-2), transparent 70%);
    top: 60%;
    left: 30%;
    animation: moveBlock2 22s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.block-3 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--gradient-3), transparent 70%);
    top: 40%;
    left: 10%;
    animation: moveBlock3 28s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.block-4 {
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, var(--highlight), transparent 70%);
    top: 15%;
    left: 15%;
    animation: moveBlock4 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

/* Линейные градиенты на фоне */
.line-gradient {
    position: absolute;
    opacity: 0;
    transform-origin: center;
    filter: blur(20px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-1 {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    top: 25%;
    left: 10%;
    animation: moveLine1 18s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.line-2 {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    top: 65%;
    left: 20%;
    animation: moveLine2 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.line-3 {
    width: 70%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    top: 45%;
    left: 15%;
    animation: moveLine3 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

/* Секция функций */
.features {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--secondary-color);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 220px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Задержка анимации для карточек */
.feature-card:nth-child(1) { animation-delay: 0.3s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.6s; }
.feature-card:nth-child(5) { animation-delay: 0.7s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-accent);
    background: rgba(150, 150, 150, 0.08);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-icon img {
    width: 30px;
    height: 30px;
    filter: invert(80%);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon img {
    filter: invert(100%);
}

.feature-card:hover .feature-icon {
    color: var(--background);
    background: var(--primary-accent);
    transform: scale(1.1);
    box-shadow: var(--neon-glow);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.feature-card:hover h3::after {
    width: 50%;
}

.feature-card p {
    font-size: 0.9rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Секция FAQ */
.faq {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.faq h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-accent);
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Задержка анимации для FAQ */
.faq-item:nth-child(1) { animation-delay: 0.3s; }
.faq-item:nth-child(2) { animation-delay: 0.4s; }
.faq-item:nth-child(3) { animation-delay: 0.5s; }
.faq-item:nth-child(4) { animation-delay: 0.6s; }

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    color: var(--primary-accent);
    background: rgba(150, 150, 150, 0.08);
    width: 30px;
    height: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.faq-icon img {
    width: 15px;
    height: 15px;
    filter: invert(80%);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    background: var(--primary-accent);
    transform: scale(1.1);
}

.faq-item:hover .faq-icon img {
    filter: invert(5%);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Подвал */
footer {
    background-color: var(--primary-color);
    padding: 2rem;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer .logo {
    margin-bottom: 0;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: invert(80%);
    transition: all 0.3s ease;
}

.social-icons a:hover img {
    filter: invert(5%);
}

.footer-text {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Адаптивный дизайн */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .animated-shape {
        width: 600px;
        height: 600px;
    }
    
    .footer-content {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-text {
        text-align: center;
        width: 100%;
        order: 3; /* Текст внизу на мобильных */
    }
    
    .hero p {
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero h1 {
        text-align: center;
        font-size: 3rem;
    }
    
    .hero p {
        text-align: center;
        font-size: 1rem;
    }
    
    .hero-bg {
        opacity: 1;
    }
    
    .animated-shape {
        width: 100vw;
        height: 100vh;
        right: 0;
    }
    
    .features, .faq {
        padding: 4rem 1rem;
    }
    
    .features h2, .faq h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .animated-shape {
        width: 100vw;
        height: 100vh;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Обеспечиваем видимость контента поверх фона */
.hero, .features, .faq, footer {
    position: relative;
    z-index: 1;
}

/* Анимации для блоков */
@keyframes moveBlock1 {
    0% { opacity: 0; transform: translateY(10%) scale(0.9); }
    100% { opacity: 0.4; transform: translateY(-12%) scale(0.95); }
}

@keyframes moveBlock2 {
    0% { opacity: 0; transform: translateX(-5%) scale(0.9); }
    100% { opacity: 0.3; transform: translateX(10%) scale(0.95); }
}

@keyframes moveBlock3 {
    0% { opacity: 0; transform: translateY(-8%) translateX(3%) scale(0.9); }
    100% { opacity: 0.4; transform: translateY(5%) translateX(-6%) scale(1); }
}

@keyframes moveBlock4 {
    0% { opacity: 0; transform: translateY(5%) translateX(-3%) scale(0.8); }
    100% { opacity: 0.3; transform: translateY(-5%) translateX(6%) scale(1); }
}

/* Анимации для линий */
@keyframes moveLine1 {
    0% { opacity: 0; transform: scaleX(0.8) translateY(10px); }
    100% { opacity: 0.4; transform: scaleX(1.1) translateY(-5px); }
}

@keyframes moveLine2 {
    0% { opacity: 0; transform: scaleX(0.9) translateY(-10px); }
    100% { opacity: 0.3; transform: scaleX(1.2) translateY(5px); }
}

@keyframes moveLine3 {
    0% { opacity: 0; transform: scaleX(0.8) translateY(0px) rotate(-0.5deg); }
    100% { opacity: 0.3; transform: scaleX(1.2) translateY(0px) rotate(0.5deg); }
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.button-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0);
    transition: transform 0.3s ease;
}

.download-btn:hover .button-icon img,
.discord-btn:hover .button-icon img {
    transform: translateY(-2px);
    filter: brightness(1);
}