@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --green-dark: #1B5E20;
  --green-mid: #2E7D32;
  --green-bright: #4CAF50;
  --green-light: #A5D6A7;
  --gold: #FFD700;
  --gold-dark: #C8960C;
  --gold-amber: #FFA000;
  --red: #C0392B;
  --cream: #FFF8E7;
  --cream-dark: #FFF0C8;
  --brown: #5D4037;
  --text-dark: #1a1a1a;
  --text-mid: #3a3a3a;
  --shadow: rgba(0,0,0,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  background: linear-gradient(90deg, var(--green-dark), var(--green-mid), var(--green-dark));
  color: var(--gold);
  text-align: center;
  padding: 8px 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1000;
}

.announcement-banner span {
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===== NAVBAR ===== */
nav {
  background: rgba(255, 248, 231, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
  background: transparent;
  mix-blend-mode: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--green-dark);
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--green-bright);
  color: white;
}

.nav-links a.tower-link {
  color: var(--gold-dark);
}

.nav-links a.tower-link:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.nav-ip-btn {
  background: var(--green-mid);
  color: white !important;
  border-radius: 20px !important;
  padding: 8px 20px !important;
  font-size: 0.9rem !important;
  transition: all 0.2s !important;
  cursor: pointer;
  border: none;
}

.nav-ip-btn:hover {
  background: var(--green-bright) !important;
  transform: scale(1.03);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--green-dark);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/herobanner.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(27,94,32,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: min(380px, 80vw);
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.5));
  animation: logoBounce 3s ease-in-out infinite;
}

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

.hero-slogan {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--cream);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.hero-slogan .olive-emoji { font-size: 1.3em; }

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-amber));
  color: var(--green-dark);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

.hero-ip {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}

.hero-ip:hover {
  background: rgba(0,0,0,0.5);
  border-color: var(--gold);
}

.hero-ip .ip-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.hero-ip .ip-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.copy-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ===== SECTION BASE ===== */
section {
  padding: 80px 40px;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-mid);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-title .gold { color: var(--gold-dark); }
.section-title .red { color: var(--red); }

/* ===== OLIVE DIVIDER ===== */
.olive-divider {
  text-align: center;
  font-size: 1.5rem;
  color: var(--green-bright);
  margin: 0;
  letter-spacing: 8px;
  opacity: 0.5;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: white;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green-bright), var(--gold));
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--cream);
  border: 2px solid var(--green-light);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-icon { font-size: 2rem; margin-bottom: 8px; }

.stat-value {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--green-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
}

/* ===== TOWER TEASER ===== */
.tower-teaser {
  background: linear-gradient(135deg, #0d1f0e 0%, #1a3a1b 50%, #0d1f0e 100%);
  position: relative;
  overflow: hidden;
}

.tower-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/screenshots/tower_night.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.tower-teaser-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.tower-teaser .section-title { color: var(--gold); }
.tower-teaser .section-subtitle { color: rgba(255,255,255,0.8); }

.tower-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tower-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px 0;
}

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

.tower-stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.tower-stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 4px;
}

.tower-items-preview {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.tower-item-preview {
  text-align: center;
}

.tower-item-preview img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255,215,0,0.5));
  animation: itemGlow 2s ease-in-out infinite alternate;
}

@keyframes itemGlow {
  from { filter: drop-shadow(0 0 10px rgba(255,215,0,0.3)); }
  to { filter: drop-shadow(0 0 25px rgba(255,215,0,0.8)); }
}

.tower-item-preview p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-top: 8px;
}

/* ===== FEATURES GRID ===== */
.features-section {
  background: var(--cream);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-card-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.feature-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 16px;
  flex-shrink: 0;
}

.feature-card-header h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--green-dark);
}

.feature-card-header p {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-top: 4px;
}

.feature-card-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.feature-card-body.open {
  max-height: 400px;
  padding: 20px 24px 24px;
}

.feature-card-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card-body ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-card-body ul li::before {
  content: '🫒';
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 2px;
}

.expand-arrow {
  margin-left: auto;
  color: var(--green-bright);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.feature-card.open .expand-arrow { transform: rotate(180deg); }

/* ===== SCREENSHOT SECTION ===== */
.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 60px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.screenshot-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.screenshot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.screenshot-img-wrap:hover img { transform: scale(1.05); }

.screenshot-info {
  background: var(--green-dark);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screenshot-info h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.screenshot-info p {
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.npc-quote {
  background: rgba(255,255,255,0.1);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.npc-quote span {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 700;
}

/* ===== COMMUNITY CTA ===== */
.community-cta {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.community-cta::before {
  content: '🫒🫒🫒🫒🫒🫒🫒🫒🫒🫒🫒🫒🫒🫒🫒';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0.1;
  white-space: nowrap;
  letter-spacing: 10px;
}

.community-cta h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.community-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-discord {
  background: #5865F2;
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(88,101,242,0.4);
}

.btn-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(88,101,242,0.5);
}

/* ===== FOOTER ===== */
footer {
  background: #0d1a0e;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 20px;
}

footer .footer-logo {
  height: 60px;
  margin-bottom: 16px;
  opacity: 0.9;
}

footer p { font-size: 0.9rem; margin-bottom: 6px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
  flex-wrap: wrap;
}

/* ===== COPY TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green-dark);
  color: var(--gold);
  font-family: 'Fredoka One', cursive;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  section { padding: 60px 20px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .screenshot-row { grid-template-columns: 1fr; }
  .screenshot-img-wrap { aspect-ratio: 16/9; }
  .tower-stats-row { gap: 24px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .page-hero { padding: 60px 20px 50px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; }
}
