:root {
  --bg-primary: #0a090e;
  --bg-secondary: #14121a;
  --bg-glass: rgba(255, 255, 255, 0.02);
  --bg-glass-hover: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(157, 78, 221, 0.15);
  
  --accent-primary: #9d4edd;
  --accent-secondary: #c77dff;
  --accent-glow: rgba(157, 78, 221, 0.4);
  
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-accent {
  color: var(--accent-secondary);
  text-shadow: 0 0 15px var(--accent-glow);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #6002ee);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
  border: 1px solid rgba(199, 125, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
  background: linear-gradient(135deg, #a75ae0, #7312f5);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 9, 14, 0.85) 0%, rgba(10, 9, 14, 0.6) 50%, var(--bg-primary) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  background: linear-gradient(to right, #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(199, 125, 255, 0.2);
}

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

.legal-disclaimer-hero {
  display: inline-block;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.legal-disclaimer-hero p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.legal-disclaimer-hero span {
  color: var(--accent-secondary);
}

/* Page Hero */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top, rgba(157, 78, 221, 0.15) 0%, var(--bg-primary) 70%);
  z-index: -1;
}

/* Game Section */
.game-section {
  position: relative;
  padding: 40px 0 120px;
  z-index: 10;
  margin-top: -80px;
}

.game-wrapper {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: var(--bg-secondary);
  padding: 10px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 60px rgba(157, 78, 221, 0.15);
  border: 1px solid var(--border-glass);
  transition: transform 0.3s ease;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(157,78,221,0.5), rgba(10,9,14,0), rgba(199,125,255,0.3));
  z-index: -1;
}

.game-frame {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: none;
  background-color: #000;
  display: block;
}

/* Glass Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(157, 78, 221, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.glass-card h3 {
  color: var(--accent-secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand p {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  max-width: 400px;
}

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

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

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

.footer-links a:hover {
  color: var(--accent-secondary);
  padding-left: 5px;
}

.footer-legal-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

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

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

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

/* Content Blocks for Legal Pages */
.content-block {
  background: var(--bg-glass);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 2rem;
}

.content-block h3 {
  color: var(--accent-secondary);
  margin-top: 2rem;
}

.content-block h3:first-child {
  margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 { font-size: 3.2rem; }
  .game-wrapper { width: 95%; aspect-ratio: 4/3; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s ease-in-out;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .game-wrapper {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .game-frame {
    border-radius: 0;
  }
  
  .grid-2, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: 1;
  }

  .content-block {
    padding: 2rem 1.5rem;
  }
}