/* Custom Properties & Variables */
:root {
    --bg-dark: #08060d;
    --bg-card: rgba(22, 17, 36, 0.75);
    --bg-nav: rgba(8, 6, 13, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Neon Accents */
    --accent-cyan: #00f0ff;
    --accent-magenta: #ff007f;
    --accent-green: #39ff14;
    --accent-red: #ff003c; /* Vibrant neon red for wireframe separator */
    
    --text-main: #f3effa;
    --text-muted: #9f94b3;
    
    /* Default Clean System Font Stack (No Orbitron) */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    
    --neon-cyan-glow: 0 0 10px rgba(0, 240, 255, 0.35);
    --neon-magenta-glow: 0 0 10px rgba(255, 0, 127, 0.35);
    
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & General Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* No solid background color here to prevent hiding the background-container */
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden; /* Lock viewport for single screen */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Containers & Wrapper */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1; /* Drawn in front of the background container */
}

/* Stacking Context Container for Background - Solves browser rendering bugs */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Placed behind all text elements */
    background-color: var(--bg-dark); /* Solid fallback at the bottom of the stack */
    pointer-events: none;
    overflow: hidden;
}

/* Blurred background image cover - Opacity set to 0.5 */
.bg-image-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.8); /* Adjusted brightness */
    opacity: 0.5; /* Moderated transparency */
    transform: scale(1.05); /* Offset filter vignette bleed */
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(8, 6, 13, 0.3) 0%, rgba(8, 6, 13, 0.95) 90%);
}

/* Language Switcher Display Logic */
body.lang-zh .en-text {
    display: none !important;
}
body.lang-en .zh-text {
    display: none !important;
}

/* Navigation Bar with Red Separator Line */
header {
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--accent-red); /* Red border separator matching wireframe */
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - System Font style */
.logo {
    font-family: var(--font-stack);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

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

/* Icon-based Language Toggle Button */
.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-stack);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    margin-right: 15px;
    outline: none;
}

.lang-toggle-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: var(--neon-cyan-glow);
}

.lang-icon {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.lang-toggle-btn:hover .lang-icon {
    color: var(--accent-cyan);
}

.lang-label {
    font-size: 0.85rem;
}

/* Main Layout Centering */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* Hero Section */
.hero-section {
    width: 100%;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 780px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-stack);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-magenta);
    text-shadow: var(--neon-magenta-glow);
}

.hero-title {
    font-family: var(--font-stack);
    font-size: 4.8rem;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 620px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6); /* Boost text readability on image background */
}

.description-link {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

.description-link:hover {
    color: var(--accent-magenta);
    text-shadow: var(--neon-magenta-glow);
}

/* Hero Actions Container with Platform Logos on Top */
.hero-actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Spacing between logos and the button */
}

.platform-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Spacing between Steam and Epic logos */
}

.platform-logo {
    color: var(--text-muted);
    opacity: 0.75;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo:hover {
    color: var(--text-main);
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

/* Button Component - System Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-stack);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

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

.btn-glow:hover::before {
    left: 150%;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    background: rgba(8, 6, 13, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-right {
    margin-left: auto;
}

.privacy-link {
    transition: var(--transition-fast);
    padding: 5px 0;
}

.privacy-link:hover {
    color: var(--accent-cyan);
    text-shadow: var(--neon-cyan-glow);
}

/* Modals / Popup Dialogs */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(4, 3, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content-wrapper {
    position: relative;
    background: radial-gradient(135deg, rgba(22, 17, 36, 0.95) 0%, rgba(8, 6, 13, 0.98) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
    margin: 12% auto;
    padding: 45px 40px;
    width: 90%;
    max-width: 520px;
    border-radius: 8px;
    animation: modal-open 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-modal-content {
    max-width: 650px;
    margin: 8% auto;
}

@keyframes modal-open {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-magenta);
    background: rgba(255, 0, 127, 0.05);
}

.modal-title {
    font-family: var(--font-stack);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Coming Soon Content Styling */
.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.coming-soon-badge {
    font-family: var(--font-stack);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-magenta);
    border: 1px solid var(--accent-magenta);
    background: rgba(255, 0, 127, 0.08);
    box-shadow: var(--neon-magenta-glow);
    padding: 6px 18px;
    border-radius: 4px;
    letter-spacing: 2px;
}

/* Registration Form */
.register-form {
    width: 100%;
}

.register-form .input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    transition: var(--transition-fast);
    margin-bottom: 15px;
}

.register-form .input-group:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: var(--neon-cyan-glow);
}

.register-form input[type="email"] {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 15px;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    outline: none;
}

.register-form input[type="email"]::placeholder {
    color: rgba(243, 239, 250, 0.35);
}

.register-form .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    user-select: none;
}

.form-feedback {
    font-size: 0.85rem;
    min-height: 20px;
    text-align: left;
}

.form-feedback.success {
    color: var(--accent-green);
    text-shadow: var(--neon-green-glow);
}

.form-feedback.error {
    color: var(--accent-magenta);
    text-shadow: var(--neon-magenta-glow);
}

/* Privacy Scroll Panel */
.privacy-text-content {
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.privacy-text-content p {
    margin-bottom: 15px;
}

.privacy-text-content strong {
    color: var(--text-main);
}

/* Responsive Layout */
@media (max-width: 768px) {
    body {
        overflow: auto; /* Allow scrolling on small viewports if content overflows */
    }
    
    .page-wrapper {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .modal-content-wrapper {
        padding: 35px 25px;
        margin: 20% auto;
    }
    
    .register-form .input-group {
        flex-direction: column;
        border: none;
        background: none;
        padding: 0;
        gap: 12px;
    }
    
    .register-form input[type="email"] {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 12px 15px;
    }
    
    .register-form .btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.6rem;
    }
    
    header {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .lang-toggle-btn {
        padding: 6px 12px;
        margin-right: 10px;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
