:root {
  --bg-primary: #020617;
  --bg-secondary: #041830;
  --acc-primary: linear-gradient(135deg, #38bdf8, #0ea5e9);
  --acc-neon: linear-gradient(135deg, #22d3ee, #06b6d4);
  --acc-soft: linear-gradient(135deg, #7dd3fc, #38bdf8);
  --glow: rgba(56, 189, 248, 0.35);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --spacing-mob: 60px;
  --spacing-tab: 80px;
  --spacing-desk: 120px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.text-neon {
  background: var(--acc-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  width: 100%;
}

.btn-primary {
  background: var(--acc-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: rgba(56, 189, 248, 0.8);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: none;
}

.nav-cta {
  display: none;
}

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

.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 999;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-nav a:hover {
  background: var(--surface);
  color: #38bdf8;
}

/* Sections Base */
section {
  padding: var(--spacing-mob) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: var(--spacing-mob);
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 50%), var(--bg-primary);
  position: relative;
}

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

.hero-content {
  text-align: center;
}

.hero-content p.subtext {
  font-size: 1.125rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.legal-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  background: var(--surface);
  padding: 10px;
  border-radius: 6px;
  display: inline-block;
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 40px rgba(14, 165, 233, 0.2);
  pointer-events: none;
}

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Game Section */
.game-section {
  background: var(--bg-secondary);
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-top: 30px;
}

.game-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(56, 189, 248, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #38bdf8;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Visual Info Section */
.visual-section {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

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

.visual-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* CTA Section */
.cta-section {
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.2), transparent 60%);
  text-align: center;
  padding: 80px 0;
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 40px 20px;
  border-radius: 20px;
}

/* Footer */
.footer {
  background: #01040a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 20px;
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

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

.footer-links a:hover {
  color: #38bdf8;
}

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

/* Legal & Standard Pages Content */
.page-header {
  padding: 140px 0 60px;
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin-top: 30px;
  color: #38bdf8;
}

.page-content p {
  margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(0, 0, 0, 0.4);
}

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

/* Responsive Rules */
@media (min-width: 768px) {
  section { padding: var(--spacing-tab) 0; }
  h1 { font-size: 3.5rem; }
  
  .btn { width: auto; }
  .hero-buttons { flex-direction: row; justify-content: center; }
  
  .mobile-menu-btn { display: none; }
  .nav-links { display: flex; gap: 30px; }
  .nav-links a { font-weight: 500; transition: color 0.3s; }
  .nav-links a:hover { color: #38bdf8; }
  .nav-cta { display: block; }
  
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .game-controls { flex-direction: row; justify-content: center; }
  .game-header { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  section { padding: var(--spacing-desk) 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .hero-content { text-align: left; }
  .hero-buttons { justify-content: flex-start; }
  
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .visual-grid { grid-template-columns: 1fr 1fr; }
  .visual-grid.reverse { direction: rtl; }
  .visual-grid.reverse > * { direction: ltr; }
}