:root {
  /* 1. DESIGN SYSTEM - STRICT COLOR PALETTE */
  --bg-primary: #060606;
  --bg-secondary: #121212;
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --accent-green: #22c55e;
  --accent-yellow: #eab308;
  --accent-dark: #2a2a2a;
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  
  /* 2. LAYOUT SYSTEM - SPACING SCALES */
  --max-width: 1320px;
  --space-section: 110px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 20px;
  
  /* Gradients */
  --gradient-glow: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-yellow) 100%);
  --gradient-text: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-yellow) 100%);
}

@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 60px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* LAYOUT & CONTAINERS */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

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

/* GLASSMORPHISM UTILITIES */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 40px;
}

/* BUTTON SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-glow);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.3);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

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

.btn-secondary:hover {
  border-color: var(--accent-green);
  background: rgba(34, 197, 94, 0.05);
  transform: translateY(-3px);
}

/* HEADER (CINEMA NAVBAR) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 6, 6, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-glow);
  border-radius: 4px;
  display: inline-block;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line></svg>') center/cover;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line></svg>') center/cover;
}

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

.nav-item {
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  padding: 8px 0;
}

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

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-glow);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.nav-item.active {
  color: var(--text-primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s ease;
}

/* HERO SECTION */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 70% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(234, 179, 8, 0.05) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-disclaimer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: var(--border-radius-sm);
}

.disclaimer-badge {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.disclaimer-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(6,6,6,0.8) 0%, transparent 100%);
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 10s ease;
}

.hero-visual:hover img {
  transform: scale(1);
}

/* GAME SECTION (CORE PRODUCT) */
.game-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--surface-glass);
  border-bottom: 1px solid var(--surface-glass);
  text-align: center;
}

.game-header {
  margin-bottom: 40px;
}

.game-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4px;
  background: var(--gradient-glow);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.1), 0 0 80px rgba(234, 179, 8, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 0 50px rgba(34, 197, 94, 0.2), 0 0 100px rgba(234, 179, 8, 0.1);
}

.game-container {
  background: var(--bg-primary);
  border-radius: 20px;
  width: 100%;
  height: 750px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* FEATURES SECTION */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--surface-glass-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-green);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* INTERIOR PAGES HERO */
.page-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
  background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--surface-glass);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 24px;
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* CONTENT PAGES (Legal, About, etc.) */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--accent-green);
}

.content-block h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-top: 32px;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.125rem;
}

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

.content-block li {
  margin-bottom: 8px;
}

/* CONTACT FORM */
.contact-form {
  display: grid;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent-dark);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

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

/* FOOTER */
.footer {
  background: #000;
  border-top: 1px solid var(--surface-glass);
  padding: 80px 0 40px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--surface-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--surface-glass);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--accent-dark);
}

.footer-warning span {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--accent-dark);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Light Sweep Effect */
.light-sweep {
  position: relative;
  overflow: hidden;
}

.light-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  animation: sweep 6s infinite;
}

@keyframes sweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 32px;
  }
  
  .hero-disclaimer {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .game-container {
    height: 600px;
    width: 95%;
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-item {
    font-size: 1.5rem;
  }
  
  .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);
  }
  
  .nav-cta {
    display: none;
  }
  
  .game-container {
    height: 500px;
    width: 100%;
    border-radius: 12px;
  }
  
  .game-wrapper {
    padding: 2px;
    border-radius: 14px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}