:root {
  /* Color System */
  --bg-primary: #0A0A0D;
  --bg-secondary: #141417;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.05);
  
  --accent-primary: #8B1E1E;
  --accent-secondary: #3A2F2F;
  --accent-highlight: #C2A36B;
  
  --text-primary: #F5F5F5;
  --text-secondary: #9CA3AF;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --glow-accent: rgba(139, 30, 30, 0.5);
  --glow-subtle: rgba(139, 30, 30, 0.2);

  /* Spacing */
  --space-desktop: 100px;
  --space-tablet: 70px;
  --space-mobile: 50px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

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

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

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

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

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

.highlight { color: var(--accent-highlight); }
.text-center { text-align: center; }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.bg-secondary {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(139, 30, 30, 0.2);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(139, 30, 30, 0.1);
  box-shadow: 0 0 15px var(--glow-subtle);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 13, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 30, 30, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: radial-gradient(circle at center, rgba(30, 20, 20, 0.8) 0%, var(--bg-primary) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/photo-1517554593466-9ab3d1cdb535-hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  filter: grayscale(0.5) contrast(1.2);
}

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

.hero-disclaimer {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-highlight);
  border: 1px solid rgba(194, 163, 107, 0.2);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Section - The Core Experience */
.game-section {
  padding: var(--space-desktop) 0;
  background: var(--bg-primary);
  position: relative;
}

.game-wrapper {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 30, 30, 0.3);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 10;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 2px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 60px rgba(139, 30, 30, 0.25), 0 0 0 1px rgba(139, 30, 30, 0.6);
}

.game-wrapper:hover::before {
  opacity: 0.5;
}

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

/* Grid Layouts & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 30, 30, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px var(--glow-subtle);
}

/* Inner Page Headers */
.page-header {
  padding: 150px 0 80px;
  background: radial-gradient(circle at center bottom, rgba(30, 20, 20, 0.8) 0%, var(--bg-primary) 100%);
  text-align: center;
  border-bottom: 1px solid var(--surface-border);
}

/* Content Blocks (Legal, About, etc.) */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 50px;
  margin-bottom: 30px;
}

.content-block h2 {
  color: var(--accent-highlight);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* CTA Banner */
.cta-banner {
  background: linear-gradient(rgba(10, 10, 13, 0.9), rgba(10, 10, 13, 0.9)), url('images/photo-1605806616949-1e87b487cb2a-cta-banner-cta-banner.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid rgba(139, 30, 30, 0.3);
  border-bottom: 1px solid rgba(139, 30, 30, 0.3);
  position: relative;
}

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

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

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--surface-border);
  color: rgba(156, 163, 175, 0.5);
  font-size: 0.85rem;
}

/* 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; }
.delay-3 { animation-delay: 0.6s; }

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

/* Responsive Rules */
@media (max-width: 1024px) {
  h1 { font-size: 3.2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--space-tablet) 0; }
  .game-wrapper { width: 95%; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .container { padding: 0 20px; }
  .section { padding: var(--space-mobile) 0; }
  
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .mobile-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(139, 30, 30, 0.3);
    padding: 20px;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .game-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
  }
  
  .content-block { padding: 30px 20px; }
}