:root {
  /* Color System - Neon Harvest Future */
  --bg-primary: #050507;
  --bg-secondary: #0d1117;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Gradients */
  --grad-harvest: linear-gradient(135deg, #facc15, #f59e0b);
  --grad-neon: linear-gradient(135deg, #22c55e, #4ade80);
  --grad-premium: linear-gradient(135deg, #22c55e, #facc15);
  
  /* Glows */
  --glow-green: rgba(34, 197, 94, 0.45);
  --glow-gold: rgba(250, 204, 21, 0.45);
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Spacing */
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7.5rem; /* 120px desktop */
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-bg);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { line-height: 1.6; color: var(--text-secondary); }

.text-gradient-gold {
  background: var(--grad-harvest);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-green {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Layout System */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.main-wrapper {
  padding-left: 100px; /* Space for side nav */
}

/* Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:hover::after {
  opacity: 1;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad-premium);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--glow-green);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px var(--glow-green);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: #facc15;
  box-shadow: 0 0 15px var(--glow-gold);
}

/* Hybrid Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem 0 100px; /* Account for side nav */
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}
.top-header > * {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--grad-neon);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 15px var(--glow-green);
}

/* Side Floating Nav */
.side-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.5rem;
  border-radius: 30px;
}

.nav-item {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: #22c55e;
  transform: scale(1.1);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 15px var(--glow-green);
}

.nav-item.active {
  background: var(--grad-premium);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-green);
}

.nav-tooltip {
  position: absolute;
  left: calc(100% + 15px);
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--glass-border);
}
.nav-item:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(250, 204, 21, 0.1) 0%, var(--bg-primary) 70%);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Particles / Fireflies */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #facc15;
  border-radius: 50%;
  box-shadow: 0 0 10px #facc15, 0 0 20px #facc15;
  animation: float-up 10s infinite linear, glow-pulse 2s infinite ease-in-out alternate;
}

/* Game Section */
.game-hub {
  position: relative;
  z-index: 5;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-container-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(250,204,21,0.3));
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-container-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 30px 60px rgba(34,197,94,0.2);
}

.game-container-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: var(--grad-premium);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 4s linear infinite;
}

.game-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  border: none;
  display: block;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.legal-notice {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Asymmetric Grid Section */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 20px rgba(34, 197, 94, 0.05);
}

.card-large { grid-column: span 8; }
.card-small { grid-column: span 4; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(250, 204, 21, 0.1);
  display: grid;
  place-items: center;
  color: #facc15;
}
.feature-card:nth-child(even) .feature-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

/* Internal Pages Layout */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.1) 0%, var(--bg-primary) 70%);
}

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

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

.content-box p {
  margin-bottom: 1.5rem;
}

.content-box ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.content-box li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

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

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: var(--space-xl);
}

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

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}

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

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links a:hover {
  color: #22c55e;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

@keyframes glow-pulse {
  from { opacity: 0.5; box-shadow: 0 0 5px #facc15; }
  to { opacity: 1; box-shadow: 0 0 15px #facc15, 0 0 30px #facc15; }
}

@keyframes borderGlow {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.fade-in {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Responsiveness */
@media (max-width: 1024px) {
  :root {
    --space-xl: 5rem;
  }
  .card-large, .card-small {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding-left: 0;
    padding-bottom: 80px; /* Space for bottom nav */
  }
  
  .top-header {
    padding: 0 1.5rem;
  }
  
  .side-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
    border-radius: 20px 20px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
  }
  
  .nav-tooltip {
    display: none;
  }
  
  .card-large, .card-small {
    grid-column: span 12;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  h1 { font-size: 2.5rem; }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .game-controls {
    flex-direction: column;
    gap: 1rem;
  }
}