:root {
  --bg: #fff8ea;
  --paper: #ffffff;
  --ink: #111111;
  --red: #f02d2f;
  --blue: #2f64ff;
  --yellow: #ffe04f;
  --green: #27c463;
  --purple: #7d4dff;
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 224, 79, .38) 0 9%, transparent 10%),
    linear-gradient(90deg, rgba(17, 17, 17, .06) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, .06) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: blur(12px);
}

.brand,
.nav-links,
.hero-actions,
.button-row,
.swap-header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 950;
  text-decoration: none;
}

.brand img,
.swap-header img,
.final-cta img {
  border: 3px solid var(--ink);
  background: white;
  object-fit: cover;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: .9rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 30px 0 34px;
}

.hero-media {
  width: min(100%, 520px);
  justify-self: center;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 224, 79, .45), transparent 48%),
    white;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1deg);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mobile-banner {
  display: none;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "$";
  position: absolute;
  right: 6%;
  top: -54px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 3rem;
  font-weight: 1000;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(12deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
.ticker {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 8.6vw, 8.2rem);
  line-height: .86;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 5.2vw, 4.8rem);
  line-height: .95;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.ticker {
  width: fit-content;
  margin-top: 16px;
  padding: 10px 16px;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 1000;
  line-height: .95;
  box-shadow: var(--shadow);
}

.hero-text,
.final-cta p,
.swap-panel p {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.5;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  font-weight: 750;
}

.hero-actions,
.button-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover {
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary {
  background: var(--yellow);
}

.secondary {
  background: white;
}

.ink {
  background: var(--ink);
  color: white;
  box-shadow: 4px 4px 0 var(--blue);
}

.stats,
.buy-grid,
.meme-grid {
  display: grid;
  gap: 18px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

.stats article,
.contract-strip,
.swap-panel,
.lore-card,
.meme-grid article,
.final-cta {
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.stats article {
  padding: 18px;
}

.stats span,
.contract-strip span,
.swap-header span {
  display: block;
  margin-bottom: 6px;
  color: #626262;
  font-size: .75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.contract-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
  padding: 18px;
}

.contract-strip strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(.92rem, 2vw, 1.25rem);
}

.buy-section,
.memes {
  padding: 46px 0 8px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.buy-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: start;
}

.swap-panel,
.lore-card,
.final-cta {
  padding: clamp(16px, 3vw, 24px);
}

.swap-header {
  gap: 12px;
  margin-bottom: 16px;
}

.swap-header img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

.swap-header strong {
  font-size: 1.8rem;
  line-height: 1;
}

iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #f6f6f6;
}

.lore-card {
  min-height: 430px;
  background:
    linear-gradient(135deg, rgba(47, 100, 255, .12), transparent 45%),
    white;
}

.tweet-shot {
  display: block;
  margin: 18px 0 14px;
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: inherit;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.tweet-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tweet-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: .75rem;
  font-weight: 1000;
}

.tweet-top strong,
.tweet-top span {
  display: block;
}

.tweet-top strong {
  font-size: 1rem;
}

.tweet-top span,
.tweet-meta {
  color: #666;
  font-size: .86rem;
  font-weight: 800;
}

.tweet-shot p {
  margin: 14px 0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.42;
  font-weight: 850;
}

.tweet-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 2px solid #e5e5e5;
  padding-top: 10px;
}

.text-link {
  color: var(--blue);
  font-weight: 1000;
}

.meme-marquee {
  display: flex;
  gap: 12px;
  overflow: hidden;
  margin: 34px calc(50% - 50vw) 0;
  padding: 12px;
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: white;
}

.meme-marquee span {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--red);
  font-weight: 1000;
  white-space: nowrap;
  animation: floaty 3.2s ease-in-out infinite;
}

.meme-marquee span:nth-child(2) {
  background: var(--blue);
  animation-delay: -.7s;
}

.meme-marquee span:nth-child(3) {
  background: var(--green);
  animation-delay: -1.2s;
}

.meme-marquee span:nth-child(4) {
  background: var(--purple);
  animation-delay: -1.8s;
}

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

.meme-grid article {
  margin: 0;
  padding: 12px;
}

.meme-grid article:first-child {
  transform: rotate(-1deg);
}

.meme-grid article:last-child {
  transform: rotate(1deg);
}

.meme-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
}

.meme-grid p {
  margin: 12px 4px 2px;
  font-size: 1.15rem;
  font-weight: 1000;
}

.final-cta {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 46px;
  background:
    linear-gradient(90deg, rgba(255, 224, 79, .45), transparent 55%),
    white;
}

.final-cta img {
  width: 170px;
  height: 170px;
  border-radius: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 120px);
  transition: transform .2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

@media (max-width: 920px) {
  .hero,
  .buy-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    width: 100%;
  }

  .desktop-logo {
    display: none !important;
  }

  .mobile-banner {
    display: block;
  }

  .hero-media img {
    aspect-ratio: 3 / 1;
  }

  .hero-copy::before {
    display: none;
  }

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

@media (max-width: 680px) {
  main {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .contract-strip,
  .final-cta {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a,
  .button {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding-top: 20px;
  }

  .ticker {
    width: 100%;
    text-align: center;
  }

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

  iframe {
    height: 360px;
  }

  .final-cta img {
    width: 140px;
    height: 140px;
  }
}
