/* ===================================================================
   $PEDRO — Pedro the Raccoon
   =================================================================== */

:root{
  --lime: #cdff1a;
  --lime-dark: #a6d600;
  --lime-soft: #eaffb0;
  --forest: #1e3524;
  --forest-deep: #0f1c13;
  --forest-light: #2c4a34;
  --ink: #14150f;
  --cream: #fbf7ec;
  --paper: #ffffff;
  --muted: #6b6a5f;
  --muted-light: #b9c9b8;
  --border: #e4e2d4;

  --font-display: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 30px rgba(15, 28, 19, 0.12);
  --shadow-hard: 6px 6px 0 var(--ink);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); margin: 0; font-weight: 600; }
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }
.icon{ width: 20px; height: 20px; display: block; }

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

/* ---------- layout helpers ---------- */
.section{ padding: 96px 24px; }
.section__inner{ max-width: 1140px; margin: 0 auto; }
.section--alt{ background: var(--forest-deep); color: var(--cream); }
.section--dark{ background: var(--forest-deep); color: var(--cream); }
.eyebrow{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow--light{ background: var(--lime); color: var(--ink); }
.eyebrow--dark{ background: var(--forest); color: var(--lime); }
.h2{ font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.01em; max-width: 16ch; }
.h2--light{ color: var(--paper); }
.section__lede{ max-width: 620px; font-size: 18px; color: var(--muted); margin-top: 18px; }
.section__lede--dark{ color: var(--muted-light); }

/* ---------- reveal-on-scroll (progressive enhancement: visible by default, only
   animates in once JS confirms it can reveal-on-scroll, so a JS failure never
   leaves content stuck invisible) ---------- */
.reveal{ opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
html.js .reveal{ opacity: 0; transform: translateY(24px); }
html.js .reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-hard);
  white-space: nowrap;
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active{ transform: translate(0,0); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary{ background: var(--lime); color: var(--ink); }
.btn--ghost{ background: var(--paper); color: var(--ink); }
.btn--ghost.btn--dark{ background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 6px 6px 0 rgba(255,255,255,.15); margin-top: 26px; }
.btn--ghost.btn--dark:hover{ box-shadow: 8px 8px 0 rgba(255,255,255,.22); }
.btn--lg{ padding: 16px 30px; font-size: 16px; }

/* ---------- CA pill ---------- */
.ca-pill{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--lime);
  border: none; border-radius: 999px; padding: 10px 18px;
  font-family: var(--font-body); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ca-pill:hover{ background: var(--forest-light); transform: translateY(-1px); }
.ca-pill__label{ font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-light); font-weight: 600; }
.ca-pill__addr{ font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; font-weight: 600; }
.icon-copy{ width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.ca-pill--hero{ margin: 26px 0 20px; max-width: 100%; overflow: hidden; }
.ca-pill--hero .ca-pill__addr{ overflow: hidden; text-overflow: ellipsis; }
.ca-pill--buy, .ca-pill--footer{ }

/* ---------- marquee ---------- */
.marquee{ overflow: hidden; white-space: nowrap; }
.marquee--top{ background: var(--ink); color: var(--lime); padding: 9px 0; font-size: 12.5px; }
.marquee--mid{ background: var(--lime); color: var(--forest-deep); padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); margin: -14px 0; position: relative; z-index: 3; }
.marquee--top .marquee__track span, .marquee--mid .marquee__track span{
  font-family: var(--font-display); font-weight: 600; letter-spacing: .03em;
}
.marquee--mid .marquee__track span{ font-size: 26px; text-transform: uppercase; -webkit-text-stroke: 1px var(--forest-deep); }
.marquee__track{ display: inline-flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee--top .marquee__track{ animation-duration: 26s; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,236,.88); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav__inner{
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__brand{ display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; flex-shrink: 0; }
.nav__brand-img{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.nav__links{ display: flex; gap: 28px; font-weight: 600; font-size: 14.5px; }
.nav__links a{ opacity: .8; transition: opacity .15s ease; }
.nav__links a:hover{ opacity: 1; }
.nav__actions{ display: flex; align-items: center; gap: 12px; }
.nav__burger{ display: none; flex-direction: column; gap: 4px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span{ display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero{ position: relative; padding: 56px 24px 0; overflow: hidden; }
.hero__bg{
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(205,255,26,.55), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(205,255,26,.35), transparent 40%),
    var(--cream);
}
.hero__inner{
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-bottom: 70px;
}
.eyebrow{ }
.h1{ font-size: clamp(44px, 6.4vw, 78px); line-height: .98; letter-spacing: -0.015em; margin-bottom: 22px; }
.h1__accent{ color: var(--forest); -webkit-text-stroke: 2px var(--ink); }
.hero__sub{ font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero__stats{ display: flex; gap: 14px; margin: 26px 0 6px; flex-wrap: wrap; }
.stat-chip{
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-md);
  padding: 10px 16px; box-shadow: 4px 4px 0 var(--ink);
  display: flex; flex-direction: column; min-width: 108px;
}
.stat-chip strong{ font-family: var(--font-display); font-size: 21px; }
.stat-chip span{ font-size: 12px; color: var(--muted); }
.hero__cta{ display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__socials{ display: flex; gap: 14px; margin-top: 22px; }
.hero__socials a{
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; background: var(--paper);
  transition: background .15s ease, transform .15s ease;
}
.hero__socials a:hover{ background: var(--lime); transform: translateY(-2px); }

.hero__art{ position: relative; }
.hero__blob{
  position: absolute; inset: -8% -8% 4% -4%;
  background: var(--forest); border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  z-index: 0;
}
.hero__card{
  position: relative; z-index: 1;
  background: var(--lime); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
}
.hero__img{ border-radius: calc(var(--radius-lg) - 8px); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.sticker{
  position: absolute; z-index: 2; font-family: var(--font-display); font-weight: 700;
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 10px 18px;
  box-shadow: 5px 5px 0 var(--ink);
}
.sticker--ticker{ top: -6%; left: -6%; background: var(--forest); color: var(--lime); transform: rotate(-9deg); font-size: 18px; }
.sticker--views{ bottom: 4%; right: -8%; background: var(--paper); color: var(--ink); transform: rotate(6deg); font-size: 14px; }

/* ---------- story ---------- */
.story{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story__copy p{ color: var(--muted); font-size: 16.5px; }
.story__copy a{ color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.story__gallery{ display: flex; gap: 12px; margin-top: 26px; }
.clip-card{
  position: relative; flex: 1; aspect-ratio: 3/4; border-radius: var(--radius-md);
  background: var(--forest); border: 2px solid var(--ink); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease;
}
.clip-card:hover{ transform: translateY(-4px); }
.clip-card__play{
  color: var(--lime); font-size: 20px; background: rgba(0,0,0,.35);
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.clip-card__views{
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 700;
  text-align: center; border-radius: 999px; padding: 4px 6px;
}
.story__video{ position: relative; }
.hype-video{
  width: 100%; border-radius: var(--radius-lg); border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--forest); aspect-ratio: 848/704; object-fit: cover;
}
.story__video-caption{ margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- trust grid ---------- */
.trust-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.trust-card{
  background: var(--forest); border: 2px solid rgba(205,255,26,.25); border-radius: var(--radius-md);
  padding: 26px 22px;
}
.trust-card__icon{ font-size: 26px; margin-bottom: 12px; }
.trust-card h3{ font-size: 18px; margin-bottom: 8px; color: var(--paper); }
.trust-card p{ font-size: 14.5px; color: var(--muted-light); }
.trust-card a{ color: var(--lime); text-decoration: underline; }
.callout{
  margin-top: 34px; background: rgba(205,255,26,.1); border: 1.5px dashed rgba(205,255,26,.5);
  border-radius: var(--radius-md); padding: 18px 22px; color: var(--lime-soft); font-size: 14.5px; max-width: 780px;
}

/* ---------- steps ---------- */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.step{
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-md);
  padding: 24px 20px; box-shadow: 5px 5px 0 var(--ink);
}
.step__num{
  width: 36px; height: 36px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
  margin-bottom: 14px;
}
.step h3{ font-size: 17px; margin-bottom: 6px; }
.step p{ font-size: 14.5px; color: var(--muted); }
.buy-cta{ display: flex; align-items: center; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.buy-cta .ca-pill{ background: var(--forest); color: var(--lime); }

/* ---------- onramp + swap widgets ---------- */
.widget-banner{
  margin-top: 26px; background: #fff6d8; border: 1.5px dashed #c9a227; color: #6b5410;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; max-width: 780px;
}
.widget-banner code{ background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; }
.widget-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.widget-card{
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 16px;
}
.widget-card__head{ display: flex; gap: 14px; align-items: flex-start; }
.widget-card__num{
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--lime);
  border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.widget-card h3{ font-size: 17px; margin-bottom: 4px; }
.widget-card p{ font-size: 13.5px; color: var(--muted); }
.widget-frame{
  position: relative;
  border-radius: var(--radius-md); overflow: hidden; border: 1.5px solid var(--border);
  background: #f1efe4; height: 560px;
}
.widget-frame iframe{ width: 100%; height: 100%; border: none; }
.widget-frame__notice{
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  gap: 10px; padding: 26px; background: var(--forest-deep); color: var(--muted-light);
  font-size: 13.5px; text-align: center;
}
.widget-frame__notice strong{ color: var(--lime); font-family: var(--font-display); font-size: 15px; }
.widget-frame__notice code{ background: rgba(205,255,26,.12); color: var(--lime-soft); padding: 1px 6px; border-radius: 4px; }
.widget-fallback{
  text-align: center; font-size: 13px; font-weight: 600; color: var(--forest);
  text-decoration: underline; text-underline-offset: 3px;
}
.divider-label{
  text-align: center; margin: 54px 0 0; font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- chart ---------- */
.chart-frame{
  margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid rgba(205,255,26,.3); background: #131a13; height: 620px;
}
.chart-frame iframe{ width: 100%; height: 100%; border: none; }

/* ---------- proof / gallery ---------- */
.proof{
  margin-top: 40px; background: var(--lime); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 10px 10px 0 var(--ink); display: flex; justify-content: center;
}
.proof__img{ border-radius: var(--radius-md); max-width: 620px; width: 100%; }

/* ---------- socials ---------- */
.social-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.social-card{
  background: var(--forest); border: 2px solid rgba(205,255,26,.25); border-radius: var(--radius-md);
  padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, border-color .15s ease;
}
.social-card:hover{ transform: translateY(-4px); border-color: var(--lime); }
.social-card__icon{ width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--lime); border-radius: 10px; color: var(--forest-deep); }
.social-card__icon .icon{ width: 18px; height: 18px; }
.social-card__name{ font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--paper); }
.social-card__handle{ font-size: 13.5px; color: var(--muted-light); }

/* ---------- footer ---------- */
.footer{ background: var(--ink); color: var(--muted-light); padding: 60px 24px 34px; }
.footer__inner{ max-width: 1000px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer__brand{ display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--lime); }
.footer__brand-img{ width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--lime); object-fit: cover; }
.footer__links{ display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 14px; font-weight: 600; }
.footer__links a:hover{ color: var(--lime); }
.footer__disclaimer{ max-width: 640px; font-size: 12.5px; line-height: 1.7; color: #837f6e; }
.footer__copy{ font-size: 12px; color: #5f5c50; }

/* ---------- toast + to-top ---------- */
.toast{
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--lime); padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.toast.is-visible{ opacity: 1; transform: translateX(-50%) translateY(0); }
.to-top{
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--ink); font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .2s ease; z-index: 150;
  box-shadow: 4px 4px 0 var(--ink);
}
.to-top.is-visible{ opacity: 1; pointer-events: auto; }
.to-top:hover{ transform: translateY(-3px); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero__art{ order: -1; max-width: 420px; margin: 0 auto 30px; }
  .story{ grid-template-columns: 1fr; }
  .story__video{ order: -1; }
  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .social-grid{ grid-template-columns: repeat(2, 1fr); }
  .chart-frame{ height: 520px; }
  .widget-row{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav__links{
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream); border-bottom: 2px solid var(--ink);
    padding: 6px 24px 18px;
  }
  .nav__links.is-open{ display: flex; }
  .nav__links a{ padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__burger{ display: flex; }
  .ca-pill--nav, .btn--nav{ display: none; }
  .section{ padding: 70px 20px; }
  .hero{ padding-top: 40px; }
  .hero__stats{ gap: 10px; }
  .stat-chip{ min-width: 92px; padding: 8px 12px; }
  .stat-chip strong{ font-size: 18px; }
  .sticker--ticker, .sticker--views{ font-size: 12px; padding: 7px 12px; }
  .trust-grid, .steps, .social-grid{ grid-template-columns: 1fr; }
  .ca-pill--hero .ca-pill__addr{ font-size: 11px; }
  .chart-frame{ height: 440px; }
  .widget-frame{ height: 480px; }
  .marquee--mid .marquee__track span{ font-size: 19px; }
}

@media (max-width: 460px){
  .hero__cta{ flex-direction: column; align-items: stretch; }
  .hero__cta .btn{ width: 100%; }
  .buy-cta{ flex-direction: column; align-items: stretch; }
  .buy-cta .btn{ width: 100%; }
}
