:root {
  --paper: #f4efe3;
  --paper-deep: #e8ddc5;
  --ink: #191716;
  --muted: #665f55;
  --roach: #8c4f25;
  --green: #35d21f;
  --green-dark: #16770f;
  --amber: #f4ba3a;
  --hazard: #ff4d2d;
  --border: rgba(25, 23, 22, 0.18);
  --shadow: 0 24px 80px rgba(28, 19, 12, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(53, 210, 31, 0.18), transparent 23rem),
    radial-gradient(circle at 8% 62%, rgba(244, 186, 58, 0.17), transparent 22rem),
    linear-gradient(180deg, #fbf7ec 0%, var(--paper) 42%, #efe2c8 100%);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0;
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(25, 23, 22, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 22, 0.05) 1px, transparent 1px);
  background-size: 31px 31px;
  mix-blend-mode: multiply;
}

.roach-swarm {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.roach-runner {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--size, 38px);
  height: auto;
  pointer-events: auto;
  cursor: crosshair;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.28));
  animation: roach-dash var(--duration, 4s) linear forwards;
  will-change: transform, opacity;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 2px dashed var(--border);
  background: rgba(251, 247, 236, 0.87);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.86rem;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2.8vw, 2.4rem);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta,
.button {
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav a:hover,
.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.header-cta {
  color: #fff;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--green);
}

.wallet-connect {
  cursor: pointer;
}

.buy-link {
  background: var(--green);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 68px);
  padding: clamp(2rem, 5vw, 3.25rem) 1rem clamp(2rem, 5vw, 3.4rem);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background:
    linear-gradient(90deg, transparent 0 22px, rgba(25, 23, 22, 0.13) 22px 24px, transparent 24px 48px),
    linear-gradient(180deg, transparent, rgba(25, 23, 22, 0.05));
  mask-image: linear-gradient(transparent, #000);
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(2.8rem, 5.2vw, 4rem);
  line-height: 0.95;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--green-dark);
  text-shadow: 4px 4px 0 rgba(244, 186, 58, 0.45);
}

.hero-copy {
  max-width: 770px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.13rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.button.primary {
  color: var(--ink);
  background: var(--green);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.52);
}

.buzz-button {
  color: #fff;
  background: var(--hazard);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
}

.is-buzzing {
  animation: button-buzz 120ms linear 5;
}

.bzz-pop {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  color: var(--hazard);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 3rem);
  text-shadow: 3px 3px 0 var(--green), 5px 5px 0 var(--ink);
  animation: bzz-pop 820ms ease-out forwards;
}

.button.wide {
  width: 100%;
}

.mascot-wrap {
  position: relative;
  width: min(390px, 82vw);
  margin: 0.85rem auto 0;
  filter: drop-shadow(0 28px 34px rgba(55, 32, 16, 0.24));
}

.mascot-wrap img {
  display: block;
  width: 100%;
  height: auto;
  animation: wobble 5.2s ease-in-out infinite;
}

.ticker-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff9e8;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  transform: rotate(-5deg);
}

.ticker-bubble.one {
  left: -1.8rem;
  top: 35%;
}

.ticker-bubble.two {
  right: -1.4rem;
  top: 49%;
  color: #fff;
  background: var(--hazard);
  transform: rotate(6deg);
}

.section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-top: 2px dashed var(--border);
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.copy-stack {
  display: grid;
  gap: 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.manifesto {
  display: grid;
  gap: 0.4rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(53, 210, 31, 0.2), transparent 34%),
    linear-gradient(180deg, #1b1713, #312016);
  border-block: 2px solid var(--ink);
  text-align: center;
}

.manifesto p {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.manifesto p:nth-child(2) {
  color: var(--amber);
}

.manifesto p:nth-child(4) {
  color: var(--green);
}

.roach-lab {
  background:
    linear-gradient(90deg, rgba(25, 23, 22, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 23, 19, 0.97), rgba(47, 30, 19, 0.98));
  background-size: 38px 38px, auto;
  color: #fff;
  border-block: 2px solid var(--ink);
}

.roach-lab .section-kicker {
  color: var(--green);
}

.roach-lab .section-heading {
  max-width: 1030px;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
}

.visual-card {
  display: grid;
  grid-template-rows: minmax(280px, 460px) auto;
  gap: 1.15rem;
  min-height: 100%;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(53, 210, 31, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 8px 8px 0 var(--green);
  overflow: hidden;
}

.visual-card img {
  align-self: end;
  justify-self: center;
  width: min(100%, 650px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.35));
}

.visual-card div {
  display: grid;
  gap: 0.55rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.share-actions .button {
  width: fit-content;
}

.visual-card span {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-card h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.visual-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.buzz-card,
.cashcat-feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  grid-template-rows: auto;
  align-items: center;
}

.buzz-card img,
.cashcat-feature img {
  width: min(100%, 520px);
}

.cashcat-feature {
  background:
    linear-gradient(135deg, rgba(244, 186, 58, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(53, 210, 31, 0.15), transparent 38%),
    rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.stat-card,
.timeline article,
.token-panel,
details {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 251, 239, 0.72);
  box-shadow: 7px 7px 0 rgba(25, 23, 22, 0.92);
}

.stat-card {
  min-height: 230px;
  padding: 1.3rem;
}

.stat {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--green-dark);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.stat-card p,
.timeline p,
.token-copy p,
details p,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.road {
  background:
    linear-gradient(90deg, rgba(25, 23, 22, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(232, 221, 197, 0.7));
  background-size: 42px 42px, auto;
  border-block: 2px dashed var(--border);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline article {
  display: grid;
  gap: 0.9rem;
  min-height: 250px;
  padding: 1.2rem;
}

.timeline span {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--roach);
  font-size: 0.75rem;
  font-weight: 900;
}

.token-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.token-copy {
  display: grid;
  gap: 1.2rem;
}

.token-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background: #1d1713;
  color: #fff;
}

.wallet-status {
  margin: -0.25rem 0 0.3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contract {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 54px;
  padding: 0.7rem 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  cursor: pointer;
}

.contract span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract strong {
  color: var(--green);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

details {
  padding: 1rem 1.2rem;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.1rem;
}

details p {
  margin-top: 0.75rem;
}

.finale {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 58vh;
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(244, 186, 58, 0.34), transparent 30%),
    linear-gradient(315deg, rgba(53, 210, 31, 0.24), transparent 32%),
    #15110e;
  color: #fff;
}

.finale p {
  color: var(--amber);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.finale h2 {
  color: var(--green);
  font-size: clamp(3.6rem, 12vw, 10rem);
  text-shadow: 6px 6px 0 rgba(255, 77, 45, 0.55);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  border-top: 2px dashed var(--border);
  font-size: 0.9rem;
}

.footer span {
  font-weight: 900;
}

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

  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes roach-dash {
  0% {
    opacity: 0;
    transform: translate3d(var(--start-x), var(--start-y), 0) rotate(var(--spin-start)) scale(var(--scale));
  }

  8%,
  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--end-x), var(--end-y), 0) rotate(var(--spin-end)) scale(var(--scale));
  }
}

@keyframes button-buzz {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }

  50% {
    transform: translate(2px, -1px) rotate(1deg);
  }

  75% {
    transform: translate(-1px, -1px) rotate(-1deg);
  }
}

@keyframes bzz-pop {
  from {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) scale(0.7) rotate(-8deg);
  }

  18% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(-50%, -78px, 0) scale(1.25) rotate(7deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .buy-link {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.1rem;
  }

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

  .buzz-card,
  .cashcat-feature {
    grid-template-columns: 1fr;
  }

  .split,
  .token-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.6rem;
  }

  .header-cta {
    padding-inline: 0.8rem;
    font-size: 0.8rem;
  }

  .nav {
    gap: 0.55rem;
    font-size: 0.82rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .hero-copy {
    line-height: 1.45;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .eyebrow,
  .section-kicker {
    letter-spacing: 0.24em;
  }

  .ticker-bubble {
    position: static;
    margin: -0.3rem 0.2rem 0;
    transform: none;
    font-size: 0.82rem;
  }

  .mascot-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(315px, 86vw);
  }

  .mascot-wrap img {
    flex-basis: 100%;
  }

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

  .visual-card {
    grid-template-rows: minmax(240px, 340px) auto;
  }

  .buzz-card,
  .cashcat-feature {
    grid-template-rows: minmax(220px, 300px) auto;
  }

  .stat-card,
  .timeline article {
    min-height: auto;
  }

  .footer {
    display: grid;
  }
}

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

  .roach-runner {
    animation-duration: var(--duration, 5s) !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .is-buzzing,
  .bzz-pop {
    animation-duration: 820ms !important;
  }
}
