@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Jungle Gold Palette */
  --color-base-dark: #070e09; /* Deepest shadow */
  --color-bg-primary: #0a130c; /* Deep jungle green */
  --color-bg-secondary: #132417; /* Dark moss green */
  --color-surface-glass: rgba(19, 36, 23, 0.65); /* Translucent green glass */
  --color-surface-border: rgba(140, 123, 79, 0.25);
  
  --color-accent-gold: #a69056; /* Soft jungle gold */
  --color-accent-gold-hover: #c9b16a;
  --color-accent-leaf: #3a5a3f; /* Muted leaf green */
  
  --color-text-primary: #e6e4d5; /* Soft warm off-white */
  --color-text-secondary: #9aa89c; /* Desaturated green-gray */
  --color-text-muted: #6e7d70;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: clamp(3.125rem, 5vw, 4.375rem); /* 50px mobile to 70px tablet */
  --space-xl: clamp(4.375rem, 8vw, 6.25rem); /* 70px tablet to 100px desktop */

  /* Layout */
  --container-max: 1400px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;

  /* Typography */
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

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

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

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

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.text-gold { color: var(--color-accent-gold); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }

/* Layout Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 10;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-accent-gold));
  color: var(--color-base-dark);
  box-shadow: 0 4px 15px rgba(166, 144, 86, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(166, 144, 86, 0.3);
  background: linear-gradient(135deg, var(--color-accent-leaf), var(--color-accent-gold-hover));
}

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

.btn-glass:hover {
  background: rgba(140, 123, 79, 0.15);
  border-color: var(--color-accent-gold);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-surface-border);
  box-shadow: 0 10px 30px rgba(7, 14, 9, 0.5);
  transition: background 0.3s ease;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  letter-spacing: 1px;
}

.nav__list {
  display: flex;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-gold);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--color-accent-gold);
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

/* Ambient Effects */
.ambient-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fog {
  position: absolute;
  width: 200%;
  height: 100%;
  background: url('images/photo-1485236715568-ddc5ee6ca227-fog.png') repeat-x;
  background-size: cover;
  opacity: 0.05;
  mix-blend-mode: screen;
  animation: driftFog 120s linear infinite;
}

.light-rays {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at top left, rgba(166, 144, 86, 0.15) 0%, transparent 60%);
  transform: rotate(-30deg);
  animation: pulseRays 8s ease-in-out infinite alternate;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-accent-gold) 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.15;
  animation: floatParticles 40s linear infinite;
}

@keyframes driftFog { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulseRays { 0% { opacity: 0.5; transform: rotate(-30deg) scale(1); } 100% { opacity: 0.8; transform: rotate(-30deg) scale(1.05); } }
@keyframes floatParticles { 0% { background-position: 0 0; } 100% { background-position: 1000px 1000px; } }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: linear-gradient(to bottom, rgba(10, 19, 12, 0.6), rgba(10, 19, 12, 1)), url('images/photo-1516026672322-bc52d61a55d5-hero.png') center/cover no-parallax;
  background-attachment: fixed;
  text-align: center;
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero__subtitle {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent-gold);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  display: block;
}

.hero__legal {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: rgba(7, 14, 9, 0.6);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.hero__legal p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Artifact Section */
.game-section {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--color-bg-primary);
}

.game-container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-base-dark);
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(166, 144, 86, 0.1);
  border: 2px solid var(--color-bg-secondary);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, rgba(58, 90, 63, 0.4), transparent, rgba(166, 144, 86, 0.2));
  z-index: -1;
  filter: blur(8px);
}

.game-container:hover {
  transform: scale(1.01);
  box-shadow: 0 40px 80px rgba(0,0,0,0.9), inset 0 0 40px rgba(166, 144, 86, 0.15);
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 50px rgba(0,0,0,1);
}

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

/* Foliage Overlays on Game */
.game-vines {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.game-vines.top-left {
  top: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: url('images/photo-1621274403987-160bf2825bf2-game-vines-top-left-game-vi.png') center/cover;
  mask-image: radial-gradient(circle at top left, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at top left, black, transparent 70%);
  opacity: 0.8;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

/* Features / SaaS Cards */
.card {
  background: var(--color-surface-glass);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--color-accent-gold);
  transform: translateY(-5px);
  background: rgba(19, 36, 23, 0.8);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(166, 144, 86, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--color-accent-gold);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Internal Page Headers */
.page-header {
  padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
  background: linear-gradient(to bottom, rgba(10, 19, 12, 0.8), var(--color-bg-primary)), url('images/photo-1542273917363-3b1817f69a2d-page-header-page-header.png') center/cover;
  text-align: center;
  border-bottom: 1px solid var(--color-surface-border);
}

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

.content-wrapper h2 {
  margin-top: var(--space-md);
}

.content-wrapper ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.content-wrapper li {
  margin-bottom: var(--space-xs);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(7, 14, 9, 0.8);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 10px rgba(166, 144, 86, 0.2);
}

/* Footer */
.footer {
  background: var(--color-base-dark);
  border-top: 1px solid var(--color-surface-border);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  max-width: 400px;
  font-size: 0.9rem;
}

.footer-title {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-ui);
  font-weight: 600;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

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

.footer-links a:hover {
  color: var(--color-accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(140, 123, 79, 0.1);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .game-container { width: 95%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav__list { display: none; } /* Simple hiding for mobile, assumes a hamburger toggle in production JS */
  .hero__content { padding: 0 var(--space-sm); }
  .game-container { width: 100%; border-radius: 0; border-left: none; border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
}