:root {
  /* Aurora Lux UI Color System */
  --bg-primary: #06070c;
  --bg-secondary: #0f1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --grad-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad-secondary: linear-gradient(135deg, #a78bfa, #22d3ee);
  --glow: rgba(124, 58, 237, 0.6);
  --glow-cyan: rgba(6, 182, 212, 0.4);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.3));

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Grid & Layout */
  --container-max: 1320px;
  --game-max: 1300px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 99px;
  
  /* Spacing */
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;
  --section-space: 110px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

ul {
  list-style: none;
}

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

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

/* Background Effects */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
.lead { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; }

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(6, 7, 12, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.navbar .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  position: relative;
  z-index: 1001;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--grad-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

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

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

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

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

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

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: #22d3ee;
  margin-bottom: 1.5rem;
  font-weight: 500;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  opacity: 0.3;
  z-index: -1;
  filter: blur(40px);
}

/* Game Section - The Core Product */
.game-section {
  padding: 120px 0;
  position: relative;
  background: var(--bg-secondary);
}

.game-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-wrapper {
  max-width: var(--game-max);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px var(--glow-cyan);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-glass);
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 60px var(--glow);
}

.game-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.game-wrapper:hover::after {
  opacity: 1;
}

.game-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Glass Cards & Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.glass-card:hover {
  background: var(--surface-hover);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

/* Legal Banner & Footer */
.legal-banner {
  background: rgba(255, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  text-align: center;
}

.legal-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-badge {
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-weight: 700;
}

footer {
  background: #040508;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
}

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

.footer-brand h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.footer-links h5 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

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

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

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

/* Standard Pages (About, Terms, Privacy, Contact) */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(124,58,237,0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glass);
}

.page-header h1 {
  margin-bottom: 1rem;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-space) 32px;
}

.content-section h2 {
  margin-top: 2rem;
}

.content-section p, .content-section ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-section ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

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

.form-control:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

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

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

/* Media Queries */
@media (max-width: 1024px) {
  :root {
    --section-space: 80px;
  }
  .hero-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-space: 60px;
  }
  .container {
    padding: 0 24px;
  }
  .navbar .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 2rem;
    align-items: flex-start;
    transition: right 0.3s ease;
  }
  .navbar .nav-links.active {
    right: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero {
    padding-top: 120px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .game-wrapper {
    aspect-ratio: 4/3;
  }
}