:root {
  --bg-primary: #0f1a14;
  --bg-secondary: #18261d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-primary: #d4a373;
  --accent-secondary: #6ba292;
  --accent-tertiary: #9c6644;
  --accent-gradient: linear-gradient(135deg, #d4a373, #6ba292);
  --text-primary: #f5f5f5;
  --text-secondary: #a3b3a3;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(107, 162, 146, 0.2);
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
}

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

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

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography Enhancements */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

/* Button System */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
  background: rgba(15, 26, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.header-cta {
  display: flex;
  align-items: center;
}

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

/* Hero Section */
.hero-section {
  padding: calc(var(--spacing-desktop) + 80px) 0 var(--spacing-desktop);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  object-fit: cover;
}

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

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content .story-intro {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-disclaimer {
  font-size: 0.8rem;
  color: rgba(163, 179, 163, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px rgba(15, 26, 20, 0.8);
  pointer-events: none;
}

/* Game Section */
.game-section {
  padding: var(--spacing-desktop) 0;
  background: var(--bg-secondary);
  position: relative;
}

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

.monkey-watching {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: inline-block;
  background: rgba(212, 163, 115, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
}

.game-container {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border: 1px solid rgba(107, 162, 146, 0.1);
}

.game-container iframe {
  width: 100%;
  height: 650px;
  border: none;
  border-radius: var(--radius-md);
  background: #000;
}

/* Features / Story Progress Section */
.features-section {
  padding: var(--spacing-desktop) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

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

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(107, 162, 146, 0.3);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 163, 115, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Standard Page Layout (About, Terms, etc.) */
.page-header {
  padding: calc(var(--spacing-desktop) + 60px) 0 60px;
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
  font-size: 3rem;
}

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

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-wrapper h2 {
  margin-top: 40px;
  font-size: 1.8rem;
  color: var(--accent-secondary);
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.content-wrapper ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content-wrapper ul li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  position: relative;
}

.content-wrapper ul li::before {
  content: '•';
  color: var(--accent-primary);
  position: absolute;
  left: -20px;
  font-weight: bold;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 2px rgba(107, 162, 146, 0.2);
}

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

/* Footer */
.site-footer {
  background: #080d0a;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

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

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

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.legal-disclaimer {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 800px;
}

.legal-disclaimer strong {
  color: var(--text-primary);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(163, 179, 163, 0.5);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-visual {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-disclaimer {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-desktop: var(--spacing-tablet);
  }
  
  .nav-links, .header-cta .btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .game-container iframe {
    height: 500px;
  }
  
  .content-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-desktop: var(--spacing-mobile);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .game-container iframe {
    height: 450px;
  }
}

/* Mobile Nav Active State */
.nav-active .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.nav-active .header-cta .btn {
  display: inline-block;
  margin-top: 20px;
  width: 100%;
}