/* RH FIS — retro pixel landing, chartreuse-first, animated fish background */
:root {
  --lime: #ccff00;
  --lime-dark: #a8d400;
  --purple: #2b1a4a;
  --gold: #ffd700;
  --white: #ffffff;
  --ink: #14101f;
  --card-shadow: 6px 6px 0 var(--purple);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Press Start 2P", monospace;
  background: linear-gradient(180deg, var(--lime) 0%, #d9ff5e 55%, var(--lime) 100%);
  background-size: 200% 200%;
  animation: bgShift 24s ease-in-out infinite;
  color: var(--ink);
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}
body > * { position: relative; z-index: 1; }
a { color: var(--purple); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--lime); border-bottom: 4px solid var(--purple); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nav-logo { width: 40px; height: 40px; image-rendering: pixelated; }
.nav-links { margin-left: auto; display: flex; gap: 18px; font-size: 10px; }
.nav-links a { padding: 6px 8px; }
.nav-links a:hover, .nav-links a.active { background: var(--purple); color: var(--lime); }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--purple); color: var(--lime); border-bottom: 4px solid var(--lime); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span { font-family: inherit; font-size: 12px; padding: 12px 0; white-space: nowrap; letter-spacing: 2px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 14px 22px; background: var(--purple); color: var(--lime);
  font-family: inherit; font-size: 12px; text-transform: uppercase;
  border: 3px solid var(--purple); box-shadow: 5px 5px 0 rgba(0,0,0,.25);
  cursor: pointer; transition: transform .08s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.btn-outline { background: var(--white); color: var(--purple); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.btn-small { padding: 10px 14px; font-size: 9px; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 28px 20px 56px; }
.hero-banner { width: 100%; max-width: 1100px; margin: 0 auto 34px; border: 4px solid var(--purple); box-shadow: var(--card-shadow); image-rendering: pixelated; }
.hero-logo { width: 120px; height: 120px; margin: 0 auto 16px; image-rendering: pixelated; }
.hero-title { font-size: 40px; color: var(--purple); text-shadow: 4px 4px 0 var(--white); letter-spacing: 4px; margin-bottom: 18px; }
.hero-tagline { font-size: 11px; line-height: 2; max-width: 720px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- SECTIONS ---------- */
.section { padding: 64px 20px; }
.section-alt { background: var(--white); border-top: 4px solid var(--purple); border-bottom: 4px solid var(--purple); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 24px; color: var(--purple); text-align: center; text-shadow: 3px 3px 0 var(--lime); letter-spacing: 3px; margin-bottom: 14px; }
.section-sub { text-align: center; font-size: 10px; line-height: 2; margin-bottom: 36px; max-width: 760px; margin-left: auto; margin-right: auto; }
.card { background: var(--white); border: 3px solid var(--purple); box-shadow: var(--card-shadow); padding: 20px; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { text-align: center; padding: 24px 12px; }
.stat-num { display: block; font-size: 18px; color: var(--purple); margin-bottom: 10px; }
.stat-label { font-size: 9px; }
.stat-gold .stat-num { color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }

/* ---------- MINT ---------- */
.mint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mint-card { text-align: center; padding: 26px 20px; }
.mint-tag { display: inline-block; background: var(--purple); color: var(--lime); font-size: 9px; padding: 6px 12px; margin-bottom: 16px; }
.mint-price { display: block; font-size: 24px; color: var(--purple); margin-bottom: 14px; }
.mint-info { font-size: 10px; line-height: 2; margin-bottom: 18px; }
.contract-card { display: inline-block; margin: 28px auto 0; text-align: center; }
.contract-label { display: block; font-size: 9px; margin-bottom: 10px; }
.contract-address { font-size: 10px; color: var(--purple); }

/* ---------- GOLDEN FIN ---------- */
.golden-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.golden-img { border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--gold); image-rendering: pixelated; }
.golden-text .section-title { text-align: left; }
.golden-text p { font-size: 10px; line-height: 2.2; margin-bottom: 14px; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.nft-card { padding: 10px; text-align: center; }
.nft-card img { image-rendering: pixelated; border: 3px solid var(--purple); }
.nft-card span { display: block; margin-top: 10px; font-size: 9px; color: var(--purple); }

/* ---------- UTILITY ---------- */
.utility-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.util-card { text-align: center; }
.util-icon { display: block; font-size: 26px; background: var(--purple); color: var(--lime); padding: 12px 0; margin: -20px -20px 14px; }
.util-card h3 { font-size: 10px; color: var(--purple); margin-bottom: 10px; }
.util-card p { font-size: 8px; line-height: 2; }

/* ---------- ROADMAP ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase { text-align: center; }
.phase-num { display: block; font-size: 28px; color: var(--lime); background: var(--purple); padding: 10px 0; margin: -20px -20px 16px; }
.phase h3 { font-size: 11px; color: var(--purple); margin-bottom: 12px; }
.phase p { font-size: 9px; line-height: 2; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.faq-item summary { cursor: pointer; font-size: 11px; color: var(--purple); padding: 6px 0; }
.faq-item p { font-size: 9px; line-height: 2; margin-top: 12px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--purple); color: var(--lime); text-align: center; padding: 26px 20px; font-size: 8px; line-height: 2; }

/* ---------- BAG ---------- */
.hidden { display: none; }
.bag-connect { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.bag-connect p { font-size: 10px; line-height: 2; margin-bottom: 14px; }
.bag-address { color: var(--purple); word-break: break-all; }
.bag-section { margin-bottom: 48px; }
.nft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nft-bag-card { padding: 10px; text-align: center; }
.nft-bag-card img { width: 100%; image-rendering: pixelated; border: 3px solid var(--purple); }
.nft-bag-card span { display: block; margin-top: 8px; font-size: 8px; color: var(--purple); }

/* ---------- ANIMATED FISH BACKGROUND ---------- */
.bg-fish { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fish-float {
  position: absolute; image-rendering: pixelated; opacity: .55;
  animation: swim var(--fd, 40s) linear infinite;
  animation-delay: var(--fdl, 0s);
}
@keyframes swim {
  0% { transform: translateX(110vw); }
  100% { transform: translateX(-120%); }
}
.fish-float.left { animation-direction: reverse; }
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- BACK TO TOP ---------- */
.back-top {
  position: fixed; bottom: 20px; right: 20px; z-index: 60; width: 46px; height: 46px; display: none;
  background: var(--purple); color: var(--lime); border: 3px solid var(--lime);
  font-family: inherit; font-size: 14px; cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,.25);
}
.back-top.show { display: block; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mint-grid, .golden-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .utility-grid { grid-template-columns: repeat(2, 1fr); }
  .nft-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 28px; }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .roadmap, .mint-grid { grid-template-columns: 1fr; }
  .utility-grid { grid-template-columns: 1fr; }
  .nft-grid { grid-template-columns: 1fr; }
}
