/* ========================================
   Make Pumpfun Great Again | $MPGA
   ======================================== */

:root {
  --bg: #070a08;
  --bg-2: #0c1210;
  --ink: #f4f7f4;
  --muted: #9aaba0;
  --green: #2fd67b;
  --green-deep: #149a52;
  --green-soft: rgba(47, 214, 123, 0.14);
  --line: rgba(244, 247, 244, 0.1);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
}

.eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--green {
  background: var(--green);
  color: #041208;
}

.btn--green:hover {
  background: #4ae892;
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(7, 10, 8, 0.35);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(47, 214, 123, 0.45);
  color: var(--green);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(7, 10, 8, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.nav__logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(47, 214, 123, 0.35);
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__buy {
  padding: 0.55rem 0.95rem !important;
  border-radius: 4px;
  background: var(--green);
  color: #041208 !important;
  font-weight: 700 !important;
}

.nav__buy:hover {
  background: #4ae892;
  color: #041208 !important;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
  z-index: 2;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav.is-open .nav__toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 10, 8, 0.35) 0%, rgba(7, 10, 8, 0.55) 42%, rgba(7, 10, 8, 0.92) 100%),
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(20, 154, 82, 0.18), transparent 70%);
}

.hero__content {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 6.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7.5vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 14ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero__ticker {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 11rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--green);
  text-shadow: 0 10px 50px rgba(47, 214, 123, 0.25);
}

.hero__lead {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: rgba(244, 247, 244, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.ca {
  margin-top: 1.35rem;
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 10, 8, 0.55);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ca:hover {
  border-color: rgba(47, 214, 123, 0.45);
  background: rgba(7, 10, 8, 0.72);
}

.ca__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
}

.ca__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(244, 247, 244, 0.88);
}

.ca__hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll i {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Cult ---------- */
.cult {
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(47, 214, 123, 0.08), transparent 60%),
    var(--bg);
}

.cult__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cult__visual {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
}

.cult__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.cult__visual:hover img {
  transform: scale(1.04);
}

.cult__copy p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.cult__copy strong {
  color: var(--ink);
  font-weight: 600;
}

.marquee {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  background: rgba(47, 214, 123, 0.04);
}

.marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.08em;
  color: rgba(244, 247, 244, 0.55);
}

.marquee__track span:nth-child(odd) {
  color: var(--green);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Arc ---------- */
.arc {
  background: var(--bg-2);
}

.arc__head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.arc__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.arc__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.1rem;
}

.arc__item h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.arc__item p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Gallery ---------- */
.gallery__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.gallery__mosaic {
  width: min(100% - 1.25rem, 1400px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}

.gallery__shot {
  grid-column: span 3;
  overflow: hidden;
  border-radius: 6px;
}

.gallery__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.gallery__shot:hover img {
  transform: scale(1.06);
}

.gallery__shot--wide {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery__shot--tall {
  grid-column: span 3;
  grid-row: span 2;
}

/* ---------- Clips ---------- */
.clips {
  background:
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(47, 214, 123, 0.07), transparent 55%),
    var(--bg);
}

.clips__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.clips__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.clip {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 10;
}

.clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Tokenomics ---------- */
.tokenomics {
  background: var(--bg-2);
}

.tokenomics__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.stat {
  background: var(--bg-2);
  padding: clamp(1.6rem, 4vw, 2.4rem) 1.2rem;
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  color: var(--green);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Join / Footer ---------- */
.join {
  padding-bottom: 0;
}

.join__stage {
  position: relative;
  min-height: min(72svh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.join__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.join__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 10, 8, 0.55), rgba(7, 10, 8, 0.88));
}

.join__content {
  text-align: center;
  padding: 4rem 1.5rem;
}

.join__brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}

.join__title {
  margin: 0.4rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.join__content .hero__actions {
  justify-content: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__brand {
  color: var(--ink);
  font-weight: 600;
}

.footer__links {
  display: flex;
  gap: 1.2rem;
}

.footer__links a:hover {
  color: var(--green);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 200;
  transform: translate(-50%, 120%);
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  background: var(--green);
  color: #041208;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

.hero .reveal {
  opacity: 1;
  transform: none;
  animation: heroIn 0.9s var(--ease) both;
}

.hero .reveal--delay-1 { animation-delay: 0.12s; }
.hero .reveal--delay-2 { animation-delay: 0.24s; }
.hero .reveal--delay-3 { animation-delay: 0.36s; }
.hero .reveal--delay-4 { animation-delay: 0.48s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cult__grid,
  .arc__rail,
  .clips__grid {
    grid-template-columns: 1fr;
  }

  .cult__visual {
    aspect-ratio: 16 / 11;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery__shot {
    grid-column: span 3;
  }

  .gallery__shot--wide,
  .gallery__shot--tall {
    grid-column: span 6;
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    background: rgba(7, 10, 8, 0.96);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    color: var(--ink);
  }

  .nav__buy {
    margin-top: 0.5rem;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
  }

  .hero__content {
    padding-bottom: 5.5rem;
  }

  .ca {
    width: 100%;
  }

  .gallery__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }

  .gallery__shot,
  .gallery__shot--wide,
  .gallery__shot--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery__shot:nth-child(1),
  .gallery__shot:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
