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

:root {
    /* Color System */
    --bg-primary: #0b0f1a;
    --bg-secondary: #111827; /* Updated to city shadow blue */
    --surface: #1e293b;
    --cyber-blue: #38bdf8;
    --neon-purple: #a855f7;
    --electric-pink: #ec4899;
    --accent-gradient: linear-gradient(135deg, #38bdf8, #a855f7);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1400px;
    --section-pad-desktop: 100px;
    --section-pad-tablet: 70px;
    --section-pad-mobile: 50px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    
    /* Effects */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 20px rgba(56, 189, 248, 0.15);
    --neon-glow-hover: 0 0 30px rgba(168, 85, 247, 0.3);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Visual System */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.bg-orb-1 {
    position: absolute;
    top: -20%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
}

.bg-orb-2 {
    position: absolute;
    bottom: -10%; right: -20%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
}

.bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 5%, rgba(11, 15, 26, 0.6) 50%, rgba(11, 15, 26, 0.8) 100%);
    z-index: 0;
}

.overlay-gradient-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 15, 26, 0.95) 0%, rgba(17, 24, 39, 0.85) 100%);
    z-index: 0;
}

.cyber-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
    transform: perspective(500px) rotateX(20deg) scale(1.2);
    transform-origin: bottom center;
}

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

a {
    color: var(--cyber-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-purple);
}

ul {
    list-style: none;
}

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

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

section {
    padding: var(--section-pad-desktop) 0;
    position: relative;
    z-index: 1;
}

.relative-section {
    position: relative;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* UI Components */

/* Glassmorphism Base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Typography Enhancements */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
    border: 1px solid var(--cyber-blue);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

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

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: var(--cyber-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

/* Atmospheric light streaks */
.light-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    width: 200px;
    opacity: 0.5;
    animation: drift 8s linear infinite;
    z-index: 2;
}

.trail-1 { top: 20%; left: -200px; animation-duration: 12s; }
.trail-2 { top: 60%; left: -200px; background: linear-gradient(90deg, transparent, var(--neon-purple), transparent); animation-duration: 9s; animation-delay: 2s; }

@keyframes drift {
    100% { transform: translateX(120vw); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    color: var(--cyber-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Game Interface Section */
.game-section {
    padding-bottom: var(--section-pad-desktop);
}

.game-frame-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(168, 85, 247, 0.5), rgba(30, 41, 59, 0.2));
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 40px rgba(56,189,248,0.2);
    transition: transform 0.5s ease;
}

.game-frame-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 50px rgba(56, 189, 248, 0.3);
}

.game-frame {
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 2px);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: rgba(11, 15, 26, 0.95);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.game-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--cyber-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyber-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 3rem;
}

.feature-card {
    padding: 0;
    border: 1px solid var(--glass-border);
    background: transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), var(--neon-glow-hover);
}

.feature-card:hover .card-bg-img {
    opacity: 0.6;
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.4), rgba(11, 15, 26, 0.95));
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--cyber-blue);
    font-size: 1.5rem;
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Legal / Text Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 2;
}

.legal-box {
    padding: 40px;
    background: rgba(30, 41, 59, 0.7);
}

.legal-box h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--cyber-blue);
}

.legal-box p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    background: rgba(11, 15, 26, 0.95);
    position: relative;
    z-index: 2;
}

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

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

.footer-heading {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--cyber-blue);
}

.disclaimer-banner {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.disclaimer-icon {
    background: rgba(236, 72, 153, 0.2);
    color: var(--electric-pink);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--font-display);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.disclaimer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.2);
}

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

/* Responsive */
@media (max-width: 992px) {
    section { padding: var(--section-pad-tablet) 0; }
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: var(--section-pad-mobile) 0; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(11, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .mobile-toggle { display: block; z-index: 1001; position: relative; }
    .nav-actions .btn { display: none; }
    
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}