/* CSS Reset & Variables */
:root {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary: #7c3aed;
  --accent: #c4b5fd;
  --accent-glow: rgba(196, 181, 253, 0.3);
  --bg-start: #0d0221;
  --bg-mid: #1e0a3a;
  --bg-end: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #c4b5fd;
  --radius: 14px;
  --transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 20px var(--primary-glow);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

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

.age-badge {
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 20px 80px;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px var(--primary-glow);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 4px 4px 0 var(--secondary), 8px 8px 20px var(--primary-glow);
}

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

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 40px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 0 var(--secondary), 0 12px 30px var(--primary-glow);
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 0 var(--secondary), 0 16px 40px var(--primary-glow);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--accent);
  border: 2px solid var(--primary);
  box-shadow: 0 8px 0 rgba(124, 58, 237, 0.5);
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(139, 92, 246, 0.2);
}

.disclaimer-text {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* Sections */
section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 3px 3px 0 var(--secondary), 6px 6px 15px var(--primary-glow);
  display: inline-block;
}

.section-header .age-badge {
  margin-left: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 16px auto 0;
}

/* Game Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 var(--primary-glow);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 40px var(--primary-glow), 0 0 60px var(--primary-glow);
  border-color: var(--primary);
}

.game-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
}

.game-category {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

.game-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0 20px 16px;
  color: var(--text-primary);
}

.play-demo-btn {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 0 var(--secondary);
}

.play-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--secondary), 0 8px 20px var(--primary-glow);
}

/* Game Modal */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-mid);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px var(--primary-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
  gap: 16px;
}

.modal-header h2 {
  font-size: 24px;
  flex: 1;
}

.close-btn {
  background: var(--primary);
  border: none;
  color: white;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition);
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

#game-iframe {
  width: 100%;
  height: 700px;
  border: none;
  background: #000;
}

.demo-unavailable {
  display: none;
  height: 400px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px var(--primary-glow);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

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

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px var(--primary-glow);
  animation: pulse 2s infinite;
}

.step h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--accent);
}

.step p {
  color: var(--text-secondary);
}

/* Responsible Gaming */
.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  margin: 80px auto;
  max-width: 900px;
  box-shadow: 0 12px 40px var(--primary-glow);
}

.responsible-gaming .age-badge {
  font-size: 32px;
  padding: 16px 32px;
  margin-bottom: 24px;
}

.responsible-gaming h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.responsible-gaming p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.responsible-gaming a {
  color: var(--primary);
  text-decoration: underline;
}

/* FAQ */
.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.faq-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
footer {
  background: rgba(13, 2, 33, 0.9);
  border-top: 2px solid var(--card-border);
  padding: 60px 0 30px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary);
}

.footer-section p, .footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  line-height: 1.6;
}

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

.footer-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 20px 40px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 28px;
  margin: 20px 0;
  box-shadow: 0 8px 30px var(--primary-glow);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Age Verification Modal */
.age-verification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.age-verification-modal.active {
  display: flex;
}

.age-verification-content {
  background: var(--bg-mid);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 60px 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 80px var(--primary-glow);
  animation: fadeInUp 0.5s ease-out;
}

.age-verification-icon {
  font-size: 80px;
  margin-bottom: 24px;
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
}

.age-verification-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 var(--secondary);
}

.age-verification-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.age-verification-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-verification-buttons .btn {
  min-width: 150px;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 28px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--accent);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}

.category-btn:hover, .category-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: scale(1.05);
}

/* Page Content */
.page-content {
  padding: 60px 0 100px;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 48px;
  margin-bottom: 32px;
  text-shadow: 3px 3px 0 var(--secondary);
}

.page-content h2 {
  font-size: 32px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}

.page-content h3 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent);
}

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

.page-content ul, .page-content ol {
  margin: 16px 0 16px 32px;
  color: var(--text-secondary);
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 30px var(--primary-glow);
  }
  50% {
    box-shadow: 0 8px 50px var(--primary-glow);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }
  .section-header h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13, 2, 33, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 2px solid var(--card-border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 80px 20px 60px;
  }
  
  .hero h1 {
    font-size: 36px;
    text-shadow: 2px 2px 0 var(--secondary), 4px 4px 15px var(--primary-glow);
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .section-header h2 {
    font-size: 32px;
    text-shadow: 2px 2px 0 var(--secondary), 4px 4px 12px var(--primary-glow);
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 60px 0;
  }
  
  #game-iframe {
    height: 500px;
  }
  
  .modal-header h2 {
    font-size: 18px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-badge {
    font-size: 16px;
    padding: 10px 24px;
  }
  
  .age-verification-content {
    padding: 40px 24px;
    margin: 20px;
  }
  
  .age-verification-icon {
    font-size: 60px;
  }
  
  .age-verification-content h2 {
    font-size: 24px;
  }
  
  #game-iframe {
    height: 400px;
  }
}