@font-face {
  font-display: swap;
  font-family: "Candy Beans";
  src: url("assets/fonts/Candy-Beans.otf") format("opentype");
}

@font-face {
  font-display: swap;
  font-family: "Genty Demo";
  src: url("assets/fonts/GentyDemo-Regular.ttf") format("truetype");
}

:root {
  --acid: #ccfe08;
  --ink: #11110d;
  --cream: #fff8dc;
  --soft: #f7f0c8;
  --brown: #b7653c;
  --green: #6ea20d;
  --deep-green: #385a0b;
  --sky: #7bcdf5;
  --red: #fb2f24;
  --shadow: 8px 12px 0 rgba(17, 17, 13, 0.18), 0 0 0 5px rgba(255, 248, 220, 0.35);
  --button-shadow: 4px 6px 0 rgba(17, 17, 13, 0.22);
  --button-shadow-hover: 6px 9px 0 rgba(17, 17, 13, 0.24);
  --inner-glow: inset 0 0 0 3px rgba(255, 248, 220, 0.62);
  --line: 3px solid var(--ink);
  --display: "Candy Beans", "Arial Black", Impact, system-ui, sans-serif;
  --highlight: "Genty Demo", "Arial Black", Impact, system-ui, sans-serif;
  --readable: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgba(17, 17, 13, 0.12) 3px, transparent 4px),
    var(--acid);
  background-size: 42px 42px;
  font-family: var(--display);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 248, 220, 0.42), rgba(204, 254, 8, 0) 42%);
  content: "";
}

.falling-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.falling-bg img {
  position: absolute;
  top: -90px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  object-fit: contain;
  opacity: 0.28;
  filter: drop-shadow(0 4px 0 rgba(17, 17, 13, 0.18));
  animation: mark-fall var(--d) linear infinite;
  animation-delay: var(--delay);
  transform: translate3d(0, -120px, 0) rotate(var(--r));
}

.topbar,
main,
footer,
.copy-toast {
  position: relative;
  z-index: 1;
}

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

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

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.4rem, 13vw, 12rem);
  text-shadow: 5px 5px 0 var(--cream);
}

h2 {
  font-size: clamp(3rem, 8vw, 7.8rem);
  text-shadow: 4px 4px 0 rgba(255, 248, 220, 0.9);
}

h3 {
  font-size: 1.25rem;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  margin: 16px auto 0;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 246, 0.92), rgba(255, 248, 220, 0.86));
  box-shadow:
    var(--inner-glow),
    0 10px 0 rgba(56, 90, 11, 0.28),
    0 14px 0 rgba(17, 17, 13, 0.16);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-right: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.logo img {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: inset 0 0 0 2px var(--cream), 2px 3px 0 rgba(17, 17, 13, 0.22);
  object-fit: cover;
  object-position: center top;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a,
.buy-now,
.socials a,
.socials button,
.contract-box button,
.section-heading a,
.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--cream);
  box-shadow: inset 0 -3px 0 rgba(17, 17, 13, 0.08), var(--button-shadow);
  text-transform: lowercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav a {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 0.82rem;
}

.buy-now,
.section-heading a,
.platform-link {
  background: var(--ink);
  color: var(--acid);
}

.nav a:hover,
.buy-now:hover,
.socials a:hover,
.socials button:hover,
.contract-box button:hover,
.section-heading a:hover,
.platform-link:hover,
.nav a:focus-visible,
.buy-now:focus-visible,
.socials a:focus-visible,
.socials button:focus-visible,
.contract-box button:focus-visible,
.section-heading a:focus-visible,
.platform-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 -3px 0 rgba(17, 17, 13, 0.08), var(--button-shadow-hover);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
  gap: 30px;
  width: min(1220px, 92vw);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.coin-label {
  display: inline-block;
  margin: 0 0 6px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--cream);
  box-shadow:
    inset 0 0 0 3px rgba(204, 254, 8, 0.44),
    5px 7px 0 rgba(17, 17, 13, 0.2);
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  font-family: var(--highlight);
  line-height: 1;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 630px;
  margin: 24px 0 0;
  font-family: var(--readable);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 900;
  line-height: 1.35;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.socials a,
.socials button {
  min-width: 54px;
  background: var(--cream);
}

.socials a:nth-child(1) {
  background: var(--sky);
}

.socials a:nth-child(2) {
  background: var(--green);
  color: var(--cream);
}

.socials a:nth-child(3) {
  background: var(--brown);
  color: var(--cream);
}

.contract-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  margin-top: 22px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 10px;
  background: rgba(255, 248, 220, 0.9);
  box-shadow: var(--inner-glow), var(--shadow);
}

.contract-box.wide {
  max-width: none;
}

.contract-box span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--highlight);
  box-shadow: inset 0 0 0 2px rgba(204, 254, 8, 0.42);
}

.contract-box code {
  min-width: 0;
  font-family: var(--readable);
  font-size: 0.98rem;
  font-weight: 900;
}

.contract-box button {
  min-height: 40px;
  padding: 8px 14px;
  background: var(--acid);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
}

.sunburst {
  position: absolute;
  inset: 5% 2%;
  border: 4px solid var(--ink);
  border-radius: 46% 54% 48% 52% / 52% 42% 58% 48%;
  background:
    radial-gradient(circle, var(--cream) 0 28%, transparent 29%),
    conic-gradient(from 0deg, var(--cream) 0 12deg, transparent 12deg 24deg);
  opacity: 0.92;
  box-shadow: inset 0 0 0 8px rgba(204, 254, 8, 0.24), 0 18px 0 rgba(17, 17, 13, 0.1);
  animation: spin 24s linear infinite;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: min(500px, 82%);
  filter: drop-shadow(0 22px 0 rgba(17, 17, 13, 0.18));
  transform: translateY(20px);
}

.mascot-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 18px;
  width: min(1180px, 92vw);
  margin: 0 auto 80px;
}

.mini-card,
.meme-grid article,
.why-grid article,
.steps article,
.token-grid article {
  border: 4px solid var(--ink);
  border-radius: 34px;
  background: var(--cream);
  box-shadow: var(--inner-glow), var(--shadow);
  overflow: hidden;
}

.mini-card {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 16px;
}

.mini-card img {
  width: min(240px, 80%);
  max-height: 180px;
  object-fit: contain;
  object-position: center top;
}

.photo-mini {
  grid-template-rows: 1fr auto;
  padding: 12px;
}

.photo-mini img {
  width: 100%;
  height: 170px;
  max-height: none;
  border: 3px solid var(--ink);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: inset 0 0 0 3px rgba(255, 248, 220, 0.45);
}

.photo-mini.is-holding img {
  object-position: center;
}

.photo-mini.is-drawing img {
  object-position: center 58%;
}

.mini-card span,
.mini-card strong {
  font-size: clamp(1.4rem, 4vw, 3.7rem);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.text-card {
  background: var(--ink);
  color: var(--acid);
  box-shadow: inset 0 0 0 4px rgba(204, 254, 8, 0.32), var(--shadow);
}

.section-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, 92vw);
  margin: 0 auto 96px;
  border: 4px solid var(--ink);
  border-radius: 44px;
  padding: clamp(22px, 5vw, 54px);
  background: rgba(255, 248, 220, 0.9);
  box-shadow: var(--inner-glow), var(--shadow);
}

.section-image {
  display: grid;
  min-height: 340px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(204, 254, 8, 0.88) 0 32%, transparent 33%),
    var(--soft);
  overflow: hidden;
  box-shadow: inset 0 0 0 5px rgba(255, 248, 220, 0.58);
}

.section-image img {
  width: min(390px, 92%);
  max-height: 440px;
  object-fit: contain;
}

.section-copy p:not(.section-kicker) {
  font-family: var(--readable);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.42;
}

.section-kicker {
  margin: 0 0 12px;
  font-family: var(--highlight);
  font-size: 1.35rem;
  text-transform: lowercase;
}

.memes,
.tokenomics {
  width: min(1180px, 92vw);
  margin: 0 auto 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  max-width: 760px;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.meme-grid article {
  position: relative;
  display: grid;
  min-height: 360px;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 50% 42%, rgba(204, 254, 8, 0.8) 0 30%, transparent 31%),
    var(--cream);
}

.meme-grid article:nth-child(2n) {
  background:
    radial-gradient(circle at 50% 42%, rgba(123, 205, 245, 0.75) 0 30%, transparent 31%),
    var(--cream);
}

.meme-grid article:nth-child(3n) {
  background:
    radial-gradient(circle at 50% 42%, rgba(183, 101, 60, 0.7) 0 30%, transparent 31%),
    var(--cream);
}

.meme-grid img {
  align-self: end;
  justify-self: center;
  width: 92%;
  max-height: 300px;
  object-fit: contain;
}

.meme-grid p {
  margin: 0;
  border-top: 4px solid var(--ink);
  padding: 16px;
  background: rgba(255, 248, 220, 0.86);
  text-align: center;
  text-transform: lowercase;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 290px;
  padding: 24px;
  align-content: start;
}

.why-grid article:nth-child(2n) {
  background:
    radial-gradient(circle at 88% 16%, rgba(204, 254, 8, 0.58) 0 18%, transparent 19%),
    var(--cream);
}

.why-grid article:nth-child(3n) {
  background:
    radial-gradient(circle at 88% 16%, rgba(123, 205, 245, 0.55) 0 18%, transparent 19%),
    var(--cream);
}

.why-grid span {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 220, 0.48), 4px 5px 0 rgba(17, 17, 13, 0.2);
  font-family: var(--readable);
  font-size: 1.75rem;
  overflow: hidden;
}

.why-grid span img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(17, 17, 13, 0.18));
}

.why-grid h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 0.95;
}

.why-grid p {
  margin: 0;
  font-family: var(--readable);
  font-weight: 900;
  line-height: 1.4;
  text-transform: none;
}

.how-to-buy {
  grid-template-columns: 0.78fr 1.22fr;
}

.platform-link {
  width: fit-content;
  margin-top: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  min-height: 220px;
  padding: 20px;
}

.steps span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 220, 0.46), 3px 4px 0 rgba(17, 17, 13, 0.22);
  font-size: 1.4rem;
}

.steps h3 {
  margin-top: 22px;
  font-size: 1.5rem;
}

.steps p,
.token-grid p {
  margin: 14px 0 0;
  font-family: var(--readable);
  font-weight: 900;
  line-height: 1.35;
}

.token-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 18px;
}

.token-grid article {
  min-height: 230px;
  padding: 24px;
}

.token-grid span,
.token-grid strong {
  display: block;
}

.token-grid span {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.supply-card strong {
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.9;
}

.roadmap {
  grid-template-columns: minmax(300px, 0.9fr) minmax(280px, 1.1fr);
}

.roadmap-art {
  background:
    radial-gradient(circle at 50% 42%, rgba(204, 254, 8, 0.9) 0 28%, transparent 29%),
    linear-gradient(135deg, var(--sky), var(--cream));
}

.road-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.road-list li {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 16px 20px;
  background: var(--acid);
  box-shadow: inset 0 0 0 3px rgba(255, 248, 220, 0.4), 5px 7px 0 rgba(17, 17, 13, 0.16);
  font-size: 1.22rem;
}

.road-list span {
  color: var(--deep-green);
  font-family: var(--highlight);
}

.final-banner {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 72px 5vw;
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 248, 220, 0.95) 0 28%, transparent 29%),
    repeating-linear-gradient(45deg, rgba(17, 17, 13, 0.08) 0 14px, transparent 14px 28px),
    var(--green);
  text-align: center;
}

.final-banner p {
  margin: 0 0 10px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--cream);
  box-shadow: inset 0 0 0 3px rgba(204, 254, 8, 0.32), 5px 7px 0 rgba(17, 17, 13, 0.18);
}

.final-banner h2 {
  max-width: 980px;
}

footer {
  display: grid;
  gap: 16px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 36px 0 50px;
  font-family: var(--readable);
  font-weight: 900;
  text-align: center;
}

footer a {
  font-family: var(--display);
  font-size: 1.4rem;
}

footer p {
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.45;
}

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--cream);
  box-shadow: inset 0 0 0 3px rgba(204, 254, 8, 0.3), 6px 8px 0 rgba(17, 17, 13, 0.22);
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes mark-fall {
  0% {
    transform: translate3d(0, -140px, 0) rotate(var(--r));
  }

  50% {
    transform: translate3d(var(--drift), 52vh, 0) rotate(calc(var(--r) + 190deg));
  }

  100% {
    transform: translate3d(calc(var(--drift) * -0.7), 112vh, 0) rotate(calc(var(--r) + 390deg));
  }
}

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

  .falling-bg img {
    opacity: 0.18;
    transform: translate3d(0, 18vh, 0) rotate(var(--r));
  }
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr auto;
    border-radius: 32px;
  }

  .nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .section-shell,
  .how-to-buy,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-art {
    min-height: 420px;
    order: -1;
  }

  .mascot-strip,
  .meme-grid,
  .why-grid,
  .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supply-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .topbar {
    top: 8px;
    width: calc(100% - 18px);
    margin-top: 8px;
    padding: 8px;
  }

  .logo span {
    max-width: 130px;
    white-space: normal;
  }

  .buy-now {
    padding-inline: 13px;
  }

  .nav a {
    flex: 1 1 30%;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .hero {
    width: min(100% - 24px, 1220px);
    min-height: auto;
    padding: 42px 0 52px;
  }

  h1 {
    font-size: clamp(3.6rem, 20vw, 5.6rem);
  }

  .contract-box {
    grid-template-columns: auto 1fr;
  }

  .contract-box button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-art {
    min-height: 330px;
  }

  .mascot-strip,
  .meme-grid,
  .why-grid,
  .steps,
  .token-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    gap: 16px;
    width: 100%;
  }

  .why-grid article {
    display: grid;
    width: 100%;
    min-height: auto;
    padding: 20px;
    border: 4px solid var(--ink);
    border-radius: 30px;
    background:
      radial-gradient(circle at 88% 16%, rgba(204, 254, 8, 0.5) 0 58px, transparent 60px),
      var(--cream);
    box-shadow: var(--inner-glow), 6px 9px 0 rgba(17, 17, 13, 0.18);
    overflow: hidden;
  }

  .why-grid article:nth-child(3n) {
    background:
      radial-gradient(circle at 88% 16%, rgba(123, 205, 245, 0.5) 0 58px, transparent 60px),
      var(--cream);
  }

  .why-grid span {
    display: grid !important;
    place-items: center !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    overflow: hidden !important;
  }

  .why-grid span img {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
  }

  .why-grid h3 {
    font-size: 1.65rem;
  }

  .why-grid p {
    font-size: 1rem;
  }

  .mascot-strip {
    margin-bottom: 56px;
  }

  .section-shell,
  .memes,
  .tokenomics {
    width: min(100% - 24px, 1180px);
    margin-bottom: 64px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .section-image {
    min-height: 280px;
  }

  .meme-grid article {
    min-height: 300px;
  }

  .token-grid article {
    min-height: 180px;
  }
}
