:root {
  /* Base Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --surface-glass-hover: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.1);
  
  /* Accent Colors */
  --accent-primary: #38bdf8;
  --accent-secondary: #a78bfa;
  --accent-highlight: #facc15;
  
  /* Supporting Colors */
  --soft-light: #e0f2fe;
  --depth-accent: #312e81;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  
  /* Layout */
  --max-width: 1320px;
  --spacing-desktop: 110px;
  --spacing-tablet: 80px;
  --spacing-mobile: 60px;
  
  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.clouds-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 200vw;
  height: 100vh;
  z-index: -1;
  background-image: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.05) 0%, transparent 40%);
  animation: drift 60s linear infinite;
  pointer-events: none;
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(1px 1px at 10% 10%, var(--soft-light) 100%, transparent),
    radial-gradient(2px 2px at 30% 50%, var(--accent-highlight) 100%, transparent),
    radial-gradient(1.5px 1.5px at 70% 80%, var(--accent-primary) 100%, transparent),
    radial-gradient(2px 2px at 80% 20%, var(--accent-secondary) 100%, transparent);
  background-size: 200px 200px;
  animation: floatParticles 20s linear infinite alternate;
  opacity: 0.4;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

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

@media (max-width: 768px) {
  .section { padding: var(--spacing-tablet) 0; }
}

@media (max-width: 480px) {
  .section { padding: var(--spacing-mobile) 0; }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: var(--max-width);
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  animation: pulseGlow 3s infinite alternate;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--accent-primary);
}

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

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

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

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 100px 32px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .nav-cta {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-highlight));
  background-size: 200% 200%;
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  background-position: 100% 50%;
  color: var(--bg-primary);
}

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

.btn-secondary {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--surface-glass-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

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

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

.hero-content {
  max-width: 600px;
  z-index: 2;
  animation: fadeUp 1s ease-out;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  color: var(--accent-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.2));
  border-radius: 30px;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  animation: pulseGlow 4s infinite alternate;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    height: 400px;
  }
}

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

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

.game-container {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
              inset 0 0 20px rgba(56, 189, 248, 0.1);
  transition: var(--transition-smooth);
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-highlight));
  border-radius: 22px;
  z-index: -1;
  opacity: 0.5;
  animation: borderGlow 4s linear infinite;
}

.game-container:hover {
  transform: scale(1.01);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
              inset 0 0 30px rgba(56, 189, 248, 0.2);
}

.game-iframe-wrapper {
  width: 100%;
  min-height: 700px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
}

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

@media (max-width: 768px) {
  .game-container { padding: 8px; width: 95%; }
  .game-iframe-wrapper { min-height: 500px; }
  .game-iframe-wrapper iframe { min-height: 500px; }
}

@media (max-width: 480px) {
  .game-container { width: 100%; border-radius: 0; border: none; }
  .game-container::before { display: none; }
}

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

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: var(--surface-glass-hover);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-primary);
  font-size: 2rem;
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-secondary);
}

.stars {
  color: var(--accent-highlight);
  font-size: 1.25rem;
}

/* Content Pages (Legal, About, etc) */
.page-header {
  padding-top: 180px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, var(--bg-primary) 100%);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 32px;
}

.content-card h2 {
  color: var(--accent-primary);
  margin-top: 32px;
}

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

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

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

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

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

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

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

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 40px;
  margin-top: 80px;
}

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

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

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

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

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

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Animations */
@keyframes drift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50vw) translateY(-10vh); }
}

@keyframes floatParticles {
  0% { background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px; }
  100% { background-position: 100px 100px, -50px 150px, 200px -50px, -100px -100px; }
}

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

@keyframes pulseGlow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Responsive Utilities */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }