:root {
  --base-bg: #facc15;
  --sec-layer: #fde68a;
  --dark-bg: #052e16;
  
  --primary-accent: linear-gradient(135deg, #22c55e, #16a34a);
  --secondary-accent: linear-gradient(135deg, #facc15, #f59e0b);
  --highlight-glow: linear-gradient(135deg, #a3e635, #4ade80);
  
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --text-light: #f9fafb;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --max-width: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--sec-layer);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { color: var(--text-muted); font-size: 1.125rem; }

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

ul { list-style: none; }

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

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

.section {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
  background: var(--secondary-accent);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark-bg);
  letter-spacing: -0.5px;
}

.logo span {
  color: #16a34a;
}

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

.nav-links a {
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--dark-bg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--text-dark);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--base-bg) 0%, var(--sec-layer) 100%);
  position: relative;
  overflow: hidden;
}

/* jungle-leaves-pattern-bg.svg (simulated with CSS pattern for cleanliness) */
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--dark-bg);
  color: var(--base-bg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

.hero-legal {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-legal span {
  font-weight: 700;
  color: var(--dark-bg);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

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

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

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

.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--sec-layer);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}

.trust-item h4 {
  font-size: 1.125rem;
}

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

.game-header {
  text-align: center;
  margin-bottom: 48px;
}

.game-header h2 {
  margin-bottom: 16px;
}

.game-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.game-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Features Grid */
.features-section {
  background: var(--dark-bg);
  color: var(--text-light);
}

.features-section h2, .features-section h4 {
  color: var(--text-light);
}

.features-section p {
  color: #a7f3d0;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h4 {
  margin-bottom: 12px;
}

/* Experience Section */
.experience-section {
  background: var(--surface-solid);
}

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

.experience-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.experience-content h2 {
  margin-bottom: 24px;
}

.experience-content p {
  margin-bottom: 24px;
}

.check-list {
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.check-list svg {
  color: #16a34a;
}

/* CTA Section */
.cta-section {
  background: var(--base-bg);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.cta-content p {
  margin-bottom: 40px;
  color: var(--text-dark);
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 80px 0 40px;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  color: #a7f3d0;
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-heading {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a7f3d0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--base-bg);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  color: #a7f3d0;
  font-size: 0.875rem;
}

.rg-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* Legal & Text Pages */
.page-header {
  background: linear-gradient(135deg, var(--base-bg) 0%, var(--sec-layer) 100%);
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.legal-content {
  background: var(--surface-solid);
  padding: 80px 0;
}

.text-container {
  max-width: 800px;
  margin: 0 auto;
}

.text-container h2 {
  margin: 40px 0 20px;
  font-size: 1.75rem;
}

.text-container p {
  margin-bottom: 24px;
}

.text-container ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.text-container li {
  margin-bottom: 8px;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-info p {
  margin-bottom: 32px;
}

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

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

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: #f9fafb;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #16a34a;
  background: #fff;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 46, 22, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: var(--base-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.modal-card h3 {
  margin-bottom: 16px;
}

.modal-card p {
  margin-bottom: 32px;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

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

/* Responsive System */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero .container, .experience-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .header .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
  }
  
  .header .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-links .btn {
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .game-controls {
    flex-direction: column;
    gap: 16px;
  }
  
  .game-controls .btn {
    width: 100%;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .section { padding: 60px 0; }
  
  .modal-actions { flex-direction: column; }
}