:root {
  --bg-primary: #0b0f1a;
  --bg-secondary: #121a2a;
  --bg-surface: #1c2536;
  --accent-red: #ef4444;
  --accent-sky: #38bdf8;
  --accent-soft: #7dd3fc;
  --glow-highlight: #fca5a5;
  --text-primary: #f1f5f9;
  --text-secondary: #9aa4b2;
  --gradient-primary: linear-gradient(135deg, #ef4444, #38bdf8);
  --gradient-secondary: linear-gradient(135deg, #38bdf8, #7dd3fc);
  --glass-bg: rgba(28, 37, 54, 0.6);
  --glass-border: rgba(239, 68, 68, 0.2);
  --nav-glass: rgba(15, 20, 35, 0.7);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

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

/* Layout */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background-color: var(--bg-secondary);
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1392px;
  z-index: 1000;
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(239, 68, 68, 0.1);
  transition: all 0.3s ease;
}

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

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  color: var(--text-primary);
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(28, 37, 54, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-sky);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 15, 26, 0.4), var(--bg-primary));
}

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

.hero p {
  margin: 24px 0 32px;
  font-size: 1.25rem;
}

.hero-disclaimer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.badge {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid var(--glass-border);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Section */
.game-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding-bottom: 80px;
}

.game-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 4px;
  background: var(--gradient-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px rgba(239, 68, 68, 0.2);
}

.game-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--bg-primary);
  border-radius: 14px;
  overflow: hidden;
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Image + Text Split Sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content h2 {
  margin-bottom: 24px;
}

.split-content p {
  margin-bottom: 24px;
}

.image-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  background: var(--gradient-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  border-radius: 18px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-red);
}

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

.feature-card h3 {
  margin-bottom: 16px;
}

/* Page Banner (for inner pages) */
.page-banner {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gradient-primary);
  box-shadow: 0 0 15px var(--accent-red);
}

/* Content Pages Layout */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 32px;
  border: 1px solid var(--glass-border);
}

.content-block h2 {
  margin-bottom: 24px;
  color: var(--accent-sky);
}

.content-block p, .content-block ul {
  margin-bottom: 16px;
}

.content-block ul {
  padding-left: 24px;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-sky);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

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

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

.footer-brand p {
  margin-top: 24px;
  max-width: 400px;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 0.875rem;
  max-width: 800px;
  color: #64748b;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .split-section {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  
  .split-section.reverse {
    direction: rtl;
  }
  
  .split-section.reverse > * {
    direction: ltr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .site-header {
    top: 0;
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-container {
    padding: 16px 24px;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-links, .nav-cta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }
  
  .nav-links {
    padding-bottom: 100px;
  }
  
  .nav-cta {
    top: auto;
    bottom: 10%;
    height: auto;
    background: transparent;
  }
  
  .nav-links.active, .nav-cta.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .content-block {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-disclaimer {
    flex-direction: column;
    align-items: center;
  }
  
  .badge {
    width: 100%;
    text-align: center;
  }
}