:root {
  /* Colors */
  --quantum-black: #050505;
  --neural-blue: #1a1100;
  --text-primary: #fffdf5;
  --text-secondary: #e6d7ad;
  --text-muted: #8c7e5a;

  /* Glass Surface */
  --glass-bg: rgba(255, 215, 0, 0.04);
  --glass-blur: blur(24px);
  --glass-glow: linear-gradient(180deg, rgba(255, 215, 0, 0.08), transparent);
  --glass-border: rgba(255, 215, 0, 0.15);

  /* Accents */
  --accent-cyan: linear-gradient(135deg, #ffd700, #ffaa00);
  --accent-violet: linear-gradient(135deg, #ffaa00, #ff8c00);
  --premium-blend: linear-gradient(135deg, #ffd700, #ff8c00);
  
  /* Glow Effects */
  --glow-cyan: rgba(255, 215, 0, 0.45);
  --glow-violet: rgba(255, 140, 0, 0.45);

  /* Spacing */
  --space-desktop: 120px;
  --space-tablet: 80px;
  --space-mobile: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--quantum-black);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at top center, var(--neural-blue) 0%, var(--quantum-black) 100%);
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('assets/images/particle-noise-texture.png');
  opacity: 0.03;
  pointer-events: none;
  z-index: 999;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Layout System */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

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

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

/* Glass UI Components */
.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: 24px;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--glass-glow);
  pointer-events: none;
  z-index: 1;
}

/* Typography Enhancements */
.text-gradient {
  background: var(--premium-blend);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

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

/* Buttons */
.btn-quantum {
  background: var(--premium-blend);
  border: none;
  border-radius: 18px;
  color: #fffdf5;
  padding: 14px 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--glow-cyan);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
}

.btn-quantum::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg) translateY(100%);
  transition: transform 0.6s;
}

.btn-quantum:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow-violet);
}

.btn-quantum:hover::after {
  transform: rotate(45deg) translateY(-100%);
}

.btn-quantum:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-outline:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 15px var(--glow-cyan);
}

/* Header & Navigation */
.brand-logo {
  position: fixed;
  top: 32px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

.logo-icon {
  width: 36px;
  height: 36px;
  animation: pulse-glow 4s infinite alternate;
}

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.top-actions {
  position: fixed;
  top: 32px;
  right: 5vw;
  z-index: 1000;
}

.floating-nav {
  position: fixed;
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

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

.nav-item:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--glow-cyan);
}

.nav-item.active {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.1);
  box-shadow: inset 0 0 10px var(--glow-violet);
}

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('images/golden-luxury-hero-bg.jpg') center/cover no-repeat;
  opacity: 0.4;
  z-index: -2;
  animation: bg-scale 20s infinite alternate linear;
}

.hero-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,215,0,0.15) 0%, transparent 3%),
    radial-gradient(circle at 80% 20%, rgba(255,215,0,0.2) 0%, transparent 3%),
    radial-gradient(circle at 40% 80%, rgba(255,215,0,0.1) 0%, transparent 2%),
    radial-gradient(circle at 70% 70%, rgba(255,215,0,0.15) 0%, transparent 2.5%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 1.5%);
  z-index: -1;
  animation: float-particles 15s linear infinite;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--quantum-black) 90%),
              linear-gradient(180deg, var(--neural-blue) 0%, transparent 40%, var(--quantum-black) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  text-shadow: 0 0 40px var(--glow-cyan);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.legal-badge {
  margin-top: 40px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Game Core Module */
.game-section {
  position: relative;
  z-index: 10;
}

.game-container {
  max-width: 1100px;
  margin: 0 auto;
}

.game-header {
  text-align: center;
  margin-bottom: 40px;
}

.game-card {
  border-radius: 24px;
  padding: 8px;
  position: relative;
  background: var(--neural-blue);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transition: transform 0.4s ease;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--premium-blend);
  z-index: -1;
  animation: borderPulse 4s ease-in-out infinite;
  opacity: 0.7;
}

.game-card:hover {
  transform: scale(1.01);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px 32px;
  text-align: left;
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: #ffd700;
  filter: drop-shadow(0 0 10px var(--glow-cyan));
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Interior Pages (About, Contact, Legal) */
.page-header {
  text-align: center;
  padding: 180px 0 60px;
  position: relative;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-desktop);
}

.content-glass {
  padding: 48px;
}

.content-glass h2 {
  margin: 32px 0 16px;
  font-size: 1.75rem;
  color: #ffd700;
}

.content-glass p {
  margin-bottom: 24px;
}

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

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

.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: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 15px var(--glow-violet);
  background: rgba(255, 140, 0, 0.05);
}

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

.img-fluid {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--neural-blue);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover {
  color: #ffd700;
  text-shadow: 0 0 10px var(--glow-cyan);
}

.footer-legal {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { filter: drop-shadow(0 0 5px var(--glow-cyan)); }
  100% { filter: drop-shadow(0 0 20px var(--glow-violet)); }
}

@keyframes bg-scale {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes float-particles {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.5; filter: blur(4px); }
  50% { opacity: 1; filter: blur(8px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Systems */
@media (max-width: 1280px) {
  section { padding: var(--space-tablet) 0; }
}

@media (max-width: 1024px) {
  .floating-nav { left: 2vw; padding: 16px 12px; gap: 12px; }
  .brand-logo { left: 2vw; }
  .top-actions { right: 2vw; }
}

@media (max-width: 768px) {
  section { padding: var(--space-mobile) 0; }
  
  body { padding-bottom: 80px; }
  
  .brand-logo { top: 16px; left: 16px; }
  .top-actions { top: 16px; right: 16px; }
  
  .btn-quantum { padding: 10px 20px; font-size: 0.875rem; }
  
  .floating-nav {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    border-radius: 24px 24px 0 0;
    padding: 16px;
    background: rgba(15, 10, 0, 0.9);
    border-top: 1px solid var(--glass-border);
    border-bottom: none; border-left: none; border-right: none;
  }
  
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-actions .btn-quantum { width: 100%; }
  
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}