:root {
  --bg-primary: #050507;
  --bg-secondary: #0b1120;
  --surface-layer: rgba(255, 255, 255, 0.04);
  --glass-layer: rgba(255, 255, 255, 0.06);
  --neon-pink: #ff007f;
  --neon-cyan: #00f5ff;
  --neon-purple: #8b5cf6;
  --gradient-primary: linear-gradient(135deg, #ff007f, #00f5ff, #8b5cf6);
  --text-primary: #e5e7eb;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1400px;
  --section-spacing-desktop: 100px;
  --section-spacing-tablet: 70px;
  --section-spacing-mobile: 50px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url('images/cyberpunk-city-bg-neon.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-primary) 100%);
  z-index: -1;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.3;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (max-width: 1024px) {
  .section { padding: var(--section-spacing-tablet) 0; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-spacing-mobile) 0; }
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Glassmorphism */
.glass-panel {
  background: var(--surface-layer);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-layer);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card {
  background: var(--surface-layer);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

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

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--neon-pink);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.1) inset;
}

.btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3) inset, 0 0 10px rgba(0, 245, 255, 0.2);
}

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

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* Main Game Section */
.game-section {
  position: relative;
  z-index: 10;
}

.holographic-frame {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px;
  background: var(--surface-layer);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.15), inset 0 0 20px rgba(255, 0, 127, 0.1);
  animation: float 6s ease-in-out infinite, neonPulse 4s infinite alternate;
}

.holographic-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(45deg, var(--neon-pink), transparent, var(--neon-cyan), transparent, var(--neon-purple));
  z-index: -1;
  opacity: 0.5;
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
}

.game-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #000;
  position: relative;
}

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

/* Features / Compliance */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(255, 0, 127, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--neon-pink);
}

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

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-about p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.compliance-footer-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.age-gate {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* Typography Pages */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}

.content-box h2 {
  margin: 32px 0 16px;
  color: var(--neon-cyan);
}

.content-box p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-box ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.1), inset 0 0 15px rgba(255, 0, 127, 0.05); }
  100% { box-shadow: 0 0 50px rgba(0, 245, 255, 0.25), inset 0 0 25px rgba(255, 0, 127, 0.15); }
}