/* =============================================================
   JIMOTHY COIN — comic-book styling over painterly raccoon-sage art
   ============================================================= */

:root {
  --ink: #0a0a0a;
  --paper: #f6ecd4;
  --night: #070c1a;
  --night-soft: #0e1730;
  --gold: #f4c542;
  --gold-deep: #c9932a;
  --green: #4c8c5b;
  --green-deep: #2f5c3a;
  --mush: #b478d9;
  --flame: #ff7a3d;
  --text-light: #f4ecd9;
  --shadow-hard: 7px 7px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
}

@font-face {
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Comic Neue", system-ui, sans-serif;
  color: var(--text-light);
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, rgba(5, 8, 18, 0.78) 0%, rgba(5, 8, 18, 0.88) 45%, rgba(5, 8, 18, 0.96) 100%),
    url("background.png");
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  overflow-x: hidden;
}

/* halftone dot texture laid over everything, comic-print feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.3px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

main,
.jimothy-nav,
footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, .font-comic {
  font-family: "Bangers", "Baloo 2", cursive;
  letter-spacing: 1px;
  line-height: 1;
}

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

.ink-outline {
  color: var(--gold);
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  text-shadow:
    3px 3px 0 var(--ink),
    6px 6px 0 rgba(0, 0, 0, 0.35),
    0 0 24px rgba(244, 197, 66, 0.35);
}

.section-pad {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

/* -------------------------------------------------- NAV -------------------------------------------------- */
.jimothy-nav {
  background: rgba(7, 10, 20, 0.92);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding-block: 0.4rem;
}

.jimothy-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
}

.jimothy-nav .navbar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  transition: transform 0.35s ease;
}

.jimothy-nav .navbar-brand:hover img {
  transform: rotate(-14deg) scale(1.08);
}

.jimothy-nav .brand-text {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
}

.jimothy-nav .nav-link {
  color: var(--text-light) !important;
  font-family: "Bangers", cursive;
  font-size: 1.05rem;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0.9rem !important;
}

.jimothy-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.jimothy-nav .nav-link:hover::after,
.jimothy-nav .nav-link.active::after {
  transform: scaleX(1);
}

.jimothy-nav .navbar-toggler {
  border: 3px solid var(--gold);
  border-radius: 8px;
}

.nav-cta {
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
}

/* -------------------------------------------------- BUTTONS -------------------------------------------------- */
.btn-comic {
  font-family: "Bangers", cursive;
  letter-spacing: 1.5px;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 10px 14px 12px 16px;
  padding: 0.65rem 1.6rem;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-comic:hover {
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-comic:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-comic.btn-green {
  background: var(--green);
  color: var(--paper);
}

.btn-comic.btn-mush {
  background: var(--mush);
  color: var(--ink);
}

.btn-comic.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--gold);
}

.btn-comic.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-lg-comic {
  font-size: 1.4rem;
  padding: 0.85rem 2.2rem;
}

/* -------------------------------------------------- COMIC PANEL / FRAME -------------------------------------------------- */
.comic-panel {
  border: 4px solid var(--ink);
  border-radius: 14px 22px 16px 26px;
  box-shadow: var(--shadow-hard);
  background: var(--ink);
  overflow: hidden;
  position: relative;
}

.comic-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tilt-l {
  transform: rotate(-2.2deg);
}

.tilt-r {
  transform: rotate(2.2deg);
}

/* stickers / starbursts */
.sticker {
  position: absolute;
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-hard-sm);
  z-index: 3;
  line-height: 1.05;
}

.sticker-star {
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
  border: none;
  box-shadow: none;
  filter: drop-shadow(4px 4px 0 var(--ink));
}

/* speech bubble */
.speech-bubble {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-hard-sm);
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 42px;
  bottom: -22px;
  width: 0;
  height: 0;
  border: 14px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: 45px;
  bottom: -16px;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  border-top-color: var(--paper);
  border-bottom: 0;
  z-index: 1;
}

/* ticket stub (CA / PAIR display) */
.ticket-stub {
  background: var(--paper);
  color: var(--ink);
  border: 3px dashed var(--ink);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Baloo 2", sans-serif;
  flex-wrap: wrap;
}

.ticket-stub .ticket-label {
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--gold);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.ticket-stub code {
  font-weight: 700;
  color: var(--night-soft);
  word-break: break-all;
}

.copy-btn {
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease;
}

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

.copy-btn.copied {
  background: var(--green);
  color: var(--paper);
}

.copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -------------------------------------------------- ZIGZAG DIVIDERS -------------------------------------------------- */
.zigzag {
  height: 34px;
  width: 100%;
  background: var(--ink);
  clip-path: polygon(
    0% 100%, 4% 0%, 8% 100%, 12% 0%, 16% 100%, 20% 0%, 24% 100%, 28% 0%,
    32% 100%, 36% 0%, 40% 100%, 44% 0%, 48% 100%, 52% 0%, 56% 100%, 60% 0%,
    64% 100%, 68% 0%, 72% 100%, 76% 0%, 80% 100%, 84% 0%, 88% 100%, 92% 0%,
    96% 100%, 100% 0%, 100% 100%
  );
  position: relative;
  z-index: 2;
}

/* -------------------------------------------------- HERO -------------------------------------------------- */
#hero {
  padding-top: 7.5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.ticker-chip {
  display: inline-block;
  font-family: "Bangers", cursive;
  letter-spacing: 1.5px;
  background: var(--night-soft);
  border: 3px solid var(--gold);
  color: var(--gold);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

.hero-art-wrap {
  position: relative;
}

.hero-art-wrap .comic-panel {
  aspect-ratio: 3 / 4;
  max-width: 420px;
  margin-inline: auto;
}

.hero-art-wrap .sticker-live {
  top: -18px;
  right: -10px;
  width: 130px;
  height: 130px;
  font-size: 0.85rem;
  background: var(--flame);
  transform: rotate(10deg);
}

.hero-art-wrap .sticker-meme {
  bottom: -14px;
  left: -18px;
  width: 120px;
  height: 120px;
  font-size: 0.8rem;
  background: var(--mush);
  transform: rotate(-9deg);
}

/* -------------------------------------------------- ABOUT -------------------------------------------------- */
.about-panel {
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin-inline: auto;
}

.ribbon-tag {
  display: inline-block;
  font-family: "Bangers", cursive;
  letter-spacing: 1.5px;
  background: var(--green);
  border: 3px solid var(--ink);
  color: var(--paper);
  padding: 0.35rem 1.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-2deg);
  margin-bottom: 1rem;
}

.caption-box {
  background: rgba(246, 236, 212, 0.96);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-hard-sm);
  font-size: 1.08rem;
  font-weight: 600;
}

.trait-badge {
  background: var(--night-soft);
  border: 3px solid var(--gold);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Bangers", cursive;
  letter-spacing: 0.8px;
  color: var(--gold);
  font-size: 0.95rem;
}

/* -------------------------------------------------- HOW TO BUY -------------------------------------------------- */
#howtobuy {
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.55), rgba(7, 10, 20, 0.85));
}

.howtobuy-panel {
  aspect-ratio: 3 / 4;
  max-width: 380px;
  margin-inline: auto;
}

.step-panel {
  background: rgba(10, 12, 22, 0.82);
  border: 3px solid var(--ink);
  border-radius: 14px 20px 14px 20px;
  box-shadow: var(--shadow-hard-sm);
  padding: 1.4rem 1.3rem 1.3rem;
  height: 100%;
  position: relative;
}

.step-num {
  position: absolute;
  top: -20px;
  left: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  color: var(--ink);
  font-family: "Bangers", cursive;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hard-sm);
}

.step-panel h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0.4rem 0 0.5rem;
}

.step-panel p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-light);
}

/* -------------------------------------------------- CHART -------------------------------------------------- */
.tv-frame {
  background: linear-gradient(160deg, #1b1f2b, #0a0c14);
  border: 6px solid var(--ink);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow-hard);
  position: relative;
}

.tv-frame::before,
.tv-frame::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a3f4d;
  border: 2px solid var(--ink);
}

.tv-frame::before {
  left: 14px;
}

.tv-frame::after {
  right: 14px;
}

.tv-screen {
  background: #05070c;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #1e2230;
}

.tv-screen iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--flame);
  display: inline-block;
  margin-right: 0.4rem;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.chart-fallback {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--paper);
  text-align: center;
  padding: 2rem;
}

/* -------------------------------------------------- JOIN US -------------------------------------------------- */
#joinus {
  background: linear-gradient(180deg, rgba(7, 10, 20, 0.35), rgba(5, 7, 15, 0.92));
}

.banner-panel {
  border: 5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  max-width: 980px;
  margin-inline: auto;
}

.banner-panel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}

.social-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 2.1rem;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.social-badge:hover {
  transform: translateY(-6px) rotate(-6deg);
  color: var(--ink);
  box-shadow: 6px 10px 0 var(--ink);
}

.social-badge.badge-x { background: #ffffff; }
.social-badge.badge-tg { background: #7fc6ef; }
.social-badge.badge-pump { background: var(--flame); }
.social-badge.badge-dex { background: var(--green); color: var(--paper); }

.social-badge span.label {
  position: absolute;
  margin-top: 74px;
  font-family: "Bangers", cursive;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-light);
}

.social-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.social-item .label {
  font-family: "Bangers", cursive;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* -------------------------------------------------- FOOTER -------------------------------------------------- */
footer {
  background: var(--ink);
  border-top: 4px solid var(--gold);
  padding: 1.6rem 0;
  text-align: center;
}

footer img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

footer .foot-socials a {
  color: var(--gold);
  font-size: 1.3rem;
  margin-inline: 0.5rem;
  text-decoration: none;
}

footer p {
  color: #a9a48c;
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}

/* -------------------------------------------------- REVEAL ANIMATION -------------------------------------------------- */
.comic-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.comic-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* -------------------------------------------------- RESPONSIVE -------------------------------------------------- */
@media (max-width: 991.98px) {
  .tv-screen iframe {
    height: 460px;
  }
  #hero {
    padding-top: 6rem;
    text-align: center;
  }
  .speech-bubble::after,
  .speech-bubble::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) {
  .tv-screen iframe {
    height: 340px;
  }
  .social-badge {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}
