:root {
  /* Color System */
  --bg-primary: #0a0a0d;
  --bg-secondary: #141417;
  --bg-card: rgba(255, 255, 255, 0.03);
  
  --jade-green: #00a86b;
  --deep-emerald: #065f46;
  --gold-accent: #d4af37;
  --glow-green: rgba(0, 168, 107, 0.35);
  
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  
  /* Layout */
  --max-width: 1400px;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  /* UI Elements */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(to right, #fff, var(--jade-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--jade-green), var(--deep-emerald));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 168, 107, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-green);
  background: linear-gradient(135deg, #00c27b, var(--deep-emerald));
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--jade-green);
  color: var(--jade-green);
}

.btn-outline:hover {
  background: rgba(0, 168, 107, 0.1);
  box-shadow: 0 0 15px var(--glow-green);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 168, 107, 0.2);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--jade-green);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jade-green);
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--glow-green);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background-image: linear-gradient(to bottom, rgba(10, 10, 13, 0.6), var(--bg-primary)), url('images/photo-1518182170546-076616fdcbac.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 168, 107, 0.1) 0%, rgba(10, 10, 13, 0.9) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.2s;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Subpage Hero */
.subpage-hero {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.1) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid rgba(0, 168, 107, 0.1);
}

/* Game Section - THE CENTERPIECE */
.game-section {
  background: var(--bg-primary);
  position: relative;
}

.game-wrapper {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 168, 107, 0.3), 0 0 30px var(--glow-green);
  position: relative;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.game-wrapper:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 168, 107, 0.5), 0 0 50px var(--glow-green);
}

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

/* Features / Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 168, 107, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 168, 107, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 168, 107, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--jade-green);
}

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

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

.glass-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 40px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
}

.glass-panel h3 {
  color: var(--gold-accent);
  margin-top: 20px;
}

.glass-panel ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-control {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--jade-green);
  box-shadow: 0 0 10px var(--glow-green);
}

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

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

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

.footer-links h4 {
  color: var(--gold-accent);
  margin-bottom: 20px;
}

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

.footer-links a:hover {
  color: var(--jade-green);
  padding-left: 5px;
}

.legal-notice {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-md);
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
}

.legal-notice p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

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

/* Animations & Utils */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .section { padding: var(--spacing-tablet) 0; }
  .game-wrapper { width: 95%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: var(--spacing-mobile) 0; }
  .game-wrapper { width: 100%; border-radius: 0; }
  
  .mobile-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 13, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    clip-path: circle(0% at top right);
    transition: all 0.5s ease-in-out;
    border-bottom: 1px solid rgba(0, 168, 107, 0.2);
  }
  
  .nav-links.active {
    clip-path: circle(150% at top right);
  }
  
  .nav-cta {
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand p { max-width: 100%; }
}