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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --bg: #0a0a1a;
    --bg-2: #12122a;
    --card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #8b8ba7;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --glow: 0 0 40px rgba(102, 126, 234, 0.4);
}

html { scroll-behavior: smooth; }

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

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

.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    from { transform: translateY(100vh) translateX(0); }
    to { transform: translateY(-100vh) translateX(100px); }
}

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

.section-header { text-align: center; margin-bottom: 5rem; }
.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}
.section-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.05rem; }
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.6);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.25rem 0;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s;
}
.navbar.scrolled { padding: 0.75rem 0; background: rgba(10, 10, 26, 0.95); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary));
}
.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.logo-main { color: white; }
.logo-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-sub { color: var(--text-dim); font-size: 0.9rem; margin-left: 2px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: white; }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.server-ip-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.server-ip-box:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}
.copy-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s;
}
.copy-btn:hover { color: var(--primary); transform: scale(1.2); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.2) 0%, transparent 70%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 1000px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #4caf50;
}
.pulse-dot {
    width: 10px; height: 10px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 2rem;
}
.title-line {
    display: block;
    font-size: 0.4em;
    color: var(--text-dim);
    letter-spacing: 8px;
    margin-bottom: 1rem;
}
.title-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
}
.title-mc { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.hero-subtitle strong { color: white; }

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.live-stats-mini {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}
.stat-item i { color: var(--primary); }
.stat-item strong { color: white; margin-right: 3px; }

.gamemodes {
    padding: 8rem 0;
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}
.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.gamemode-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
}
.gamemode-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.gamemode-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}
.gamemode-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
}
.gamemode-card.featured .gamemode-image { height: 100%; min-height: 400px; }
.gamemode-content { padding: 2rem; }
.gamemode-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.gamemode-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.gamemode-features { list-style: none; }
.gamemode-features li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.gamemode-features i { color: #4caf50; }

.features { padding: 8rem 0; position: relative; z-index: 1; }
.features-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}
.feature-icon {
    width: 50px; height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}
.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.feature-item p { color: var(--text-dim); font-size: 0.95rem; }

.faq {
    padding: 8rem 0;
    background: var(--bg-2);
    position: relative;
    z-index: 1;
}
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--glow);
}
.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}
.faq-question:hover { background: rgba(102, 126, 234, 0.05); }
.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}
.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
    margin-left: 1rem;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.discord-cta { padding: 8rem 0; position: relative; z-index: 1; }
.discord-box {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.1), rgba(91, 110, 174, 0.05));
    border: 1px solid rgba(114, 137, 218, 0.3);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}
.discord-bg {
    position: absolute;
    top: -50px; right: -50px;
    font-size: 20rem;
    color: rgba(114, 137, 218, 0.1);
    z-index: 0;
}
.discord-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}
.discord-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.discord-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.15rem;
}
.btn-discord {
    background: #7289DA;
    color: white;
    padding: 1.25rem 2.5rem;
    box-shadow: 0 0 40px rgba(114, 137, 218, 0.4);
}
.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(114, 137, 218, 0.6);
}

.footer {
    background: var(--bg-2);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-dim);
    margin: 1.5rem 0;
    line-height: 1.7;
}
.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .gamemode-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
    .gamemode-card.featured .gamemode-image { min-height: 200px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: var(--bg-2);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }
    .server-ip-box span { display: none; }
    .hero-title { font-size: 3rem; letter-spacing: -1px; }
    .title-line { font-size: 0.5em; letter-spacing: 4px; }
    .footer-main { grid-template-columns: 1fr; }
}