/* ============================================================
   SPANKBANK — black vault aesthetic
   Palette: #000 ground · #6A2BE9 purple · #C6F15C lime
            #F0A2FD pink · #FEB591 peach · #E5DFFB lavender
   Type: Fredoka (display) · Space Grotesk (body)
   ============================================================ */

:root {
  --black: #000000;
  --purple: #6A2BE9;
  --deep: #1B0E44;
  --lime: #C6F15C;
  --pink: #F0A2FD;
  --peach: #FEB591;
  --lav: #E5DFFB;
  --display: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  --body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --shadow-lime: 6px 8px 0 0 var(--lime);
  --shadow-purple: 6px 8px 0 0 var(--purple);
  --shadow-black: 6px 8px 0 0 var(--black);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--lav);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--black); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid var(--black);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: gap 0.2s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
  user-select: none;
}
.btn:hover { gap: 16px; }
.btn:active { transform: translate(3px, 4px); box-shadow: none; }

.btn--lime { background: var(--lime); color: var(--black); box-shadow: var(--shadow-purple); }
.btn--pink { background: var(--pink); color: var(--black); box-shadow: var(--shadow-lime); }
.btn--ghost {
  background: transparent; color: var(--lav);
  border-color: rgba(229, 223, 251, 0.4); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--lav); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 18px; }
.btn--xl { padding: 22px 42px; font-size: 20px; }

/* ---------------- age gate ---------------- */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  transition: opacity 0.35s ease-out;
}
.agegate.is-open { opacity: 0; pointer-events: none; }
.agegate__card {
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.agegate__pig { width: 120px; animation: pigBob 2.6s ease-in-out infinite; }
.agegate__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.35em;
  color: var(--lime);
}
.agegate__reg { font-size: 9px; vertical-align: super; }
.agegate__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
  color: var(--lav);
}
.agegate__sub { color: rgba(229, 223, 251, 0.65); font-size: 15px; }
.agegate__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
}
.agegate__actions .btn { justify-content: center; width: 100%; }

/* ---------------- header ---------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 10;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--lav);
  text-decoration: none;
}
.header__brand sup { font-size: 10px; color: var(--lime); }
.header__brand img { width: 34px; }

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 110px);
  max-width: 1440px;
  margin: 0 auto;
}
.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--lav);
  margin-bottom: 28px;
}
.hero__title .w { display: inline-block; }
.w--lime { color: var(--lime); }
.hero__sub {
  max-width: 46ch;
  font-size: 18px;
  color: rgba(229, 223, 251, 0.78);
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero__link {
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid rgba(198, 241, 92, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.hero__link:hover { border-color: var(--lime); }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.hero__pig {
  width: min(100%, 420px);
  filter: drop-shadow(0 0 60px rgba(106, 43, 233, 0.55));
}
.hero__coin { position: absolute; }
.hero__coin--1 { top: 4%; right: 16%; width: 56px; animation: coinFloat 3.4s ease-in-out infinite; }
.hero__coin--2 { bottom: 12%; left: 6%; width: 38px; animation: coinFloat 4.2s ease-in-out 0.6s infinite; }
.hero__coin--3 { top: 38%; left: 0%; width: 26px; animation: coinFloat 3s ease-in-out 1.1s infinite; }

/* wiggle on deposit / bob for gate pig */
@keyframes pigBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(12deg); }
}
@keyframes rubberBand {
  0% { transform: scale(1); }
  30% { transform: scale(1.12, 0.88); }
  45% { transform: scale(0.92, 1.08); }
  60% { transform: scale(1.05, 0.95); }
  75% { transform: scale(0.98, 1.02); }
  100% { transform: scale(1); }
}
.js-wiggle.is-happy { animation: rubberBand 0.7s ease-out; }

/* ---------------- marquee ---------------- */
.marquee-wrap { overflow: hidden; padding: 8px 0; }
.marquee {
  background: var(--purple);
  transform: rotate(-1.5deg) scale(1.03);
  padding: 14px 0;
  overflow: hidden;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 22px;
  height: 22px;
  background: url("../assets/coin-alpha.png") center / contain no-repeat;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.3));
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------------- vault / pit ---------------- */
.vault {
  background: var(--purple);
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px) clamp(80px, 9vw, 130px);
}
.vault__head, .pit, .vault__hint--dark { color: var(--lav) !important; }
.vault__hint { max-width: 1100px; margin-left: auto; margin-right: auto; }
.vault__head { text-align: center; margin-bottom: 44px; }
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1;
  color: var(--lav);
  margin-bottom: 18px;
}
.section-title--dark { color: var(--black); }
.vault__sub--dark { color: rgba(229, 223, 251, 0.85); }
.vault__sub {
  max-width: 52ch;
  margin: 0 auto;
  color: rgba(229, 223, 251, 0.7);
}
.pit {
  position: relative;
  border: 3px solid rgba(229, 223, 251, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(106, 43, 233, 0.35), transparent 70%),
    var(--deep);
  overflow: hidden;
  cursor: pointer;
}
.pit__canvas { display: block; width: 100%; height: 440px; touch-action: manipulation; }
.pit__hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 28px;
  border-top: 3px solid rgba(229, 223, 251, 0.35);
  background: rgba(0, 0, 0, 0.45);
}
.pit__counter { display: flex; align-items: baseline; gap: 16px; }
.pit__counter-label {
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(229, 223, 251, 0.6);
}
.pit__counter-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  color: var(--lime);
  line-height: 1;
  transition: transform 0.15s ease-out;
}
.pit__counter-num.bump { transform: scale(1.25); }
.vault__hint--dark { color: var(--lav) !important; }
.vault__hint {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(229, 223, 251, 0.45);
}

/* ---------------- the market / store ---------------- */
.market {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 64px) clamp(80px, 10vw, 140px);
  text-align: center;
}
.market__rhyme {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--pink);
  margin-bottom: 14px;
}
.market__sub {
  max-width: 52ch;
  margin: 0 auto;
  color: rgba(229, 223, 251, 0.75);
}
.market__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.pcard {
  position: relative;
  border: 3px solid var(--black);
  border-radius: 22px;
  padding: 28px 26px 30px;
  color: var(--black);
  box-shadow: var(--shadow-purple);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease-out;
}
.pcard:hover { transform: rotate(0deg) translateY(-4px) !important; }
.pcard--pink { background: var(--pink); transform: rotate(-1.2deg); }
.pcard--lime { background: var(--lime); transform: rotate(0.9deg); }
.pcard--peach { background: var(--peach); transform: rotate(-0.8deg); }
.pcard__coin { width: 30px; }
.pcard__stock {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}
.pcard__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 29px;
  line-height: 1.05;
}
.pcard__desc { font-size: 15px; line-height: 1.55; flex-grow: 1; }
.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 3px solid var(--black);
  padding-bottom: 3px;
  width: fit-content;
  transition: gap 0.2s ease-out;
}
.pcard__cta:hover { gap: 13px; }
.market__fine {
  margin-top: 40px;
  font-size: 13px;
  color: rgba(229, 223, 251, 0.45);
}

/* ---------------- curve divider ---------------- */
.curve { margin-bottom: -2px; }
.curve svg { display: block; width: 100%; height: 90px; }

/* ---------------- hub link rows ---------------- */
.hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 64px);
}
.hub .section-title { text-align: center; }
.hub__list {
  max-width: 780px;
  margin: 52px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lrow {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border: 3px solid var(--black);
  border-radius: 22px;
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow-purple);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.lrow:hover { transform: rotate(0deg) translateY(-4px) !important; box-shadow: 8px 12px 0 0 var(--purple); }
.lrow--lime { background: var(--lime); transform: rotate(-0.8deg); }
.lrow--pink { background: var(--pink); transform: rotate(0.9deg); }
.lrow--peach { background: var(--peach); transform: rotate(-0.7deg); }
.lrow--lav { background: var(--lav); transform: rotate(0.8deg); }
.lrow--purple { background: var(--purple); color: var(--lav); transform: rotate(-1deg); }
.lrow__text { min-width: 0; }
.lrow__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  margin-bottom: 6px;
}
.lrow__desc { font-size: 15px; line-height: 1.45; opacity: 0.78; }
.lrow__tag {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 6px 12px;
}
.lrow__arrow { flex-shrink: 0; }

/* ---------------- vault strip ---------------- */
.strip {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}
.strip__img {
  width: 100%;
  height: clamp(180px, 26vw, 320px);
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.85;
}
.strip__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 20px;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 52px);
  color: var(--lav);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0,0,0,0.8);
  background: rgba(0, 0, 0, 0.25);
}

/* ---------------- final CTA ---------------- */
.final {
  text-align: center;
  padding: clamp(80px, 11vw, 150px) 20px clamp(70px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.final__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 120px);
  line-height: 0.95;
  color: var(--lav);
}
.final__pig { width: 160px; animation: pigBob 3s ease-in-out infinite; }

/* ---------------- footer ---------------- */
.footer {
  border-top: 3px solid rgba(229, 223, 251, 0.15);
  padding: 40px clamp(20px, 5vw, 64px) 48px;
  text-align: center;
}
.footer__fine {
  max-width: 60ch;
  margin: 0 auto 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(229, 223, 251, 0.45);
}
.footer__legal {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(229, 223, 251, 0.6);
}

/* ---------------- reveal defaults (JS enhances) ---------------- */
[data-reveal] { opacity: 1; }

/* ---------------- responsive ---------------- */
@media (max-width: 480px) {
  .btn--xl { padding: 18px 24px; font-size: 15px; }
  .btn--lg { padding: 16px 26px; font-size: 16px; }
  .header { padding: 16px 18px; }
  .header__brand { gap: 8px; min-width: 0; }
  .header__brand img { width: 26px; }
  .header__brand span { font-size: 14px; letter-spacing: 0.08em; white-space: nowrap; }
  .header .btn--sm { padding: 8px 14px; font-size: 12px; gap: 6px; flex-shrink: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { order: -1; min-height: 0; }
  .hero__pig { width: min(70%, 300px); }
  .hero__cta { gap: 18px; }
  .lrow { flex-wrap: wrap; row-gap: 10px; }
  .market__grid { grid-template-columns: 1fr; gap: 26px; }
  .lrow__tag { margin-left: 0; order: 3; }
  .lrow__arrow { margin-left: auto; }
  .pit__hud { flex-direction: column; align-items: stretch; text-align: center; }
  .pit__counter { justify-content: center; }
  .pit__hud .btn { justify-content: center; }
  .header__brand span { font-size: 16px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .hero__coin, .final__pig, .agegate__pig { animation: none; }
  .btn, .bcard { transition: none; }
}
