/* =====================================================
   Chomp Critters — Website Styles
   Color palette inspired by gameplay_bg.png and jungle logo
   Deep greens, lime, warm gold, amber
   ===================================================== */

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

:root {
  --dark-bg:      #081508;
  --deep-green:   #0f2b0f;
  --mid-green:    #1a4a18;
  --bright-green: #3d8c1a;
  --lime:         #7ec430;
  --lime-light:   #a8dc50;
  --gold:         #f0c020;
  --gold-light:   #f8dc60;
  --amber:        #e88010;
  --amber-bright: #ff9820;
  --sand:         #d4a840;
  --cream:        #f5f0d8;
  --text-light:   #e8f5e0;
  --text-dim:     #9dc880;
  --card-bg:      rgba(15, 43, 15, 0.85);
  --radius:       18px;
  --radius-lg:    28px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 24px rgba(126, 196, 48, 0.35);
  --font-head:    'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Scroll animations ---- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(8, 21, 8, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.3rem;
  white-space: nowrap;
}
.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links .nav-privacy { color: var(--lime-light); }
.btn-nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #1a0a00;
  font-family: var(--font-head);
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(240, 192, 32, 0.4);
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 192, 32, 0.6);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('gameplay_bg.png') center/cover no-repeat;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(8, 21, 8, 0.2) 0%,
    rgba(8, 21, 8, 0.65) 60%,
    rgba(8, 21, 8, 0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 100px 24px 60px;
}
.hero-logo {
  width: min(340px, 75vw);
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 36px;
  opacity: 0.9;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber-bright), var(--gold));
  color: #1a0a00;
  font-family: var(--font-head);
  font-size: 1.2rem;
  padding: 14px 36px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(232, 128, 16, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(232, 128, 16, 0.7);
}
.btn-primary .btn-icon {
  font-size: 0.9rem;
  transform: rotate(-90deg);
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  font-family: var(--font-head);
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--lime-light);
  color: var(--lime-light);
}

/* Floating critters */
.float-critter {
  position: absolute;
  z-index: 1;
  animation: float-spin 6s ease-in-out infinite;
  pointer-events: none;
}
.float-critter img { filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); }
.fc1 { bottom: 8%;  left: 4%;   width: 110px; animation-delay: 0s;    animation-duration: 5.5s; }
.fc2 { top: 18%;    right: 5%;  width: 90px;  animation-delay: 1.5s;  animation-duration: 7s; }
.fc3 { bottom: 20%; right: 8%;  width: 85px;  animation-delay: 0.8s;  animation-duration: 6.5s; }
.fc4 { top: 22%;    left: 7%;   width: 95px;  animation-delay: 2.2s;  animation-duration: 6s; }
@keyframes float-spin {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-18px) rotate(4deg); }
}

/* =====================================================
   SECTION SHARED STYLES
   ===================================================== */
section { position: relative; padding: 90px 0; }

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--lime), var(--bright-green));
  color: #0a1a05;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 52px;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about {
  background: var(--deep-green);
  text-align: center;
}
.section-leaf {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  background: url('gameplay_bg.png') center/cover;
  opacity: 0.15;
  pointer-events: none;
}
.section-leaf.left  { left: 0; }
.section-leaf.right { right: 0; transform: scaleX(-1); }

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.about-card {
  background: var(--card-bg);
  border: 1px solid rgba(126, 196, 48, 0.2);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--lime);
}
.about-icon { font-size: 2.8rem; margin-bottom: 14px; }
.about-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--lime-light);
  margin-bottom: 10px;
}
.about-card p { color: var(--text-dim); font-size: 0.97rem; }

.about-screenshot {
  position: relative;
  display: inline-block;
  max-width: 420px;
  width: 100%;
}
.screenshot-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 3px solid rgba(126, 196, 48, 0.3);
}
.screenshot-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--amber);
  color: #1a0500;
  font-family: var(--font-head);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

/* =====================================================
   CRITTERS
   ===================================================== */
.critters {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--deep-green) 100%);
  text-align: center;
}
.critters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.critter-card {
  background: var(--card-bg);
  border: 2px solid rgba(126, 196, 48, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
  text-align: left;
}
.critter-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), var(--shadow-glow);
  border-color: var(--lime);
}
.critter-locked { border-color: rgba(232, 128, 16, 0.3); }
.critter-locked:hover { border-color: var(--amber); box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 24px rgba(232, 128, 16, 0.3); }

.critter-img-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,196,48,0.15), rgba(8,21,8,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(126,196,48,0.2);
}
.critter-img-wrap img { width: 82px; height: 82px; object-fit: contain; }
.critter-locked .critter-img-wrap { border-color: rgba(232,128,16,0.3); }

.critter-info { flex: 1; min-width: 0; }
.critter-info h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 3px;
}
.critter-tagline { font-size: 0.83rem; color: var(--text-dim); margin-bottom: 12px; font-style: italic; }

.critter-stats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.stat { display: flex; align-items: center; gap: 8px; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); width: 48px; flex-shrink: 0; font-weight: 700; text-transform: uppercase; }
.stat-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--lime), var(--lime-light)); }
.critter-locked .stat-fill { background: linear-gradient(90deg, var(--amber), var(--gold)); }

.critter-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}
.critter-badge.free { background: rgba(126,196,48,0.2); color: var(--lime-light); border: 1px solid rgba(126,196,48,0.4); }
.critter-badge.locked { background: rgba(232,128,16,0.2); color: var(--amber-bright); border: 1px solid rgba(232,128,16,0.4); }

/* Skins teaser */
.skins-teaser {
  background: var(--card-bg);
  border: 1px solid rgba(126,196,48,0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(8px);
}
.skins-teaser h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.skins-teaser p { color: var(--text-dim); margin-bottom: 28px; }
.skins-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.skin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.skin-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(126,196,48,0.1);
  padding: 4px;
  border: 2px solid rgba(126,196,48,0.25);
  transition: transform 0.3s, border-color 0.3s;
}
.skin-item img:hover { transform: scale(1.15) rotate(5deg); border-color: var(--lime); }
.skin-item span { font-size: 0.8rem; color: var(--text-dim); font-weight: 700; }

/* =====================================================
   HOW TO PLAY
   ===================================================== */
.how-to-play {
  background: var(--dark-bg);
  text-align: center;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.step {
  background: var(--card-bg);
  border: 1px solid rgba(126,196,48,0.2);
  border-radius: var(--radius);
  padding: 32px 22px;
  flex: 1;
  min-width: 190px;
  max-width: 220px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}
.step:hover { transform: translateY(-6px); border-color: var(--lime); }
.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: #1a0a00;
  font-family: var(--font-head);
  font-size: 1.1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.step-visual { font-size: 2.8rem; margin-bottom: 14px; margin-top: 8px; }
.step h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--lime-light); margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-dim); }

.step-arrow {
  font-size: 2rem;
  color: var(--lime);
  opacity: 0.5;
  align-self: center;
  margin-top: 24px;
  flex-shrink: 0;
}

.rule-box {
  background: linear-gradient(135deg, rgba(240,192,32,0.12), rgba(232,128,16,0.12));
  border: 1px solid rgba(240,192,32,0.3);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.rule-icon { font-size: 2.5rem; flex-shrink: 0; }
.rule-box strong { color: var(--gold); font-size: 1.05rem; }
.rule-box { color: var(--text-dim); }

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  text-align: center;
  overflow: hidden;
}
.features-bg {
  position: absolute;
  inset: 0;
  background: url('gameplay_bg.png') center/cover no-repeat;
  opacity: 0.08;
  transform: scaleX(-1);
}
.features { background: var(--deep-green); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-item {
  background: rgba(8, 21, 8, 0.7);
  border: 1px solid rgba(126,196,48,0.18);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.feature-item:hover {
  transform: translateY(-6px);
  border-color: var(--lime);
  box-shadow: var(--shadow-glow);
}
.feature-emoji { font-size: 3rem; margin-bottom: 16px; }
.feature-item h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold); margin-bottom: 10px; }
.feature-item p { color: var(--text-dim); font-size: 0.97rem; }

/* =====================================================
   DOWNLOAD
   ===================================================== */
.download {
  background: radial-gradient(ellipse at center,
    rgba(61, 140, 26, 0.35) 0%,
    var(--dark-bg) 70%);
  text-align: center;
}
.download-logo {
  width: min(220px, 55vw);
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}
.download h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 14px;
}
.download p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
}
.btn-play-store {
  display: inline-block;
  transition: transform 0.2s, filter 0.2s;
  margin-bottom: 24px;
}
.btn-play-store img {
  height: 64px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}
.btn-play-store:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.1);
}
.age-rating {
  font-size: 0.85rem;
  color: rgba(168, 220, 80, 0.55);
  margin-top: 4px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #040c04;
  border-top: 1px solid rgba(126,196,48,0.15);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--gold);
}
.footer-brand img {
  width: 38px; height: 38px;
  border-radius: 8px;
  object-fit: cover;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--lime-light); }
.footer-legal {
  font-size: 0.85rem;
  color: rgba(157, 200, 128, 0.5);
  line-height: 1.7;
}
.footer-legal a { color: rgba(157, 200, 128, 0.7); }
.footer-legal a:hover { color: var(--lime-light); }
.footer-note {
  font-size: 0.78rem;
  color: rgba(157, 200, 128, 0.35);
  margin-top: 20px;
  max-width: 700px;
  line-height: 1.6;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 340px; width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { margin: 0 auto; justify-content: center; }
  .rule-box { flex-direction: column; text-align: center; }
  .critter-card { flex-direction: column; align-items: center; text-align: center; }
  .stat { justify-content: center; }
  .stat-label { width: auto; }
  .about-cards { grid-template-columns: 1fr; }
  .skins-teaser { padding: 28px 20px; }
  .fc1, .fc2, .fc3, .fc4 { display: none; }
}

@media (max-width: 480px) {
  section { padding: 64px 0; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; align-items: center; }
  .critters-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
