/* Глобальные стили */
:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff3366;
    --dark: #121212;
    --dark-light: #1e1e1e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--primary), var(--accent));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 5px 15px rgba(106, 17, 203, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    white-space: nowrap;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Навигация */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.discord-btn {
    background-color: #5865F2;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--dark-light);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav-link {
    color: var(--light);
    text-decoration: none;
    padding: 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Герой секция */
.hero {
    height: 100vh;
    min-height: 700px;
    background: 
        linear-gradient(135deg, 
            rgba(15, 12, 41, 0.95), 
            rgba(48, 43, 99, 0.9),
            rgba(36, 36, 62, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 17, 203, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 117, 252, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 51, 102, 0.1) 0%, transparent 50%);
    animation: float 20s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Секция возможностей */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--dark-light);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--gray);
}

/* Секция загрузок */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    background-color: var(--dark-light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.download-header {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-icons {
    display: flex;
    gap: 10px;
}

.download-header i {
    font-size: 2rem;
}

.download-header i.fa-windows {
    color: #0078d7;
}

.download-header i.fa-linux {
    color: #f1502f;
}

.download-header i.fa-android {
    color: #3ddc84;
}

.download-header i.fa-apple {
    color: #a2aaad;
}

.download-header h3 {
    font-size: 1.8rem;
    color: white;
}

.download-body {
    padding: 25px;
    flex-grow: 1;
}

.download-body p {
    color: var(--gray);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
}

.features-list i {
    color: var(--success);
    font-size: 0.9rem;
}

.download-footer {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.download-btn {
    width: 100%;
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: var(--radius-sm);
}

.pc-download-btn {
    background: var(--gradient);
}

.mobile-download-btn {
    background: var(--gradient-accent);
}

.version-info {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ios-notice {
    color: var(--warning);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.instructions {
    margin-top: 60px;
    background-color: var(--dark-light);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instructions h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.5rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(106, 17, 203, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.step p {
    color: #ddd;
}

/* Секция Discord */
.discord-section {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
    border-radius: var(--radius);
    border: 1px solid rgba(88, 101, 242, 0.1);
    padding: 60px;
}

.discord-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.discord-content {
    flex: 1;
    min-width: 300px;
}

.discord-content h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #5865F2;
    font-size: 2rem;
}

.discord-content p {
    color: #ddd;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.discord-join-btn {
    background-color: #5865F2;
    color: white;
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 16px 32px;
}

.discord-join-btn:hover {
    background-color: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.discord-widget {
    background-color: var(--dark-light);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 250px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: var(--shadow);
}

.widget-header {
    background-color: #5865F2;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.widget-body {
    padding: 30px 25px;
    text-align: center;
}

.online-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ddd;
}

.online-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.member-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #ddd;
}

.member-count i {
    color: #5865F2;
}

/* Футер */
.footer {
    background-color: #0a0a0a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
}

.footer-logo div h3 {
    margin-bottom: 5px;
}

.footer-logo div p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--dark-light);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p i {
    color: var(--primary);
}

.copyright {
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.4;
}

/* Анимации для появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .discord-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero {
        min-height: 600px;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .discord-container {
        flex-direction: column;
        text-align: center;
    }
    
    .discord-content h2 {
        justify-content: center;
    }
    
    .section-title::after {
        width: 80px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .download-header h3 {
        font-size: 1.5rem;
    }
    
    .instructions {
        padding: 25px;
    }
    
    .discord-section {
        padding: 30px 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 400px) {
    .logo-main {
        font-size: 1.4rem;
    }
    
    .logo-sub {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}