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

:root {
    /* Color System */
    --bg-primary: #030712;
    --bg-secondary: #0f172a;
    --bg-layer: #07111f;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(24px);
    
    /* Accents */
    --accent-aqua-1: #06b6d4;
    --accent-aqua-2: #67e8f9;
    --accent-emerald-1: #10b981;
    --accent-emerald-2: #34d399;
    --accent-coral-1: #fb7185;
    --accent-coral-2: #f97316;
    
    /* Gradients */
    --grad-aqua: linear-gradient(135deg, var(--accent-aqua-1), var(--accent-aqua-2));
    --grad-emerald: linear-gradient(135deg, var(--accent-emerald-1), var(--accent-emerald-2));
    --grad-premium: linear-gradient(135deg, var(--accent-aqua-1), var(--accent-emerald-1), var(--accent-coral-1));
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Layout */
    --container-max: 1320px;
    --game-max: 1240px;
    --dock-width: 80px;
    
    /* Spacing */
    --sp-desktop: 140px;
    --sp-tablet: 90px;
    --sp-mobile: 60px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Ambient Cyber Ocean Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.ambient-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: linear-gradient(to top, rgba(3, 7, 18, 1), transparent);
}

.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

/* Typography */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); }

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

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

/* Utility Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Floating Navigation Dock (Left) */
.side-dock {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 64px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 100;
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.05);
}

.dock-item {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dock-item svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.dock-item:hover, .dock-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dock-item:hover svg, .dock-item.active svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.dock-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--grad-aqua);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.dock-tooltip {
    position: absolute;
    left: 60px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid var(--glass-border);
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Top Right Navigation */
.top-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
    position: fixed;
    top: 24px;
    left: 110px; /* Offset from dock */
    z-index: 100;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-aqua);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: var(--bg-primary);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-aqua);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-layer);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
}

.status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--accent-emerald-1);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-emerald-1);
}

/* Layout Structure */
.main-content {
    margin-left: 100px; /* Space for dock */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; /* Offset for top nav */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    color: var(--accent-aqua-2);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-disclaimer {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--accent-coral-1);
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

/* Game Experience Section */
.game-section {
    padding: var(--sp-desktop) 0;
    position: relative;
}

.game-container-wrapper {
    max-width: var(--game-max);
    margin: 0 auto;
    position: relative;
    border-radius: 32px;
    padding: 2px; /* Border width */
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(16, 185, 129, 0.2), rgba(251, 113, 133, 0.1));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-container-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(6, 182, 212, 0.2);
}

.game-dashboard {
    background: var(--bg-secondary);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--glass-border);
}

.game-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-title h3 {
    margin: 0;
    font-size: 1.2rem;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent-emerald-2);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 10px;
}

.status-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

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

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--glass-border);
}

.activity-ticker {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ticker-item strong {
    color: var(--accent-aqua-2);
}

/* Features SaaS Layout */
.features-section {
    padding: var(--sp-desktop) 0;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    position: relative;
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-icon {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-aqua-2);
    border: 1px solid rgba(255,255,255,0.1);
}

.card-large {
    grid-column: span 8;
    min-height: 400px;
    background: linear-gradient(to bottom right, var(--bg-layer), var(--bg-secondary));
}

.card-small {
    grid-column: span 4;
    min-height: 400px;
}

.bento-card h3 {
    margin-bottom: 12px;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.bento-card p {
    position: relative;
    z-index: 2;
}

.card-glow {
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--accent-aqua-1);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.bento-card:hover .card-glow {
    opacity: 0.25;
}

/* Dashboard Widgets / Social Proof */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.widget {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.widget-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.widget-icon.aqua { background: rgba(6, 182, 212, 0.1); color: var(--accent-aqua-2); }
.widget-icon.emerald { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald-2); }
.widget-icon.coral { background: rgba(251, 113, 133, 0.1); color: var(--accent-coral-2); }

.widget-data h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.widget-data .value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Legal Pages Styling */
.legal-page {
    padding: 120px 0 var(--sp-desktop);
}

.legal-header {
    margin-bottom: 60px;
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

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

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

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

.footer-brand p {
    margin-top: 20px;
    max-width: 300px;
}

.company-details {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-brand .company-details p {
    margin-top: 0;
    margin-bottom: 4px;
    max-width: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.disclaimer-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 24px;
    border-radius: 12px;
    max-width: 800px;
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-aqua-1);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

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

/* Animations */
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    :root {
        --sp-desktop: var(--sp-tablet);
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large, .card-small {
        grid-column: span 1;
        min-height: 300px;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sp-desktop: var(--sp-mobile);
    }
    
    .main-content {
        margin-left: 0;
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    /* Hide Side Dock, Show Bottom Nav */
    .side-dock {
        top: auto;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        flex-direction: row;
        justify-content: space-around;
        padding: 12px 24px;
        height: auto;
    }
    
    .dock-tooltip { display: none; }
    
    .dock-item.active::before {
        left: 50%;
        top: -8px;
        transform: translateX(-50%);
        width: 20px;
        height: 4px;
    }
    
    .brand-logo {
        left: 24px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .game-header, .game-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
}