@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;0,900&family=IBM+Plex+Mono:ital,wght@0,400;0,600&display=swap');

:root {
  /* Core Backgrounds */
  --bg-primary: #111111;
  --bg-secondary: #1c1c1c;
  --bg-tertiary: #242422;
  --bg-overlay: rgba(255, 255, 255, 0.04);
  
  /* Primary Accent - Electric Yellow */
  --accent-yellow-base: #f5d200;
  --accent-yellow-light: #ffd500;
  --grad-yellow: linear-gradient(135deg, var(--accent-yellow-base), var(--accent-yellow-light));
  --glow-yellow: rgba(245, 210, 0, 0.45);
  
  /* Secondary Accent - Neon Cyber Blue */
  --accent-blue-base: #00c2ff;
  --accent-blue-light: #5ce1ff;
  --grad-blue: linear-gradient(135deg, var(--accent-blue-base), var(--accent-blue-light));
  --glow-blue: rgba(0, 194, 255, 0.35);
  
  /* Third Accent - Electric Orange */
  --accent-orange-base: #ff7b00;
  --accent-orange-light: #ffb347;
  --grad-orange: linear-gradient(135deg, var(--accent-orange-base), var(--accent-orange-light));
  --glow-orange: rgba(255, 123, 0, 0.35);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(24px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  
  /* Text Colors */
  --text-primary: #f5d200;
  --text-secondary: #ffffff;
  --text-muted: #9ca3af;
  
  /* Layout */
  --container-width: 1360px;
  --spacing-desktop: 120px;
  --spacing-tablet: 90px;
  --spacing-mobile: 60px;
  
  /* Typography */
  --font-headline: 'Barlow', sans-serif; /* ExtraBold 800 applied directly via classes */
  --font-body: 'Barlow', sans-serif;
  --font-tech: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-yellow-base);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
}

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

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

.tech-caption {
  font-family: var(--font-tech);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.section-spacing {
  padding: var(--spacing-desktop) 0;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.electric-border {
  position: relative;
}
.electric-border::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: var(--grad-yellow);
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.electric-border:hover::before {
  opacity: 1;
  box-shadow: 0 0 20px var(--glow-yellow);
}

/* Header - Floating Electric Navigation */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--container-width);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(245, 210, 0, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(245, 210, 0, 0.05);
}

.nav-glass:hover {
  border-color: var(--accent-yellow-base);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--glow-yellow);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cube-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-yellow);
  box-shadow: 0 0 15px var(--glow-yellow);
  transform: rotate(45deg);
  animation: pulse-glow 2s infinite alternate;
}

.logo-text {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-yellow-base);
}

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

.nav-links a:hover::after, .nav-links a.active::after {
  width: 80%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 20px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--grad-yellow);
  color: #000;
  box-shadow: 0 8px 20px var(--glow-yellow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px var(--glow-yellow);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-blue-base);
  color: var(--accent-blue-base);
  box-shadow: 0 8px 20px var(--glow-blue);
}

.btn-secondary:hover {
  background: rgba(0, 194, 255, 0.1);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px var(--glow-blue);
  color: #fff;
}

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

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(245, 210, 0, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 30% 80%, rgba(0, 194, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

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

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5.5rem);
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  font-family: var(--font-tech);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-disclaimer {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  border-left: 2px solid var(--accent-yellow-base);
  padding-left: 12px;
}

.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hologram-cube {
  position: relative;
  width: 350px;
  height: 350px;
  transform-style: preserve-3d;
  animation: rotateCube 15s infinite linear;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid var(--accent-yellow-base);
  box-shadow: inset 0 0 50px var(--glow-yellow), 0 0 20px var(--glow-yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.cube-face img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  opacity: 0.6;
}

.cube-face.front  { transform: translateZ(175px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(175px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(175px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(175px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(175px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(175px); }

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stat-card {
  text-align: center;
  padding: 30px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  border-top: 2px solid var(--accent-yellow-base);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--glow-yellow);
}

.stat-value {
  font-size: 2.5rem;
  font-family: var(--font-headline);
  color: var(--accent-yellow-base);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-tech);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Main Game Section */
.game-section {
  position: relative;
}

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

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

.section-subtitle {
  color: var(--text-muted);
  font-family: var(--font-tech);
  max-width: 600px;
  margin: 0 auto;
}

.game-container {
  max-width: 1220px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 10px;
  background: var(--bg-tertiary);
  position: relative;
}

.game-container::after {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 35px;
  background: var(--grad-yellow);
  z-index: -1;
  box-shadow: 0 0 40px var(--glow-yellow);
  animation: border-pulse 3s infinite;
}

.game-iframe-wrapper {
  width: 100%;
  height: 700px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-iframe-wrapper:fullscreen {
  border-radius: 0;
}
.game-iframe-wrapper:-webkit-full-screen {
  border-radius: 0;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 20px;
}

.control-group {
  display: flex;
  gap: 16px;
}

.control-btn {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

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

.control-btn.favorited {
  background: rgba(255, 123, 0, 0.1);
  border-color: var(--accent-orange-base);
  color: var(--accent-orange-base);
}

.control-btn.audio-off {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
}

/* Modal System */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  border-top: 2px solid var(--accent-yellow-base);
}

.modal-content h3 {
  color: var(--accent-yellow-base);
  margin-bottom: 24px;
  font-size: 2rem;
}

.modal-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-muted);
  font-size: 32px;
  font-family: var(--font-headline);
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: var(--accent-yellow-base);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px;
  border-radius: 26px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--bg-tertiary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(0, 194, 255, 0.3);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 194, 255, 0.1);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--accent-blue-light);
  margin-bottom: 24px;
  border: 1px solid rgba(0, 194, 255, 0.2);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Universe Section */
.universe-section {
  background: var(--bg-secondary);
  position: relative;
}

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

.universe-image {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.universe-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

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

.universe-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(17,17,17,0.8), transparent);
}

/* Footer System */
.site-footer {
  background: var(--bg-primary);
  border-top: 2px solid var(--accent-yellow-base);
  padding: 80px 0 40px;
  position: relative;
  box-shadow: 0 -10px 40px var(--glow-yellow);
}

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

.footer-brand .logo-text {
  display: block;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: #fff;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
  color: var(--accent-yellow-base);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.company-details {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-align: right;
}

/* Legal Pages Specific */
.legal-header {
  padding: 180px 0 80px;
  background: linear-gradient(to bottom, rgba(245, 210, 0, 0.1), var(--bg-primary));
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--accent-yellow-base);
}

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

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

/* Animations */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px var(--glow-yellow); }
  100% { box-shadow: 0 0 25px var(--glow-yellow), 0 0 40px rgba(245,210,0,0.6); }
}

@keyframes border-pulse {
  0% { opacity: 0.6; box-shadow: 0 0 20px var(--glow-yellow); }
  50% { opacity: 1; box-shadow: 0 0 50px var(--glow-yellow); }
  100% { opacity: 0.6; box-shadow: 0 0 20px var(--glow-yellow); }
}

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

@keyframes rotateCube {
  0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Media Queries */
@media (max-width: 1150px) {
  .hero-content-wrapper { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { height: 400px; margin-top: 40px; }
  .hologram-cube { width: 250px; height: 250px; }
  .cube-face.front  { transform: translateZ(125px); }
  .cube-face.back   { transform: rotateY(180deg) translateZ(125px); }
  .cube-face.right  { transform: rotateY(90deg) translateZ(125px); }
  .cube-face.left   { transform: rotateY(-90deg) translateZ(125px); }
  .cube-face.top    { transform: rotateX(90deg) translateZ(125px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(125px); }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .universe-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --spacing-desktop: var(--spacing-mobile);
  }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero-title { font-size: 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .game-iframe-wrapper { height: 500px; }
  .company-details { text-align: left; }
}