/* ============================================================
   Purrito — $PURR memecoin site
   Palette derived from colorsample.png:
   main green #d5fb52 (hue 73°, sat 97%, light 65%)
   + darker green ramp, warm pops (salsa, tortilla)
   ============================================================ */

:root {
  --bg: #f7fceb;
  --bg-soft: #eef7d7;
  --paper: #fcfff3;
  --ink: #1f2a10;
  --ink-soft: #5c6b47;
  --lime: #d5fb52;       /* main color — sampled from colorsample.png */
  --lime-mid: #b6e436;   /* borders, chips */
  --lime-deep: #7ba81c;  /* hard shadows, small accents */
  --lime-dark: #457a0d;  /* readable green text on light bg */
  --salsa: #ff5e5b;      /* warm pop */
  --tortilla: #f7a331;   /* warm secondary */
  --shadow: 0 10px 30px rgba(69, 122, 13, 0.16);
  --radius: 22px;
  --font-head: "Baloo 2", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--lime); color: var(--ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--lime);
  overflow: hidden;
  white-space: nowrap;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 3px solid var(--lime);
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: ticker-scroll 22s linear infinite;
  will-change: transform;
}

.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(247, 252, 235, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(31, 42, 16, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 2px solid var(--lime-mid);
  transform: rotate(-6deg);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 800;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover { color: var(--lime-dark); transform: translateY(-2px); }

.nav-cta { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(2px) scale(0.98); }

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

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(31, 42, 16, 0.25);
}

.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(31, 42, 16, 0.25); }

.btn-big { padding: 16px 34px; font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 24px 96px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--paper);
  border: 2px dashed var(--lime-mid);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
}

.rainbow-text {
  background: linear-gradient(90deg, var(--lime-dark), var(--lime-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 20px 0 28px;
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-ca {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--lime);
  padding: 10px 12px 10px 18px;
  border-radius: 16px;
  max-width: 100%;
}

.hero-ca-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--lime-mid);
  white-space: nowrap;
}

#ca-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.copy-btn:hover { transform: scale(1.1) rotate(-4deg); }

.hero-pair {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.hero-pair strong { color: var(--lime-dark); }

.hero-pair-bolt {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 0.8rem;
  transform: rotate(-6deg);
}

.hero-art { position: relative; }

.hero-img {
  max-height: 540px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 5px solid var(--ink);
  box-shadow: var(--shadow), 12px 12px 0 var(--lime-mid);
  transform: rotate(1.5deg);
  animation: floaty 5s ease-in-out infinite;
}

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

.hero-chip {
  position: absolute;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 0 rgba(31, 42, 16, 0.2);
  animation: floaty 4.5s ease-in-out infinite;
}

.chip-1 { top: -18px; left: -12px; transform: rotate(-6deg); background: var(--lime); color: var(--ink); animation-delay: 0.4s; }
.chip-2 { bottom: 34px; right: -14px; background: var(--salsa); color: #fff; animation-delay: 1s; }
.chip-3 { bottom: -16px; left: 22%; background: var(--lime-mid); color: var(--ink); animation-delay: 1.8s; }

.hero-paw {
  position: absolute;
  font-size: 2rem;
  top: 12%;
  right: -6%;
  opacity: 0.35;
  animation: floaty 6s ease-in-out infinite;
}

.paw-2 { top: auto; bottom: -4%; left: -8%; animation-delay: 2s; }

.hero-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.blob-1 { width: 420px; height: 420px; background: var(--lime); top: -140px; right: -120px; }
.blob-2 { width: 360px; height: 360px; background: var(--salsa); bottom: -180px; left: -120px; opacity: 0.22; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 44px; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.about-text strong { color: var(--ink); }

.about-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.about-list li {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--lime-mid);
  transition: transform 0.15s ease;
}

.about-list li:hover { transform: translateX(6px) rotate(-0.5deg); }

.about-card {
  position: relative;
  transform: rotate(-1.5deg);
}

.about-card img {
  max-height: 460px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 5px solid var(--ink);
  box-shadow: 12px 12px 0 var(--lime-deep);
}

.about-card figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(31, 42, 16, 0.82);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 12px;
  transform: rotate(-1deg);
}

/* ---------- Tokenomics ---------- */
.token-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.token-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 8px 8px 0 var(--lime-mid);
  transition: transform 0.2s ease;
}

.token-card:hover { transform: translateY(-6px) rotate(-1deg); }

.token-emoji { font-size: 2.4rem; margin-bottom: 8px; }

.token-value {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
}

.token-label { font-weight: 900; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-soft); margin: 4px 0 10px; }

.token-note { font-size: 0.9rem; color: var(--ink-soft); }

.pie-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.pie {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 5px solid var(--ink);
  background: conic-gradient(var(--lime) 0 90%, var(--lime-deep) 90% 98%, var(--salsa) 98% 100%);
  position: relative;
  box-shadow: 8px 8px 0 rgba(31, 42, 16, 0.15);
}

.pie-center {
  position: absolute;
  inset: 52px;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
}

.pie-center small { font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }

.pie-legend { list-style: none; display: grid; gap: 14px; font-weight: 700; }

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid var(--ink);
  vertical-align: middle;
}

.d1 { background: var(--lime); }
.d2 { background: var(--lime-deep); }
.d3 { background: var(--salsa); }

/* ---------- How to buy ---------- */
.howto { background: var(--bg-soft); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: 8px 8px 0 var(--lime-deep);
  transition: transform 0.2s ease;
}

.step:hover { transform: translateY(-6px); }

.step-num {
  position: absolute;
  top: -22px;
  left: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--salsa);
  color: #fff;
  border: 4px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

.howto-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.howto-note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Memes ---------- */
.memes { background: var(--bg-soft); }

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

.meme-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 8px 8px 0 var(--lime-mid);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  margin: 0;
}

.meme-card:hover,
.meme-card:focus-visible {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--lime-deep);
  outline: 3px solid var(--lime-dark);
  outline-offset: 3px;
}

.meme-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--bg-soft);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 28, 10, 0.92);
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border: 5px solid var(--lime);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-family: var(--font-head);
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.lightbox-close:hover { transform: scale(1.1) rotate(-6deg); }

.memes-note {
  margin-top: 44px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

.memes-note strong { color: var(--lime-dark); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 16px; }

.faq-item {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--lime-mid);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.faq-item[open] { transform: translateY(-3px); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--lime-dark);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: #f7fceb;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "🌯 🐱 🧦 🌯 🐱 🧦 🌯 🐱 🧦";
  position: absolute;
  inset: 0;
  font-size: 4rem;
  opacity: 0.06;
  display: flex;
  align-items: center;
  justify-content: space-around;
  white-space: nowrap;
  pointer-events: none;
}

.cta-banner h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 18px 0 10px; }
.cta-banner p { color: var(--lime); font-weight: 700; margin-bottom: 30px; }

.cta-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
  border-radius: 50%;
  border: 5px solid var(--lime);
  animation: floaty 5s ease-in-out infinite;
}

.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.cta-banner .btn-ghost { background: transparent; color: #f7fceb; border-color: #f7fceb; }

/* ---------- Footer ---------- */
.footer { background: #141c0a; color: #ccd8b4; padding: 64px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.4fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand .nav-logo { color: #f7fceb; margin-bottom: 12px; }
.footer-brand p { font-size: 0.92rem; }

.footer-col h4 {
  color: var(--lime);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #ccd8b4;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col a:hover { color: var(--lime-mid); transform: translateX(4px); }

.fine-print { font-size: 0.78rem; color: #97a67f; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(213, 251, 82, 0.15);
  padding-top: 22px;
  font-size: 0.85rem;
}

/* ---------- Toast ---------- */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid var(--lime);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .token-stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .meme-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 18px; gap: 12px; }
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-actions .btn-big { width: 100%; }
  #ca-value { max-width: 150px; }
  .meme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
