:root {
  /* Color System */
  --bg-primary: #02040a;
  --bg-secondary: #071018;
  --bg-elevated: #0d1624;
  --bg-overlay: rgba(0, 0, 0, 0.72);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #7c8ca5;
  --text-accent: #00ffb2;
  
  /* Gradients */
  --grad-emerald: linear-gradient(135deg, #00ffb2, #00c896);
  --grad-cyber: linear-gradient(135deg, #9dff00, #53ff6f);
  --grad-mystic: linear-gradient(135deg, #00ffb2, #7c4dff);
  --grad-gold: linear-gradient(135deg, #ffe066, #00ffb2);
  
  /* Glows */
  --glow-emerald: rgba(0, 255, 178, 0.45);
  --glow-cyber: rgba(157, 255, 0, 0.35);
  --glow-mystic: rgba(124, 77, 255, 0.35);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-blur: blur(22px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 255, 178, 0.05);
  
  /* Layout */
  --container-max: 1440px;
  --nav-width: 80px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 255, 178, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(124, 77, 255, 0.03) 0%, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

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

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

.section-padding {
  padding: 120px 0;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--grad-emerald);
  z-index: -1;
  transition: opacity var(--transition-smooth);
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--glow-emerald);
}

.btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: var(--glass-blur);
}
.btn-secondary::before { display: none; }
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 25px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

/* Layout System */
.page-wrapper {
  padding-left: calc(var(--nav-width) + 40px); /* Space for left nav */
  position: relative;
}

/* Left Floating Navigation */
.floating-nav {
  position: fixed;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  width: var(--nav-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  z-index: 100;
  border-radius: 40px;
  background: rgba(7, 16, 24, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 178, 0.05), inset 0 0 0 1px rgba(0, 255, 178, 0.2);
}

.nav-logo {
  margin-bottom: 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  position: relative;
  animation: pulse-glow 3s infinite alternate;
}
.nav-logo svg {
  width: 24px;
  fill: var(--text-accent);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-accent);
  background: rgba(0, 255, 178, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 178, 0.3);
}

.nav-item .tooltip {
  position: absolute;
  left: calc(100% + 15px);
  background: var(--bg-elevated);
  border: var(--glass-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

/* Top Right Controls */
.top-controls {
  position: fixed;
  top: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.profile-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid rgba(0, 255, 178, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.profile-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-orb::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #00ffb2;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.profile-orb:hover {
  box-shadow: 0 0 15px var(--glow-emerald);
  transform: scale(1.05);
}

/* Mobile Bottom Nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: rgba(7, 16, 24, 0.85);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 30px;
  padding: 10px 20px;
  z-index: 1000;
  justify-content: space-between;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 8px;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-nav-item.active {
  color: var(--text-accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, #0a1f18 0%, var(--bg-primary) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
}

.hero-particles {
  position: absolute;
  width: 100%; height: 100%;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0,255,178,0.1) 0%, transparent 10%),
    radial-gradient(circle at 80% 70%, rgba(0,255,178,0.1) 0%, transparent 10%);
  animation: float-slow 10s infinite ease-in-out alternate;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  z-index: 10;
}

.hero-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 255, 178, 0.1);
  border: 1px solid rgba(0, 255, 178, 0.3);
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(0, 255, 178, 0.2);
  animation: fade-in-up 1s ease forwards 0.2s;
  opacity: 0;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fade-in-up 1s ease forwards 0.4s;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fade-in-up 1s ease forwards 0.6s;
  opacity: 0;
}

.legal-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(2, 4, 10, 0.8);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 20;
}

/* Game Section */
.game-section {
  position: relative;
  z-index: 5;
}

.game-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 0 10px;
}

.game-title-area h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-accent);
  background: rgba(0, 255, 178, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 178, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ffb2;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.game-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--bg-elevated);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.5s ease;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 34px;
  background: linear-gradient(45deg, transparent, rgba(0,255,178,0.3), transparent);
  z-index: -1;
  animation: border-flow 4s linear infinite;
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 40px rgba(0, 255, 178, 0.15);
}

.game-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 32px;
  z-index: 2;
  background: #000;
}

.game-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-accent);
}
.control-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Features Section (Power Grid) */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

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

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(0,255,178,0.05), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,178,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,255,178,0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(0,255,178,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-accent);
  border: 1px solid rgba(0,255,178,0.2);
}
.card-icon svg { width: 30px; height: 30px; fill: currentColor; }

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

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

.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

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

.stat-box {
  text-align: center;
  padding: 40px 20px;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.stat-value span { color: var(--text-accent); font-size: 2rem; margin-left: 4px; }

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

/* Immersive Experience */
.story-section {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

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

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

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

.story-visual {
  position: relative;
  height: 500px;
  border-radius: 32px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: luminosity;
  transition: var(--transition-smooth);
}

.story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.story-visual:hover img {
  opacity: 1;
  transform: scale(1.05);
  mix-blend-mode: normal;
}

/* Internal Pages */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(0,255,178,0.05), transparent 70%);
}

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

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.content-block {
  padding: 40px;
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  margin-top: 32px;
  color: var(--text-accent);
}
.content-block h2:first-of-type {
    margin-top: 0;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content-block ul {
  list-style: disc inside;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 16px;
}

.content-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  margin: 24px 0;
  border: 1px solid rgba(0,255,178,0.2);
  background: var(--bg-elevated);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-control {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 10px rgba(0,255,178,0.1);
}

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

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

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

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-brand .logo svg { width: 30px; fill: var(--text-accent); }

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

.company-info {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.company-info strong {
  color: var(--text-secondary);
}

.footer-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px var(--glow-emerald); }
  100% { box-shadow: 0 0 25px var(--glow-emerald), 0 0 40px rgba(0,255,178,0.2); }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 178, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 178, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 178, 0); }
}

@keyframes border-flow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float-slow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-20px, 20px); }
}

/* Utility for JS Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .container { padding: 0 80px; }
  .power-grid .col-span-8, .power-grid .col-span-4 { grid-column: span 12; }
  .power-grid .col-span-6 { grid-column: span 6; }
}

@media (max-width: 992px) {
  .floating-nav { display: none; } /* Hide left nav */
  .mobile-nav { display: flex; } /* Show bottom nav */
  .page-wrapper { padding-left: 0; }
  
  .top-controls { top: 20px; right: 20px; }
  .hero h1 { font-size: 3rem; }
  
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; text-align: center; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 28px; }
  .section-padding { padding: 80px 0; }
  
  .power-grid .col-span-6 { grid-column: span 12; }
  
  .game-wrapper { border-radius: 16px; }
  .game-wrapper iframe { border-radius: 16px; }
  .game-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-desc { margin: 0 auto; }
}