:root {
    /* Ocean Color System */
    --ocean-surface: #00B4D8;
    --ocean-mid: #0077B6;
    --ocean-deep: #005691;
    --ocean-base: #003B6E; /* Deepest blue, strictly avoiding black */
    
    /* Accents */
    --accent-aqua: #48CAE4;
    --accent-cyan: #90E0EF;
    
    /* Glass & Layers */
    --glass-light: rgba(144, 224, 239, 0.15);
    --glass-medium: rgba(0, 180, 216, 0.25);
    --glass-border: rgba(144, 224, 239, 0.4);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #CAF0F8;
    
    /* Effects */
    --glow-soft: 0 0 20px rgba(72, 202, 228, 0.3);
    --glow-strong: 0 0 30px rgba(72, 202, 228, 0.6);
    --shadow-depth: 0 20px 40px rgba(0, 59, 110, 0.4);
    
    /* Spacing */
    --space-desk: 100px;
    --space-tab: 70px;
    --space-mob: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(180deg, var(--ocean-base) 0%, var(--ocean-deep) 40%, var(--ocean-mid) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Subtle Underwater Animation Layer */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(144, 224, 239, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: pulseLight 8s infinite alternate;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: var(--space-desk) 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 86, 145, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-aqua), var(--accent-cyan));
    box-shadow: var(--glow-soft);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

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

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

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ocean-surface), var(--accent-aqua));
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: 18px 18px 0 0;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-strong);
    background: linear-gradient(135deg, var(--accent-aqua), var(--accent-cyan));
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.25rem;
    border-radius: 22px;
}

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.hero-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 59, 110, 0.2) 0%, var(--ocean-base) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.legal-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.badge {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Game Section */
.game-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

.game-wrapper {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: rgba(0, 86, 145, 0.6);
    border-radius: 22px;
    padding: 8px;
    box-shadow: var(--shadow-depth), var(--glow-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.game-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 59, 110, 0.6), var(--glow-strong);
}

.game-iframe-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ocean-base);
    position: relative;
}

.game-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Glass Cards (Features / Legal) */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.glass-card {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    text-align: center;
}

.glass-card:hover {
    background: var(--glass-medium);
    transform: translateY(-5px);
    border-color: var(--accent-aqua);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--ocean-surface), var(--accent-aqua));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-soft);
}

.card-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Page Header (Internal Pages) */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 59, 110, 0.4) 0%, transparent 100%);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Text Content Pages */
.content-card {
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px;
    backdrop-filter: blur(12px);
    margin-bottom: var(--space-desk);
}

.content-card h2 {
    color: var(--accent-aqua);
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

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

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.content-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 59, 110, 0.4);
    backdrop-filter: blur(10px);
    padding: 60px 0 40px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-aqua);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(144, 224, 239, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --space-desk: var(--space-tab);
    }
    
    .hero-title { font-size: 3.5rem; }
    
    .game-wrapper {
        width: 95%;
    }
}

@media (max-width: 768px) {
    :root {
        --space-desk: var(--space-mob);
    }
    
    .nav-links { display: none; } /* Hamburger handled in UI */
    
    .hero-title { font-size: 2.5rem; }
    
    .game-wrapper {
        width: 100%;
        border-radius: 12px;
        padding: 4px;
        aspect-ratio: 4/3;
    }
    
    .game-iframe-container {
        border-radius: 8px;
    }
    
    .glass-card { padding: 30px 20px; }
    
    .content-card { padding: 30px 20px; }
    
    .page-title { font-size: 2.5rem; }
}

/* Utilities */
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }