/* Основные переменные */
:root {
    --primary-color: #6B46C1;
    --secondary-color: #9333EA;
    --accent-color: #F59E0B;
    --bg-dark: #0F0F0F;
    --bg-darker: #0A0A0A;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --card-bg: #1A1A1A;
    --border-color: #2A2A2A;
    --success-color: #10B981;
    --pixel-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Russo One', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Анимированный фон с рунами */
.rune-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom, #0F0F0F 0%, #1A0F2E 100%);
}

.rune-background::before {
    content: 'ᚠᚢᚦᚨᚱᚲᚷᚹᚺᚾᛁᛃᛇᛈᛉᛊᛏᛒᛖᛗᛚᛜᛞᛟ';
    position: absolute;
    font-size: 30px;
    color: rgba(147, 51, 234, 0.1);
    animation: float-runes 20s linear infinite;
    white-space: pre;
    width: 200%;
}

@keyframes float-runes {
    0% {
        transform: translateX(0) translateY(-100%);
    }
    100% {
        transform: translateX(-50%) translateY(100vh);
    }
}

/* Навигация */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0 var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    padding: 5px 10px;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Главная секция */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Glitch эффект для заголовка */
.glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 4rem;
    color: var(--text-primary);
    position: relative;
    text-shadow: 
        3px 3px 0 var(--primary-color),
        6px 6px 0 var(--secondary-color);
    animation: glitch-animation 2s infinite;
    margin-bottom: 1rem;
}

@keyframes glitch-animation {
    0%, 100% {
        text-shadow: 
            3px 3px 0 var(--primary-color),
            6px 6px 0 var(--secondary-color);
    }
    25% {
        text-shadow: 
            -3px 3px 0 var(--accent-color),
            6px -6px 0 var(--secondary-color);
    }
    50% {
        text-shadow: 
            3px -3px 0 var(--primary-color),
            -6px 6px 0 var(--accent-color);
    }
    75% {
        text-shadow: 
            -3px -3px 0 var(--secondary-color),
            -6px -6px 0 var(--primary-color);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Информация о сервере */
.server-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-box {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    padding: 1rem 2rem;
    box-shadow: var(--pixel-shadow);
    position: relative;
    transition: all 0.3s;
}

.info-box:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 0 rgba(0,0,0,0.5);
}

.info-box .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.info-box .value {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Статус онлайн */
.online-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px var(--success-color);
    }
    50% {
        box-shadow: 0 0 20px var(--success-color), 0 0 30px var(--success-color);
    }
    100% {
        box-shadow: 0 0 10px var(--success-color);
    }
}

/* Плавающие руны */
.floating-runes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.rune {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: float 10s infinite ease-in-out;
}

.rune:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.rune:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.rune:nth-child(3) { bottom: 30%; left: 5%; animation-delay: 2s; }
.rune:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 3s; }
.rune:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }
.rune:nth-child(6) { top: 60%; right: 30%; animation-delay: 5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Пиксельные кнопки */
.pixel-btn {
    font-family: 'Press Start 2P', cursive;
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    padding: 15px 30px;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--pixel-shadow);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pixel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.5);
    background: var(--secondary-color);
}

.pixel-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.pixel-btn.large-btn {
    padding: 20px 40px;
    font-size: 1rem;
}

/* Секции */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0 var(--primary-color);
}

/* Секция скачивания */
.download-section {
    background: var(--bg-darker);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card, .instructions-card {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--pixel-shadow);
    transition: all 0.3s;
}

.download-card:hover, .instructions-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3, .instructions-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.version-info {
    background: var(--bg-dark);
    padding: 10px;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-color);
}

.download-btn {
    background: var(--success-color);
    margin-top: 1rem;
    width: 100%;
}

.download-btn:hover {
    background: #059669;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.pixel-list {
    list-style: none;
    counter-reset: pixel-counter;
}

.pixel-list li {
    counter-increment: pixel-counter;
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.pixel-list li::before {
    content: counter(pixel-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

/* Секция присоединения */
.join-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1A0F2E 100%);
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-primary);
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--pixel-shadow);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100%;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: -1;
}

.step:last-child .step-number::after {
    display: none;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.step code {
    background: var(--card-bg);
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

/* Секция доната */
.donate-section {
    background: var(--bg-dark);
}

.donate-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.donate-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.benefits-list li:hover {
    color: var(--text-primary);
}

.donate-button-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.donate-main-btn {
    background: var(--accent-color);
    font-size: 1.2rem;
    padding: 25px 50px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.donate-main-btn:hover {
    background: #DC2626;
    transform: translateY(-4px);
    box-shadow: 0 8px 0 rgba(0,0,0,0.5);
}

.donate-main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.donate-main-btn:hover::before {
    left: 100%;
}

.donate-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Футер */
.footer {
    background: var(--bg-darker);
    border-top: 3px solid var(--primary-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--pixel-shadow);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.5);
}

.social-link.discord:hover {
    border-color: #5865F2;
    background: #5865F2;
}

.social-link.vk:hover {
    border-color: #0077FF;
    background: #0077FF;
}

.social-link.telegram:hover {
    border-color: #26A5E4;
    background: #26A5E4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border: 3px solid var(--primary-color);
    width: 80%;
    max-width: 500px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.5);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent-color);
}

#modal-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .donate-simple {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .join-steps {
        grid-template-columns: 1fr;
    }
    
    .step-number::after {
        display: none;
    }
    
    .server-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-box {
        width: 100%;
        max-width: 300px;
    }
    
    .donate-main-btn {
        padding: 20px 40px;
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
} 