:root {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary: #7c3aed;
  --accent: #c4b5fd;
  --accent-glow: rgba(196, 181, 253, 0.3);
  --bg-dark: #0d0221;
  --bg-mid: #1e0a3a;
  --bg-darker: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --text-light: #f8f9fa;
  --text-gray: #9ca3af;
}

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

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-darker) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(13, 2, 33, 0.95);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-shadow: 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.age-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.age-badge-large {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border-radius: 8px;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  position: absolute;
  top: 100px;
  right: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  text-shadow: 4px 4px 0 var(--secondary), 8px 8px 20px var(--primary-glow);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: var(--text-gray);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 6px 0 #5b21b6, 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 0 #5b21b6, 0 15px 35px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #5b21b6, 0 5px 15px var(--primary-glow);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 6px 0 var(--secondary), 0 10px 25px var(--accent-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 8px 0 var(--secondary), 0 15px 35px var(--accent-glow);
}

.hero-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  opacity: 0.8;
}

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

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-shadow: 3px 3px 0 var(--secondary), 6px 6px 15px var(--primary-glow);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--card-border);
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px var(--primary-glow), 0 0 0 2px var(--primary);
  border-color: var(--primary);
}

.game-image-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-darker));
  position: relative;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-align: center;
  padding: 1rem;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.game-category {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.game-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.play-demo-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 0 #5b21b6;
  font-family: 'Space Grotesk', sans-serif;
}

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

.play-demo-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #5b21b6;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px var(--primary-glow);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.responsible-gaming {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin: 80px 0;
}

.responsible-gaming h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-gray);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem;
  margin-top: 100px;
}

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

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

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

.footer-section a {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-disclaimer {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-disclaimer p {
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

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

.age-modal-content {
  background: var(--bg-mid);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.age-modal-content h2 {
  margin: 1.5rem 0 1rem;
  font-size: 2rem;
}

.age-modal-content p {
  margin-bottom: 2rem;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.age-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

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

.modal-content {
  background: var(--bg-mid);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

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

.modal-header h2 {
  margin: 0;
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.close-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

#game-iframe {
  flex: 1;
  border: none;
  width: 100%;
  background: #000;
}

.demo-unavailable {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.2rem;
  color: var(--text-gray);
}

.category-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.page-header {
  padding: 150px 20px 80px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 3px 3px 0 var(--secondary), 6px 6px 15px var(--primary-glow);
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-section h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.content-section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-gray);
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 2, 33, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    display: none;
    border-bottom: 1px solid var(--card-border);
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .hero-badge {
    top: 80px;
    right: 10px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    height: 95vh;
  }

  .age-modal-content {
    margin: 20px;
  }

  .age-modal-buttons {
    flex-direction: column;
  }
}