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

:root {
  /* Color System */
  --bg-primary: #020308;
  --bg-secondary: #0b1220;
  
  --glass-surface: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-gloss: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  
  --crystal-blue: #38bdf8;
  --crystal-blue-dark: #6366f1;
  --crystal-blue-grad: linear-gradient(135deg, var(--crystal-blue), var(--crystal-blue-dark));
  
  --amethyst: #a855f7;
  --amethyst-dark: #7c3aed;
  --amethyst-grad: linear-gradient(135deg, var(--amethyst), var(--amethyst-dark));
  
  --gold: #facc15;
  --gold-dark: #f59e0b;
  --gold-grad: linear-gradient(135deg, var(--gold), var(--gold-dark));
  
  --premium-blend: linear-gradient(135deg, #38bdf8, #a855f7, #facc15);
  
  --glow-blue: rgba(56, 189, 248, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.35);
  --glow-gold: rgba(250, 204, 21, 0.35);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #64748b;
  
  --font-primary: 'Outfit', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;

  /* Layout & Spacing */
  --max-width: 1280px;
  --space-dt: 120px;
  --space-tb: 80px;
  --space-mb: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

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

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

.text-blue {
  background: var(--crystal-blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Top Header */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through empty space */
}

.top-nav > * {
  pointer-events: auto; /* Re-enable clicks on items */
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.brand-logo .diamond-icon {
  width: 28px;
  height: 28px;
  background: var(--premium-blend);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 15px var(--glow-blue);
  animation: float 4s ease-in-out infinite;
}

/* Left Floating Nav (Desktop) */
.side-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 32px;
  z-index: 90;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--glow-blue);
}

.side-nav:hover {
  box-shadow: 0 0 30px var(--glow-purple);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  z-index: 2;
}

.nav-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: var(--crystal-blue-grad);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.nav-item:hover {
  color: #fff;
  transform: scale(1.1);
}

.nav-item:hover::after, .nav-item.active::after {
  opacity: 1;
  box-shadow: 0 0 15px var(--glow-blue);
}
.nav-item.active {
  color: #fff;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 18px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn:hover::before {
  left: 150%;
}

.btn-primary {
  background: var(--crystal-blue-grad);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-blue);
}

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

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

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--crystal-blue);
  box-shadow: 0 0 15px var(--glow-blue);
}

/* Main Layout */
.main-wrapper {
  padding-left: 120px; /* Space for side nav */
  padding-right: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* 3D Cinematic Gem World (Hero Visuals) */
.hero-visuals {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}

.gem-3d {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent 60%);
  box-shadow: inset -10px -10px 20px rgba(0,0,0,0.5), 0 0 30px currentColor;
  backdrop-filter: blur(5px);
}

.gem-1 {
  width: 180px;
  height: 180px;
  top: 20%; left: 20%;
  color: var(--crystal-blue);
  background-color: rgba(56, 189, 248, 0.4);
  animation: float 6s ease-in-out infinite, rotate3d 15s linear infinite;
}

.gem-2 {
  width: 120px;
  height: 120px;
  top: 60%; left: 60%;
  color: var(--amethyst);
  background-color: rgba(168, 85, 247, 0.4);
  animation: float 8s ease-in-out infinite reverse, rotate3d 20s linear infinite;
}

.gem-3 {
  width: 80px;
  height: 80px;
  top: 30%; left: 70%;
  color: var(--gold);
  background-color: rgba(250, 204, 21, 0.4);
  animation: float 5s ease-in-out infinite 1s, rotate3d 10s linear infinite reverse;
}

/* Game Section */
.game-section {
  padding: var(--space-dt) 0;
  position: relative;
  z-index: 10;
}

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

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

.game-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 8px;
  position: relative;
  background: var(--bg-secondary);
  transition: transform 0.4s ease;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--premium-blend);
  border-radius: 26px;
  z-index: -1;
  animation: gradientFlow 4s ease infinite;
  background-size: 200% 200%;
  opacity: 0.8;
}

.game-container:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px var(--glow-purple);
}

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

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

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

/* Features Section (Asymmetric Grid) */
.features-section {
  padding: var(--space-dt) 0;
}

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

.feature-card {
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px var(--glow-blue);
  border-color: rgba(255,255,255,0.2);
}

.fc-1 { grid-column: span 8; }
.fc-2 { grid-column: span 4; }
.fc-3 { grid-column: span 4; }
.fc-4 { grid-column: span 8; }

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}

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

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Standard Content Pages */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
}

.content-container {
  max-width: 800px;
  margin: 0 auto 120px;
  padding: 60px;
  border-radius: 24px;
}

.content-container h2 {
  margin: 32px 0 16px;
  color: var(--crystal-blue);
}

.content-container p {
  margin-bottom: 24px;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.content-container li {
  margin-bottom: 10px;
  list-style: disc;
}

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

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

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--crystal-blue);
  box-shadow: 0 0 10px var(--glow-blue);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

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

.footer-links ul li a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--crystal-blue);
}

.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.9rem;
}

.disclaimer-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: 12px;
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
}

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

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

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .hero-visuals { right: -15%; opacity: 0.5; }
  .fc-1, .fc-2, .fc-3, .fc-4 { grid-column: span 6; }
}

@media (max-width: 768px) {
  /* Hide side nav, show bottom nav */
  .side-nav {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 64px;
    flex-direction: row;
    padding: 0 24px;
    gap: 24px;
  }
  
  .main-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 100px;
  }
  
  .top-nav {
    padding: 20px;
  }
  
  .hero-title { font-size: 2.8rem; }
  .hero-visuals { display: none; }
  
  .fc-1, .fc-2, .fc-3, .fc-4 { grid-column: span 12; }
  
  .game-controls { flex-direction: column; gap: 16px; }
  
  .footer-content { flex-direction: column; }
}