/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #ff0080;
    --neon-pink: #ff0066;
    --neon-purple: #cc00ff;
    --dark-bg: #0a0a0f;
    --dark-surface: #14141f;
    --dark-elevated: #1e1e2f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c8;
    --spacing-unit: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

/* === ANIMATED BACKGROUND === */
.glitch-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #000000 100%);
    z-index: -1;
    overflow: hidden;
}

.glitch-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 157, 0.03) 2px,
        rgba(255, 0, 140, 0.03) 4px
    );
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(50%); }
}

/* === NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 106, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
    position: relative;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-pink);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-pink));
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: 6px;
    font-weight: 700;
    color: var(--dark-bg) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-pink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: calc(var(--spacing-unit) * 10);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 calc(var(--spacing-unit) * 3);
}

.glitch-text {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    color: var(--neon-pink);
    text-shadow:
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 40px var(--neon-pink);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.hero-tagline {
    font-size: clamp(18px, 3vw, 28px);
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 5);
    font-weight: 300;
    letter-spacing: 2px;
}

.server-ip-display {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    background: var(--dark-elevated);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 128, 0.3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    transition: all 0.3s ease;
}

.server-ip-display:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
}

.ip-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.ip-address {
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    padding: calc(var(--spacing-unit));
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background: rgba(255, 0, 140, 0.1);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.cta-button {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    color: var(--dark-bg);
    font-size: 18px;
    font-weight: 700;
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 106, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.player-count {
    margin-top: calc(var(--spacing-unit) * 4);
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    font-size: 16px;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

#playerCounter {
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* === ABOUT SECTION === */
.about-section {
    padding: calc(var(--spacing-unit) * 15) 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 8);
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    margin: calc(var(--spacing-unit) * 2) auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.about-stats {
    display: grid;
    gap: calc(var(--spacing-unit) * 3);
}

.stat-card {
    background: var(--dark-elevated);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 106, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(255, 0, 119, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: calc(var(--spacing-unit));
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === FEATURES SECTION === */
.features-section {
    padding: calc(var(--spacing-unit) * 15) 0;
    background: var(--dark-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.feature-card {
    background: var(--dark-elevated);
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 106, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 119, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--neon-cyan);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: calc(var(--spacing-unit)) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: calc(var(--spacing-unit) * 3);
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: 700;
}

/* === ACTIONS SECTION === */
.actions-section {
    padding: calc(var(--spacing-unit) * 15) 0;
    background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.action-card {
    background: var(--dark-elevated);
    padding: calc(var(--spacing-unit) * 5);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid rgba(255, 0, 98, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.action-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 119, 0.3);
}

.action-icon {
    color: var(--neon-cyan);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.action-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit));
    color: var(--neon-cyan);
}

.action-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* === FAQ SECTION === */
.faq-section {
    padding: calc(var(--spacing-unit) * 15) 0;
    background: var(--dark-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-elevated);
    border: 1px solid rgba(255, 0, 119, 0.2);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--neon-cyan);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--spacing-unit) * 3);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--neon-cyan);
}

.faq-icon {
    font-size: 24px;
    color: var(--neon-cyan);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === FOOTER === */
.footer {
    background: var(--dark-surface);
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 4);
    border-top: 1px solid rgba(255, 0, 98, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: calc(var(--spacing-unit) * 8);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin-bottom: calc(var(--spacing-unit) * 2);
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 4);
}

.footer-column h4 {
    color: var(--neon-cyan);
    font-size: 16px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: calc(var(--spacing-unit));
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 4);
    border-top: 1px solid rgba(255, 0, 98, 0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-elevated);
    padding: calc(var(--spacing-unit) * 6);
    border-radius: 16px;
    border: 2px solid var(--neon-cyan);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 0, 98, 0.3);
}

.modal-close {
    position: absolute;
    top: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--neon-cyan);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--neon-cyan);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 28px;
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.modal-ip {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

#modalIpInput {
    flex: 1;
    background: var(--dark-bg);
    border: 2px solid rgba(255, 0, 98, 0.3);
    color: var(--neon-cyan);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
}

.modal-copy-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    color: var(--dark-bg);
    border: none;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 98, 0.3);
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.step {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
}

.step-number {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: calc(var(--spacing-unit) * 4);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .glitch-text {
        letter-spacing: 4px;
    }

    .hero-tagline {
        letter-spacing: 1px;
    }
}

/* === FOCUS STYLES === */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
}
