@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
  /* Color System */
  --bg-primary: #030f0b; /* Deep forest space tone */
  --bg-secondary: #081714; /* Dark moss */
  --bg-tertiary: #0c1f1c; /* Slightly lighter moss */
  
  --surface: rgba(16, 30, 25, 0.5); /* Soft glass */
  --surface-hover: rgba(16, 30, 25, 0.8);
  --border-glass: rgba(16, 185, 129, 0.15);
  
  --accent-primary: #10b981; /* Emerald green */
  --accent-secondary: #84cc16; /* Lime glow */
  --accent-cosmic: #06b6d4; /* Soft cyan */
  --accent-highlight: #fbbf24; /* Warm golden */
  
  /* Gradients */
  --gradient-nature: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-cosmic: linear-gradient(135deg, var(--accent-primary), var(--accent-cosmic), #1e3a8a);
  --gradient-glow: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  
  /* Text */
  --text-primary: #d1fae5; /* Soft white-green */
  --text-secondary: #94a3b8; /* Muted green-grey */
  --text-dark: #022c22;
  
  /* Layout */
  --container-max: 1320px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

.section-sm {
  padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

/* Header - Glass Cosmic Navbar */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 15, 11, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
}

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

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

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-cosmic);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  color: #fff;
}

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

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

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

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/photo-1519681393784-d120267933ba-hero-hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  margin-bottom: 32px;
  font-size: 1.25rem;
}

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

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--accent-highlight);
  backdrop-filter: blur(10px);
}

/* Game Section - Core Experience */
.game-section {
  position: relative;
  z-index: 5;
  padding: 4rem 0 var(--spacing-xl);
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.game-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.game-header h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.game-header p {
  color: var(--accent-primary);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.game-container {
  width: 100%;
  max-width: 1300px;
  height: 750px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.1), inset 0 0 20px rgba(16, 185, 129, 0.05);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-container:hover {
  transform: scale(1.005);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.2), inset 0 0 30px rgba(16, 185, 129, 0.1);
}

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

/* Glass Cards (Features / Legal) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-5px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
}

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

/* Particles Animation */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 10s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}

/* Footer */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-glass);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Content Pages */
.page-header {
  padding: 160px 0 80px;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.1) 0%, var(--bg-primary) 70%);
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
}

.page-content {
  padding: var(--spacing-lg) 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 { margin: 2rem 0 1rem; }
.page-content p { margin-bottom: 1.5rem; }
.page-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-secondary); }
.page-content li { margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-container {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 32px;
    transition: right 0.3s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .game-container {
    height: 500px;
    border-radius: 12px;
  }
}

/* Fade In Animation Class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}