/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #181825;
    --bg-card-hover: #22223a;
    --border-color: #2a2a3e;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    --accent: #d62828;
    --accent-glow: rgba(214, 40, 40, 0.4);
    --accent-secondary: #ff6b35;
    --gold: #f5c518;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b71c1c;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BACKGROUND PARTICLES ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== GLOW ORB ===== */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}
.glow-orb--1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    background: var(--accent);
}
.glow-orb--2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: var(--accent-secondary);
    opacity: 0.2;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(42, 42, 62, 0.5);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 24px var(--accent-glow);
}

.logo span {
    color: var(--accent);
}

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

.nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
}

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

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

.nav a:hover::after {
    width: 100%;
}

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

.nav a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px var(--accent-glow);
    background: #b71c1c;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.hero-content h1 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-content h1 .highlight {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-content .tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-content .subtag {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-badge i {
    color: var(--accent);
    font-size: 1.1rem;
}

.hero-badge:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(214, 40, 40, 0.15);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--accent-glow);
    background: #b71c1c;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(214, 40, 40, 0.1);
    transform: translateY(-3px);
}

.btn-download {
    background: #2a2a3e;
    color: #fff;
    border: 1px solid var(--border-color);
}
.btn-download:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-play {
    background: #4caf50;
    color: #fff;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
    font-size: 1.2rem;
    padding: 16px 48px;
}
.btn-play:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(76, 175, 80, 0.5);
    background: #43a047;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.server-ip-display {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.server-ip-display:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.server-ip-display i {
    color: var(--accent);
    font-size: 1.1rem;
}

.server-ip-display .ip {
    color: var(--text-primary);
}

.server-ip-display .copy-tip {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

/* ===== SECTION COMMON ===== */
section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.section-header h2 .highlight {
    color: var(--accent);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 8px auto 0;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 4px;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== FEATURES ===== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(214, 40, 40, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: rgba(214, 40, 40, 0.25);
    box-shadow: 0 0 30px var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== NEWS ===== */
.news {
    background: var(--bg-primary);
}

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

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.news-card .news-body {
    padding: 20px 24px 24px;
}

.news-card .news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.news-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== DOWNLOAD ===== */
.download {
    background: var(--bg-secondary);
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.download-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-card h3 i {
    color: var(--accent);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex: 1;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.download-buttons .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 140px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 32px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content .subtag {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-badges {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        min-height: 300px;
        order: -1;
    }
    .download-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 40px;
        border-left: 1px solid var(--border-color);
        transition: var(--transition);
        gap: 20px;
        align-items: flex-start;
    }

    .nav.open {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .server-ip-display {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        min-height: 250px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .download-buttons .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-image {
        min-height: 200px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    .hero-content h1 {
        font-size: 5rem;
    }
    .hero-content .tagline {
        font-size: 1.8rem;
    }
    .hero-content .subtag {
        font-size: 1.4rem;
        max-width: 600px;
    }
    .hero-image {
        min-height: 600px;
    }
    .section-header h2 {
        font-size: 3.2rem;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 14px 24px;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--accent);
    font-size: 1.2rem;
}