/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:         #4a7c59;
  --green-dark:    #2d5c3e;
  --green-light:   #e4f0dc;
  --green-mid:     #d8edcc;
  --amber:         #b87a0a;
  --amber-light:   #fdeec9;
  --orange:        #b8520a;
  --orange-light:  #fddece;
  --bg:            #0d1a10;
  --bg-card:       #111f14;
  --bg-card2:      #152019;
  --text:          #e8f0e2;
  --text-muted:    #8aab90;
  --text-dim:      #5a7a5f;
  --border:        #1e3323;
  --font-display:  'Fredoka', sans-serif;
  --font-body:     'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 700; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 26, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-peak {
  color: var(--green);
  font-size: 0.9em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #5a9a6a, #3a6a48);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 0 #1e4028, 0 6px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1e4028, 0 10px 24px rgba(0,0,0,0.35);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1e4028, 0 3px 10px rgba(0,0,0,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 2px solid var(--green);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  margin-top: 0.75rem;
}

.btn-ghost-sm:hover {
  background: var(--green);
  color: #fff;
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(74, 124, 89, 0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: var(--green-light);
  background: rgba(228, 240, 220, 0.15);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
  background: radial-gradient(ellipse at 60% 40%, #0e2a15 0%, #0d1a10 60%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(74,124,89,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74,124,89,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 8rem;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(74,124,89,0.4);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-peaks {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  pointer-events: none;
}

.hero-peaks svg {
  width: 100%;
  height: 100%;
}

/* ===== ABOUT ===== */
.about {
  background: #111b14;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  color: #fff;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.value-list {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.value-list li strong { color: var(--text); }

.value-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-card:last-child {
  grid-column: 1 / -1;
}

.stat-card--accent {
  background: rgba(74,124,89,0.12);
  border-color: rgba(74,124,89,0.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ===== GAMES ===== */
.games {
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.section-sub.light { color: rgba(228,240,220,0.75); }
.section-header--light h2 { color: #fff; }

h2.light { color: #fff; }

.game-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.game-card-badge {
  display: inline-block;
  background: rgba(74,124,89,0.2);
  color: var(--green);
  border-bottom: 1px solid rgba(74,124,89,0.2);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  width: 100%;
}

.game-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  align-items: center;
}

.game-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.game-card-text h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.game-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.game-card-text p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.game-links { margin-top: 0.5rem; }

/* Farm illustration */
.game-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-illustration {
  background: linear-gradient(180deg, #1a3d22 0%, #0d2010 100%);
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.farm-scene {
  width: 100%;
  position: relative;
  height: 100%;
}

.sun {
  position: absolute;
  top: 10%;
  right: 15%;
  font-size: 3rem;
  animation: float 4s ease-in-out infinite;
}

.crop {
  position: absolute;
  bottom: 20%;
  font-size: 2.2rem;
  animation: sway 3s ease-in-out infinite;
}
.crop-1 { left: 10%; animation-delay: 0s; }
.crop-2 { left: 28%; animation-delay: 0.4s; font-size: 2.6rem; }
.crop-3 { left: 52%; animation-delay: 0.8s; }
.crop-4 { left: 72%; animation-delay: 0.2s; font-size: 2rem; }

.farm-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22%;
  background: linear-gradient(180deg, #2a5a1a 0%, #1a3a0e 100%);
  border-radius: 0 0 1rem 1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-4px); }
}

/* More games placeholder */
.more-games {
  display: flex;
  justify-content: center;
}

.more-games-card {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.more-games-icon {
  font-size: 2.5rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.more-games-card h4 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.more-games-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== HOW IT WORKS ===== */
.how-bg {
  background: var(--green-dark);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-green  { background: rgba(228,240,220,0.15); color: var(--green-light); }
.step-amber  { background: rgba(253,238,201,0.15); color: var(--amber-light); }
.step-orange { background: rgba(253,222,206,0.15); color: var(--orange-light); }

.step h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: rgba(228,240,220,0.7);
}

.step-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.2);
  padding-top: 0.75rem;
  align-self: center;
}

/* ===== CONTACT ===== */
.contact {
  background: #111b14;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.contact-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.contact-card:hover {
  border-color: rgba(74,124,89,0.4);
  background: var(--bg-card2);
}

.contact-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-card strong {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-card span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
  width: 100%;
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-grid,
  .game-card-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual { order: -1; }

  .stat-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card:last-child {
    grid-column: auto;
  }

  .game-card-visual { display: none; }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a { font-size: 0.85rem; }

  .step-arrow { display: none; }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .game-card-inner {
    padding: 1.5rem;
  }

  .nav-brand {
    font-size: 1rem;
  }
}
