/* =============================================
   MONKY – GORILLA TAG FANGAME
   Design: dark forest night with warm amber
   Font: Nunito (rounded, playful) + Inter (body)
============================================= */

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

:root {
  --bg-deep:    #0d1117;
  --bg-dark:    #111820;
  --bg-mid:     #1a2533;
  --amber:      #bdbdbd;
  --amber-glow: rgba(232, 160, 48, 0.18);
  --white:      #f5f0e8;
  --muted:      rgba(245, 240, 232, 0.55);
  --card-bg:    rgba(255,255,255,0.04);
  --card-border:rgba(255,255,255,0.08);
  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-links a.nav-cta {
  color: var(--bg-deep);
  background: var(--amber);
  padding: 8px 20px;
  border-radius: 50px;
  transition: opacity 0.2s;
}

.nav-links a.nav-cta:hover { opacity: 0.85; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,17,23,0.35) 0%,
    rgba(13,17,23,0.55) 50%,
    rgba(13,17,23,0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.hero-logo {
  width: min(480px, 72vw);
  filter: drop-shadow(0 4px 40px rgba(0,0,0,0.8));
  animation: floatLogo 4s ease-in-out infinite;
}

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

.hero-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--bg-deep);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(232,160,48,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,160,48,0.5);
}

.btn-primary.large { font-size: 18px; padding: 16px 40px; }

.btn-icon {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.btn-icon.large-icon { height: 26px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.14);
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  margin-top: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(88,101,242,0.35);
}

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

/* ---- scroll hint ---- */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  margin: 0 auto;
  animation: scrollDrop 1.8s ease-in-out infinite;
  border-radius: 1px;
}

@keyframes scrollDrop {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.4) translateY(12px); }
}

/* ===================== SECTION COMMONS ===================== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 32px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.eyebrow.light { color: var(--amber); }

h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

h2.light { color: var(--white); }

/* ===================== ABOUT ===================== */
.about {
  background: var(--bg-dark);
}

.about-desc {
  max-width: 680px;
  margin: 0 auto 60px;
  color: var(--muted);
  font-size: 17px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}

.acard {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.acard:hover {
  border-color: rgba(232,160,48,0.35);
  transform: translateY(-4px);
}

.acard-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.acard h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.acard p { color: var(--muted); font-size: 15px; }

/* ===================== FEATURES ===================== */
.features {
  position: relative;
  overflow: hidden;
}

.features-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.features-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.82);
}

.features .section-inner {
  position: relative;
  z-index: 1;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.feat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.feat-card:hover {
  background: rgba(232,160,48,0.08);
  border-color: rgba(232,160,48,0.4);
  transform: translateY(-5px);
}

.feat-card.feat-soon {
  opacity: 0.55;
}

.feat-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.feat-card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 10px;
}

.feat-card p { color: var(--muted); font-size: 15px; }

/* ===================== DOWNLOAD / CTA ===================== */
.download {
  background: var(--bg-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-inner p {
  max-width: 500px;
  color: var(--muted);
  font-size: 17px;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--amber); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 18px 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bar a { color: var(--amber); }

/* ===================== PRIVACY PAGE ===================== */
.privacy-page {
  background: var(--bg-dark);
  padding-top: 70px;
  min-height: 100vh;
}

.privacy-inner {
  max-width: 760px;
  text-align: left;
  padding-top: 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--amber);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.back-link:hover { text-decoration: underline; }

.privacy-box {
  background: var(--bg-mid);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.privacy-box h2 {
  font-size: 28px;
  margin-bottom: 28px;
  text-align: left;
}

.privacy-box h4 {
  font-family: 'Nunito', sans-serif;
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 24px 0 10px;
}

.privacy-box ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.privacy-box p {
  color: var(--muted);
  font-size: 15px;
}

.privacy-box a { color: var(--amber); }

.close-modal {
  display: inline-block;
  margin-top: 32px;
  color: var(--amber) !important;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

/* ===================== REDIRECT PAGE ===================== */
.redirect-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.redirect-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}

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

.redirect-face-ring {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 30px rgb(71, 240, 252));
}

.redirect-face-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: faceSpin 1.4s linear infinite;
}

@keyframes faceSpin {
  to { transform: rotate(360deg); }
}

.redirect-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(17px, 3vw, 20px);
  color: var(--white);
  letter-spacing: 0.02em;
}

.redirect-text #redirect-dest {
  color: var(--amber);
}

.redirect-dots span {
  display: inline-block;
  opacity: 0;
  animation: dotBlink 1.4s infinite;
}

.redirect-dots span:nth-child(1) { animation-delay: 0s; }
.redirect-dots span:nth-child(2) { animation-delay: 0.2s; }
.redirect-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBlink {
  0%, 20%  { opacity: 0; }
  50%      { opacity: 1; }
  100%     { opacity: 0; }
}

.redirect-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: -12px;
}

.redirect-fallback {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  animation: fadeInFallback 0.6s ease forwards;
  animation-delay: 2.6s;
}

.redirect-fallback a {
  color: var(--amber);
  font-weight: 700;
}

.redirect-fallback a:hover {
  text-decoration: underline;
}

@keyframes fadeInFallback {
  to { opacity: 1; }
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  #navbar { padding: 0 20px; }

  .nav-links {
    gap: 20px;
  }

  .nav-links li:not(:last-child) { display: none; }

  .section-inner { padding: 70px 20px; }

  .footer-inner { flex-direction: column; }

  .footer-links { gap: 32px; }
}
