/* PUNKBLOCK — retro pixel punk landing, lime-first (NOT dark mode) */
:root {
  --lime: #d6fe51;
  --lime-dark: #a8d400;
  --purple: #2b1a4a;
  --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%, #eaffb3 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, .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-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-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-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; color: var(--ink); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; color: var(--purple); padding: 10px 18px; background: var(--white); border: 3px solid var(--purple); box-shadow: 4px 4px 0 rgba(0,0,0,.2); }
.live-dot { width: 12px; height: 12px; background: #22c55e; border: 2px solid var(--purple); animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 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: 20px; color: var(--purple); margin-bottom: 10px; }
.stat-label { font-size: 9px; color: var(--ink); }

/* ---------- FEATURE GRID (kiichain-style) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card h3 { font-size: 12px; color: var(--purple); margin-bottom: 12px; }
.feature-card p { font-size: 9px; line-height: 2; color: var(--ink); }
.feature-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.feature-icon { font-size: 18px; color: var(--lime-dark); }
.badge { font-size: 8px; padding: 5px 8px; border: 2px solid; }
.badge-live { color: #15803d; border-color: #15803d; background: #f0fdf4; }
.badge-soon { color: var(--purple); border-color: var(--purple); background: var(--lime); }

/* ---------- 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 ---------- */
.mint-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 24px; }
.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); }

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

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

/* ---------- BG ANIM ---------- */
@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, .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nft-grid { grid-template-columns: repeat(2, 1fr); }
  .mint-options { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 26px; }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
  .gallery, .nft-grid, .mint-options { grid-template-columns: 1fr; }
}
