:root {
  --yellow: #ffe135;
  --yellow-deep: #f0c800;
  --yellow-soft: #fff6a8;
  --ink: #0a0a0a;
  --ink-soft: #1f1f1f;
  --paper: #fffced;
  --paper-shadow: #e8d84a;
  --white: #ffffff;
  --stroke: 3.5px;
  --font-display: "Fuzzy Bubbles", "Comic Sans MS", cursive;
  --font-body: "Patrick Hand", "Comic Sans MS", cursive;
  --font-stamp: "Rock Salt", "Fuzzy Bubbles", cursive;
  --radius-wobble: 28% 72% 35% 65% / 55% 28% 72% 45%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(240, 200, 0, 0.45), transparent 50%),
    linear-gradient(165deg, var(--yellow) 0%, var(--yellow-deep) 55%, #f5d020 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  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");
  mix-blend-mode: multiply;
}

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

.doodle {
  position: absolute;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: rgba(10, 10, 10, 0.12);
  animation: drift 18s linear infinite;
  font-family: var(--font-stamp);
  user-select: none;
}

@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-120vh) rotate(25deg); }
}

/* Wobbly hand-drawn border feel */
.wobble-border {
  border: var(--stroke) solid var(--ink);
  border-radius: 255px 45px 225px 35px / 35px 225px 45px 255px;
  box-shadow:
    5px 6px 0 var(--ink),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  background: var(--paper);
  animation: boil-border 0.45s steps(2) infinite;
}

@keyframes boil-border {
  0% { border-radius: 255px 45px 225px 35px / 35px 225px 45px 255px; }
  50% { border-radius: 45px 255px 35px 225px / 225px 35px 255px 45px; }
}

.boil {
  animation: boil-text 0.55s steps(2) infinite;
}

@keyframes boil-text {
  0% { transform: translate(0, 0) rotate(-0.4deg); }
  50% { transform: translate(0.5px, -0.5px) rotate(0.4deg); }
}

.float-bob {
  animation: bob 2.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.rubber-bounce {
  animation: rubber 3.2s ease-in-out infinite;
  filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.25));
}

@keyframes rubber {
  0%, 100% { transform: translateY(0) scale(1, 1) rotate(-2deg); }
  40% { transform: translateY(-14px) scale(1.03, 0.97) rotate(2deg); }
  60% { transform: translateY(-6px) scale(0.98, 1.02) rotate(-1deg); }
}

.wiggle-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wiggle-hover:hover {
  transform: rotate(-2deg) scale(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(-1deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* NAV */
.nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 12px clamp(12px, 3vw, 28px);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 252, 237, 0.92);
  backdrop-filter: blur(8px);
  animation: none;
  border-radius: 40px 18px 36px 14px / 18px 40px 14px 36px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  object-fit: cover;
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  margin-left: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: -2px;
  width: 104%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-socials {
  margin-left: auto;
  display: flex;
  gap: 0.45rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 50% 40% 55% 45%;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  transition: transform 0.2s ease;
}

.icon-btn:hover {
  transform: rotate(8deg) scale(1.08);
  background: var(--white);
}

.icon-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 0;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg-scribble {
  position: absolute;
  inset: 8% 5% auto;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.35), transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(10, 10, 10, 0.03) 18px,
      rgba(10, 10, 10, 0.03) 20px
    );
  border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  z-index: -1;
  animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
  0%, 100% { border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; }
  50% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-mascot-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.mascot-ring {
  position: absolute;
  width: min(88%, 420px);
  aspect-ratio: 1;
  border: 4px dashed var(--ink);
  border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
  opacity: 0.35;
  animation: spin-slow 28s linear infinite, boil-border 0.6s steps(2) infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero-logo {
  width: min(100%, 420px);
  border-radius: 28px;
  border: 4px solid var(--ink);
  background: var(--yellow);
}

.action-lines {
  position: absolute;
  inset: 12% -4% auto auto;
  width: 70px;
  height: 70px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 10px / 40px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 8px 28px / 50px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 46px / 32px 3px no-repeat;
  opacity: 0.5;
  animation: dash-pop 1.2s steps(2) infinite;
}

@keyframes dash-pop {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(6px, -4px) scale(1.1); opacity: 0.7; }
}

.hero-kicker {
  font-family: var(--font-stamp);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.title-line {
  display: block;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

.title-main {
  display: inline-block;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.15em 0.25em 0.2em;
  border-radius: 18px 40px 22px 36px / 36px 18px 40px 22px;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.2);
  transform: rotate(-1.5deg);
  animation: stamp-in 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes stamp-in {
  0% { transform: scale(1.4) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(-1.5deg); opacity: 1; }
}

.hero-symbol {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  padding: 0.15em 0.55em;
  border-radius: 999px 999px 999px 40px;
  background: var(--white);
  box-shadow: 3px 4px 0 var(--ink);
  margin-bottom: 0.75rem;
}

.hero-tag {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 28ch;
  margin-bottom: 1.25rem;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1.25rem;
  max-width: 100%;
  animation: none;
  border-radius: 18px 28px 16px 30px / 28px 16px 30px 18px;
  background: var(--white);
}

.ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 0.15em 0.45em;
  border-radius: 10px;
}

.ca-value {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  font-family: var(--font-display);
  font-weight: 700;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  padding: 0.35em 0.75em;
  border-radius: 12px 18px 10px 16px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.ca-copy:hover {
  background: var(--white);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.7em 1.15em;
  border: 3px solid var(--ink);
  border-radius: 22px 40px 18px 36px / 36px 18px 40px 22px;
  box-shadow: 4px 5px 0 var(--ink);
  cursor: pointer;
}

.btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

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

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  background: var(--white);
}

.btn-x {
  background: var(--yellow-soft);
}

.btn-x img {
  filter: brightness(0);
}

.ticker {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 3.5px solid var(--ink);
  border-bottom: 3.5px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  padding: 0.55rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  animation: marquee 22s linear infinite;
  width: max-content;
}

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

/* SECTIONS */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.1em 0.4em 0.15em;
  border-radius: 16px 30px 14px 28px / 28px 14px 30px 16px;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-1deg);
}

.section-sub {
  margin-top: 0.85rem;
  font-size: 1.25rem;
  opacity: 0.85;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.paper,
.tweet-wrap {
  padding: 1.5rem 1.4rem 1.6rem;
  animation: none;
  border-radius: 30px 18px 34px 16px / 18px 34px 16px 30px;
}

.paper {
  background:
    linear-gradient(135deg, transparent 0 96%, rgba(10, 10, 10, 0.08) 96%),
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(10, 10, 10, 0.06) 28px
    ),
    var(--paper);
  transform: rotate(-0.8deg);
}

.paper-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.paper p + p {
  margin-top: 0.85rem;
}

.paper-punch {
  margin-top: 1.2rem !important;
  font-family: var(--font-stamp);
  font-size: 1.15rem;
  border-left: 4px solid var(--ink);
  padding-left: 0.85rem;
}

.tweet-wrap {
  background: var(--white);
  transform: rotate(0.7deg);
}

.tweet-note {
  margin-bottom: 0.85rem;
}

.tweet-wrap .twitter-tweet {
  margin: 0 auto !important;
}

/* HOW TO BUY */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  padding: 1.25rem 1.1rem 1.4rem;
  background: var(--white);
  animation: none;
  border-radius: 24px 40px 20px 36px / 36px 20px 40px 24px;
  position: relative;
  transform: rotate(-0.5deg);
}

.step:nth-child(even) {
  transform: rotate(0.8deg);
  background: var(--yellow-soft);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50% 40% 55% 45%;
  margin-bottom: 0.7rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.howto-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.65em 1em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 4px 0 var(--ink);
}

.link-chip img {
  width: 20px;
  height: 20px;
  filter: brightness(0);
}

/* CHART */
.chart-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  animation: none;
  border-radius: 28px 18px 32px 16px / 18px 32px 16px 28px;
  min-height: 560px;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  padding: 1.5rem;
  z-index: 1;
}

.chart-placeholder img {
  width: 56px;
  height: 56px;
  filter: brightness(0) invert(1) sepia(1) saturate(8) hue-rotate(5deg);
  opacity: 0.9;
  animation: bob 2.4s ease-in-out infinite;
}

.chart-frame iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
  background: #0b0b0f;
}

.chart-frame iframe[hidden] {
  display: none;
}

.chart-fallback {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* JOIN US */
.banner-frame {
  overflow: hidden;
  padding: 0;
  animation: none;
  border-radius: 24px 40px 20px 36px / 36px 20px 40px 24px;
  background: var(--yellow);
  max-width: 980px;
  margin: 0 auto;
}

.join-banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

.join-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  background: var(--white);
  animation: none;
  border-radius: 30px 16px 28px 18px / 16px 28px 18px 30px;
  text-align: center;
}

.social-card:nth-child(2) {
  background: var(--yellow-soft);
}

.social-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0);
  margin-bottom: 0.25rem;
}

.social-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.social-handle {
  opacity: 0.7;
  font-size: 1rem;
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 3.5px solid var(--ink);
  background: rgba(10, 10, 10, 0.92);
  color: var(--yellow);
}

.footer-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 3px solid var(--yellow);
}

.footer-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  opacity: 0.65;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .steps,
  .join-links {
    grid-template-columns: 1fr;
  }

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

  .hero-mascot-wrap {
    order: -1;
  }

  .hero-logo {
    width: min(70%, 320px);
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-socials {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .nav.open .nav-socials {
    display: flex;
    position: absolute;
    top: calc(100% + 150px);
    right: 12px;
  }

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

  .chart-frame iframe {
    height: 480px;
  }

  .title-main {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .ca-box {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
