:root {
  /* Colors - Base */
  --bg-primary: #020403;
  --bg-secondary: #07110c;
  
  /* Colors - Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  /* Accents - Gradients */
  --accent-emerald: linear-gradient(135deg, #16a34a, #22c55e);
  --accent-amber: linear-gradient(135deg, #f97316, #facc15);
  --accent-bio: linear-gradient(135deg, #4ade80, #22d3ee);
  
  /* Glow Effects */
  --glow-green: rgba(34, 197, 94, 0.35);
  --glow-amber: rgba(249, 115, 22, 0.35);
  --glow-cyan: rgba(34, 211, 238, 0.35);
  
  /* Typography */
  --text-primary: #ecfdf5;
  --text-secondary: #bbf7d0;
  --text-muted: #6ee7b7;
  
  /* Layout */
  --max-width: 1280px;
  --nav-width: 80px;
  --border-radius: 26px;
  --border-radius-sm: 16px;
  
  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Syncopate', 'Space Grotesk', var(--font-main);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Subtle ambient background glow */
  background-image: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

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

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

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

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

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

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-padding {
  padding: 8rem 0;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.glass:hover {
  border-color: var(--glass-highlight);
}

/* Header (Logo & Top CTA) */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through empty space */
}

.top-bar > * {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--glow-cyan);
}

.logo svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--glow-cyan));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #000;
  box-shadow: 0 0 20px var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow-green), inset 0 0 10px rgba(255,255,255,0.5);
}

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

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-highlight);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* Floating Vertical Nav */
.floating-nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: var(--nav-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  gap: 2rem;
  border-radius: 40px;
  z-index: 90;
  background: linear-gradient(180deg, rgba(7, 17, 12, 0.4) 0%, rgba(2, 4, 3, 0.6) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 20px rgba(0,0,0,0.5), 0 0 15px var(--glow-green);
  animation: float-slow 6s ease-in-out infinite;
}

.nav-item {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: relative;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

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

.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-item:hover {
  color: #fff;
  transform: scale(1.1);
}

.nav-item:hover svg {
  filter: drop-shadow(0 0 5px #fff);
}

.nav-item:hover::before {
  opacity: 0.2;
  transform: scale(1);
  box-shadow: 0 0 15px var(--glow-green);
}

.nav-item.active {
  color: #fff;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 10px var(--glow-green);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .floating-nav {
    left: 50%;
    top: auto;
    bottom: 2rem;
    transform: translateX(-50%);
    flex-direction: row;
    width: auto;
    height: 70px;
    padding: 0 2rem;
    animation: none;
  }
  
  .top-bar {
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(2,4,3,0.9), transparent);
  }
  
  .logo span {
    display: none; /* Hide text on mobile */
  }
  
  body {
    padding-bottom: 100px;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Image Name: hero-jungle-bg */
  background-image: url('images/photo-1559999127-b8b7f927dab8.png');
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.4);
  transform: scale(1.05); /* Prevent blur edges */
}

/* Light Rays */
.light-rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    105deg,
    transparent,
    transparent 10%,
    rgba(255, 255, 255, 0.03) 12%,
    transparent 14%
  );
  animation: ray-shift 20s linear infinite;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-legal {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .hero-legal {
    bottom: 6rem; /* Above mobile nav */
  }
}

/* Particles System */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--glow-green);
  border-radius: 50%;
  filter: blur(2px);
  animation: float-up linear infinite;
}

/* Main Game Section */
.game-section {
  position: relative;
  z-index: 5;
  margin-top: -5vh; /* Overlap hero slightly */
}

.game-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px; /* Space for glowing border */
  position: relative;
}

/* Animated Gradient Border for Game */
.game-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(var(--border-radius) + 10px);
  padding: 3px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(34, 211, 238, 0.2), rgba(249, 115, 22, 0.2), rgba(34, 197, 94, 0.5));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradient-move 8s ease infinite;
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(34, 197, 94, 0.1);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.game-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 50px rgba(34, 197, 94, 0.2);
}

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

.game-info {
  text-align: center;
  margin-top: 2rem;
}

.game-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Features Section - Evolution Grid */
.features {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px var(--glow-green);
}

.feature-card:hover::after {
  left: 150%;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

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

.feature-card h3 {
  font-size: 1.25rem;
  color: #fff;
}

/* Asymmetrical Grid Spanning */
.feature-card:nth-child(1) { grid-column: span 8; }
.feature-card:nth-child(2) { grid-column: span 4; }
.feature-card:nth-child(3) { grid-column: span 4; }
.feature-card:nth-child(4) { grid-column: span 8; }

@media (max-width: 900px) {
  .feature-card:nth-child(n) { grid-column: span 12; }
}

/* Immersive Info Sections */
.info-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.info-section.reverse {
  flex-direction: row-reverse;
}

.info-content {
  flex: 1;
}

.info-visual {
  flex: 1;
  position: relative;
}

.info-visual-inner {
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.info-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s linear;
}

.info-visual:hover img {
  transform: scale(1.1);
}

.info-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--glow-amber);
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .info-section, .info-section.reverse {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Text Content Pages (Terms, Privacy, etc) */
.page-header {
  padding: 12rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Image Name: page-header-dino-bg */
  background-image: linear-gradient(to bottom, rgba(2, 4, 3, 0.6), var(--bg-primary)),
                    url('images/photo-1518331647614-7a1f04cd34cb.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  opacity: 0.6;
}

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

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

.content-wrapper p, .content-wrapper ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-wrapper ul {
  padding-left: 2rem;
}

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

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.form-control {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

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

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

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* Footer */
.site-footer {
  background: #010201;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

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

.disclaimer-box {
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

@keyframes ray-shift {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(10%); }
}

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

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

/* Utility to generate random particles (handled in HTML style tags for simplicity) */