@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
    --bg-primary: #050b14;
    --bg-secondary: #0a121f;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-highlight: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --font-main: 'Inter', sans-serif;
    --font-header: 'Space Grotesk', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --nav-height: 80px;
    --container-max: 1400px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cosmic Background Elements */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 50%);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 15s linear infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 1024px) {
    .container { padding: 0 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

section {
    padding: 100px 0;
}

@media (max-width: 1024px) { section { padding: 80px 0; } }
@media (max-width: 768px) { section { padding: 60px 0; } }

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 11, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(5, 11, 20, 0.9);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    color: #ffffff;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer::before {
    content: '18+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-astro {
    width: 100%;
    max-width: 500px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0,0,0,0) 70%);
    top: 10%;
    left: 10%;
    z-index: 1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(0.95); }
}

/* Game Section */
.game-section {
    background: var(--bg-secondary);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1), inset 0 0 20px rgba(6, 182, 212, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-container:hover {
    transform: scale(1.01);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.15), inset 0 0 30px rgba(6, 182, 212, 0.1);
}

.game-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    position: relative;
    background: #000;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-secondary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Legal Pages Typography & Layout */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-muted);
}

.legal-content {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 64px;
    margin-bottom: 100px;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: var(--accent-secondary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content ul {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 100px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-block h3 {
    color: var(--accent-secondary);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto 100px;
}

.faq-group {
    margin-bottom: 40px;
}

.faq-group h3 {
    color: var(--accent-secondary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

details.faq-item {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

summary.faq-question {
    padding: 20px 24px;
    font-size: 1.125rem;
    font-family: var(--font-header);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-secondary);
    transition: transform 0.3s ease;
}

details[open] summary.faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
}

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

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content p {
        margin: 0 auto 32px;
    }
    .hero-actions {
        justify-content: center;
    }
    .disclaimer {
        justify-content: center;
    }
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .legal-content {
        padding: 32px 24px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 11, 20, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        text-align: center;
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }
    .nav-links.active {
        display: flex;
    }
    .header-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}