/* ROBINVISOR — retro pixel landing, chartreuse-first (NOT dark mode) */
:root {
  --lime: #ccff00;
  --lime-dark: #a8d400;
  --purple: #2b1a4a;
  --purple-soft: #4a2f7a;
  --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;
}
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 { background: var(--purple); color: var(--lime); }

/* ---------- 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-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: 42px; 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; color: var(--ink); }
.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: 720px; margin-left: auto; margin-right: auto; }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 3px solid var(--purple);
  box-shadow: var(--card-shadow);
  padding: 20px;
}

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.about-text p { font-size: 10px; line-height: 2.2; margin-bottom: 14px; }
.stats { display: flex; flex-direction: column; gap: 18px; }
.stat-card { text-align: center; padding: 24px 12px; }
.stat-num { display: block; font-size: 22px; color: var(--purple); margin-bottom: 10px; }
.stat-label { font-size: 9px; color: var(--ink); }

/* ---------- 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); }

/* ---------- MINT OPTIONS ---------- */
.mint-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 24px; max-width: 560px; }
.mint-options .stat-num { font-size: 16px; }
.mint-options .countdown { font-size: 13px; }
.whats-next-label { font-size: 9px; color: var(--purple); letter-spacing: 2px; margin-top: 18px; }

/* ---------- PREREVEAL ---------- */
.prereveal { background: var(--lime); }
.prereveal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.prereveal-img { border: 4px solid var(--purple); box-shadow: var(--card-shadow); image-rendering: pixelated; }
.prereveal-text p { font-size: 10px; line-height: 2.2; margin-bottom: 16px; }
.prereveal-text .section-title { text-align: left; }

/* ---------- 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; }

/* ---------- MINT ---------- */
.mint { text-align: center; }
.mint p { font-size: 10px; line-height: 2; margin-bottom: 22px; }
.contract-card { display: inline-block; margin-bottom: 24px; }
.contract-label { display: block; font-size: 9px; color: var(--ink); margin-bottom: 10px; }
.contract-address { font-family: inherit; font-size: 10px; color: var(--purple); }
.socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

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

/* ---------- NAV ACTIVE ---------- */
.nav-links a.active { background: var(--purple); color: var(--lime); }

/* ---------- BAG PAGE ---------- */
.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); }

/* ---------- STAKING PANEL ---------- */
.stake-panel { max-width: 820px; margin: 0 auto; text-align: center; }
.stake-lock { font-size: 10px; color: var(--purple); margin-bottom: 22px; line-height: 2; }
.stake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stake-stat { background: var(--lime); border: 3px solid var(--purple); padding: 18px 10px; }
.stake-value { display: block; font-size: 20px; color: var(--purple); margin-top: 10px; }
.stake-btn { opacity: .6; cursor: not-allowed; }
.stake-note { font-size: 8px; line-height: 2; margin-top: 16px; color: var(--ink); }

/* ---------- CONTRACT ---------- */
.contract-link { display: block; margin-top: 14px; font-size: 9px; color: var(--purple); text-decoration: underline; }

/* ---------- MINT PROGRESS ---------- */
.mint-progress { max-width: 560px; margin: 26px 0 0; }
.mint-progress-track { height: 18px; background: var(--white); border: 3px solid var(--purple); box-shadow: 3px 3px 0 rgba(0,0,0,.2); }
.mint-progress-fill { display: block; height: 100%; width: 100%; background: var(--purple); }
.mint-progress-label { display: block; margin-top: 10px; font-size: 9px; color: var(--purple); }

/* ---------- TOKENOMICS ---------- */
.tokenomics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.token-card { text-align: center; }
.token-pct { display: block; font-size: 22px; color: var(--lime); background: var(--purple); padding: 12px 0; margin: -20px -20px 14px; }
.token-card h3 { font-size: 10px; color: var(--purple); margin-bottom: 10px; }
.token-card p { font-size: 8px; line-height: 2; }
.token-note { margin-top: 24px; }

/* ---------- COUNTDOWN ---------- */
.countdown { letter-spacing: 1px; }

/* ---------- 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; }
.back-top:hover { transform: translate(1px, 1px); }

/* ---------- ANIMATED BACKGROUND ---------- */
@keyframes bgShift {
  0% { background-position: 0% 50%, 0 0; }
  50% { background-position: 100% 50%, 0 0; }
  100% { background-position: 0% 50%, 0 0; }
}
@keyframes pixelFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--po, .18); }
  90% { opacity: var(--po, .18); }
  100% { transform: translateY(-110vh) rotate(180deg); opacity: 0; }
}
.bg-pixels { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pixel {
  position: absolute; bottom: -40px; display: block;
  background: var(--pc, var(--purple));
  animation: pixelFloat var(--pd, 18s) linear infinite;
  animation-delay: var(--pdl, 0s);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid, .prereveal-inner { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tokenomics-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 { grid-template-columns: 1fr; }
  .mint-options { grid-template-columns: 1fr; }
  .tokenomics-grid { grid-template-columns: 1fr; }
  .nft-grid { grid-template-columns: 1fr; }
  .stake-grid { grid-template-columns: 1fr; }
}
