:root {
  /* Color System */
  --bg-primary: #020617;
  --bg-secondary: #060f1f;
  
  /* Gradients & Accents */
  --accent-diamond-start: #7dd3fc;
  --accent-diamond-end: #e0f2fe;
  --accent-emerald-start: #22c55e;
  --accent-emerald-end: #4ade80;
  --accent-violet-start: #8b5cf6;
  --accent-violet-end: #c084fc;
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Glass & Metals */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --metallic-shine: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(32px);
  
  /* Shadows & Glows */
  --glow-soft: 0 0 40px rgba(125, 211, 252, 0.08);
  --glow-strong: 0 0 60px rgba(125, 211, 252, 0.15);
  --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --side-nav-width: 80px;
  --content-max-width: 1280px;
  --spacing-section: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(125, 211, 252, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

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

ul {
  list-style: none;
}

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

/* Base Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Layout Core */
.page-wrapper {
  padding-left: var(--side-nav-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

/* Floating Side Nav (Desktop) */
.side-nav {
  position: fixed;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%);
  width: 64px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: 2rem;
  z-index: 100;
  box-shadow: var(--shadow-premium), var(--glow-soft);
}

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

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

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: rgba(255,255,255,0.08);
}

.nav-item:hover svg, .nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.5));
}

.nav-label {
  position: absolute;
  left: 60px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

/* Top Right CTA */
.top-cta-wrapper {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: none; /* Shown on mobile */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-diamond-start), var(--accent-diamond-end));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(125, 211, 252, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(125, 211, 252, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--accent-diamond-start);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  border-left: 2px solid var(--glass-border);
  padding-left: 1rem;
}

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

.hero-visual img {
  width: 100%;
  max-width: 500px;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(125, 211, 252, 0.15));
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* Trust Strip */
.trust-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(6, 15, 31, 0.5);
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  opacity: 0.7;
}

/* Game Showcase */
.game-showcase {
  background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.game-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: var(--shadow-premium), var(--glow-soft);
  transition: all 0.4s ease;
}

.game-container:hover {
  box-shadow: var(--shadow-premium), var(--glow-strong);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--glass-border);
}

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

.game-details h2 {
  margin-bottom: 1rem;
}

.game-details p {
  margin-bottom: 2rem;
}

.game-features-list {
  margin-bottom: 2.5rem;
}

.game-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.game-features-list li svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-diamond-start);
}

.game-actions {
  display: flex;
  gap: 1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(125, 211, 252, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-diamond-start);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1rem;
}

/* Experience Section */
.experience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.experience-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.experience-image img {
  width: 100%;
  height: auto;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.experience-image:hover img {
  transform: scale(1);
}

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

.experience-content h2 {
  margin-bottom: 1.5rem;
}

.experience-content p {
  margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section p {
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Generic Pages (Terms, Privacy, About) */
.page-header {
  padding: 8rem 0 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.content-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem;
  margin: 4rem auto;
  max-width: 900px;
}

.content-panel h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.content-panel p {
  margin-bottom: 1.5rem;
}

.content-panel ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.form-control {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-diamond-start);
}

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

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-legal-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-legal-box p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

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

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .game-container, .experience-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .game-container {
    padding: 2rem;
  }
  
  .experience-split {
    flex-direction: column-reverse;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --side-nav-width: 0px;
    --spacing-section: 5rem;
  }
  
  .page-wrapper {
    padding-left: 0;
    padding-bottom: 80px; /* Space for bottom nav */
  }
  
  /* Convert Side Nav to Bottom Mobile Nav */
  .side-nav {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }
  
  .nav-label {
    display: none;
  }
  
  .top-cta-wrapper {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: space-between;
  }
  
  .brand-logo {
    display: block;
  }
  
  .hero {
    padding-top: 6rem;
    min-height: auto;
  }
  
  .hero-visual {
    height: 350px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .game-actions {
    flex-direction: column;
  }
  
  .trust-grid {
    justify-content: center;
  }
  
  .content-panel {
    padding: 2rem;
    margin: 2rem auto;
  }
}