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

:root {
    /* Background Colors */
    --bg-primary: #020814;
    --bg-secondary: #071423;
    --bg-surface: #0d1c30;
    --bg-overlay: rgba(0, 10, 25, 0.78);

    /* Primary Accent - Aqua Cyan */
    --accent-cyan: #00e5ff;
    --grad-cyan: linear-gradient(135deg, #00e5ff, #00b8ff);
    --glow-cyan: rgba(0, 229, 255, 0.45);

    /* Secondary Accent - Coral Blue */
    --accent-coral: #38bdf8;
    --grad-coral: linear-gradient(135deg, #38bdf8, #0ea5e9);
    --glow-coral: rgba(56, 189, 248, 0.35);

    /* Third Accent - Abyss Purple */
    --accent-purple: #8b5cf6;
    --grad-purple: linear-gradient(135deg, #6366f1, #8b5cf6);
    --glow-purple: rgba(139, 92, 246, 0.30);

    /* Premium Ocean Blend */
    --grad-ocean: linear-gradient(135deg, #00e5ff, #0ea5e9, #8b5cf6);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #d6e2f0;
    --text-muted: #7f93ab;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(24px);
    --glass-shadow: 0 10px 45px rgba(0, 0, 0, 0.50);

    /* Layout */
    --max-width: 1440px;
    --pad-desktop: 120px;
    --pad-tablet: 80px;
    --pad-mobile: 28px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

/* Ambient Background Effects */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 80%);
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--grad-ocean);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.ambient-glow.top { top: -10%; left: -10%; }
.ambient-glow.bottom { bottom: -20%; right: -10%; animation-delay: -10s; }

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-desktop);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

.text-gradient {
    background: var(--grad-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-cyan), inset 0 0 10px rgba(255,255,255,0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Header - Floating Ocean Control Hub */
.header-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    max-width: 1200px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(13, 28, 48, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 229, 255, 0.05);
    transition: all 0.3s ease;
}

.header-nav:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15), inset 0 0 20px rgba(0, 229, 255, 0.1);
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--glow-cyan);
    animation: pulse 2s infinite;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--grad-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--glow-cyan);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: blink 1.5s infinite;
}

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero p.subtext {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-disclaimer {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* Main Game Section */
.game-section {
    padding: 100px 0;
    position: relative;
}

.game-dashboard-frame {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 34px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0, 229, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.game-dashboard-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-cyan);
    opacity: 0.5;
}

.frame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.frame-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.frame-title h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.ocean-energy {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
}

.frame-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
}

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

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

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

.feature-card {
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-ocean);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.fc-large { grid-column: span 8; }
.fc-small { grid-column: span 4; }

@media (max-width: 992px) {
    .fc-large, .fc-small { grid-column: span 12; }
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--grad-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Dashboard Section */
.dashboard-section {
    padding: 100px 0;
    position: relative;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-value {
    font-size: 3.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* Story Section */
.story-section {
    padding: 120px 0;
    display: flex;
    align-items: center;
}

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

.story-image-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.story-image-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    z-index: 2;
    pointer-events: none;
}

.story-img {
    width: 100%;
    height: auto;
    transition: transform 0.7s ease;
}

.story-image-wrap:hover .story-img {
    transform: scale(1.05);
}

.story-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

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

@media (max-width: 992px) {
    .story-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Legal Pages General Styling */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

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

.legal-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--accent-cyan);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--text-primary);
}

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

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

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

@media (max-width: 768px) {
    .legal-content { padding: 30px 20px; }
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-cyan);
    opacity: 0.3;
}

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

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

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 300px;
}

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

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

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

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

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-company p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    max-width: 800px;
    margin-inline: auto;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

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

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile Adjustments for Header */
@media (max-width: 768px) {
    .container { padding: 0 var(--pad-mobile); }
    
    .header-nav {
        top: auto;
        bottom: 20px;
        width: calc(100% - 40px);
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none; /* In a real scenario, implement a hamburger or bottom icon nav here */
    }
    
    .header-actions .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero { padding-top: 60px; }
    
    .game-section { padding: 40px 0; }
    .game-dashboard-frame { border-radius: 16px; padding: 10px; }
    .frame-title h2 { font-size: 1.2rem; }
}

/* Animations */
@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}