:root {
  --sand: #e7d6b4;
  --parchment: #f3e6c8;
  --cream: #f8f0dc;
  --tan: #c9a36d;
  --gold: #f0d56a;
  --gold-deep: #c9a227;
  --brown: #3d2314;
  --chocolate: #5b3a1f;
  --ink: #2a160d;
  --blush: #e8a89b;
  --blush-deep: #d4897a;
  --leaf: #6d8f4d;
  --leaf-deep: #4d6a34;
  --shadow: rgba(61, 35, 20, 0.22);
  --radius: 1.7rem;
  --nav-h: 5.1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background: var(--sand);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.paper,
.blush,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.paper {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(248, 240, 220, 0.9), transparent 58%),
    linear-gradient(180deg, #f6ead0 0%, #e7d6b4 42%, #decaa4 100%);
}

.blush {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(232, 168, 155, 0.34), transparent 42%),
    radial-gradient(ellipse at 86% 18%, rgba(240, 213, 106, 0.22), transparent 36%),
    radial-gradient(ellipse at 72% 78%, rgba(232, 168, 155, 0.2), transparent 40%),
    radial-gradient(ellipse at 12% 88%, rgba(109, 143, 77, 0.12), transparent 34%);
  animation: blush-drift 18s ease-in-out infinite alternate;
}

.grain {
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(240, 213, 106, 0.22), transparent 68%);
  transform: translate3d(-200px, -200px, 0);
  transition: opacity 0.3s ease;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 8px;
  height: 100vh;
  background: rgba(91, 58, 31, 0.12);
}

.progress-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--blush-deep));
  border-radius: 0 8px 8px 0;
  box-shadow: 0 0 16px rgba(232, 168, 155, 0.55);
}

.decor-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.leaf path {
  fill: var(--leaf);
  opacity: 0.18;
}

.leaf path + path {
  fill: none;
  stroke: var(--leaf-deep);
  stroke-width: 3;
  opacity: 0.28;
}

.leaf-a { transform-origin: 90px 40px; animation: sway 9s ease-in-out infinite; }
.leaf-b { transform-origin: 1320px 80px; animation: sway 11s ease-in-out infinite reverse; }
.leaf-c { transform-origin: 80px 640px; animation: sway 10s ease-in-out infinite; }

.float-mark { fill: #e3b23c; opacity: 0.22; }
.banana-a { transform: translate(180px, 220px) rotate(-18deg); animation: floaty 8s ease-in-out infinite; }
.banana-b { transform: translate(1180px, 540px) rotate(24deg); animation: floaty 10s ease-in-out infinite reverse; }
.paw-a { fill: rgba(91, 58, 31, 0.16); transform: translate(240px, 720px); animation: floaty 12s ease-in-out infinite; }
.paw-b { fill: rgba(91, 58, 31, 0.14); transform: translate(980px, 160px); animation: floaty 9s ease-in-out infinite reverse; }
.paw-c { fill: rgba(91, 58, 31, 0.12); transform: translate(1280px, 760px); animation: floaty 11s ease-in-out infinite; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.7rem 1.4rem 0.7rem 1.7rem;
  background: rgba(243, 230, 200, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 58, 31, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-brand img,
.footer .nav-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 18px var(--shadow);
  animation: bob 4.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
  margin-left: 1.2rem;
}

.nav-links a {
  position: relative;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--chocolate);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248, 240, 220, 0.8);
  box-shadow: 3px 4px 0 var(--chocolate), 0 10px 16px var(--shadow);
  transition: transform 0.2s ease;
}

.icon-btn img {
  width: 18px;
  height: 18px;
}

.btn-stone img[src*="x.svg"],
.btn-stone img[src*="dexscreener.svg"],
.btn-stone img[src*="solana.svg"] {
  filter: brightness(0) invert(1) sepia(0.35) saturate(2.2) hue-rotate(6deg);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 3px 4px 0 var(--chocolate);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--brown);
}

.stone-type {
  margin: 0;
  font-family: "Modak", "Baloo 2", sans-serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #f3d76a;
  text-shadow:
    1px 1px 0 #8d5b2c,
    2px 2px 0 #7d4f24,
    3px 3px 0 #6d441e,
    4px 4px 0 #5c3919,
    5px 5px 0 #4b2f15,
    6px 8px 14px rgba(42, 22, 13, 0.28);
}

.stone-type-sm {
  font-size: 1.55rem;
}

.stone-type-xl {
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  animation: title-pop 1s cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

h2.stone-type {
  font-size: clamp(3rem, 7vw, 5.2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn img {
  width: 20px;
  height: 20px;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.btn-stone {
  color: #fff8e8;
  background: linear-gradient(180deg, #c9a227, #8d5b2c);
  box-shadow: 0 4px 0 #3d2314, 0 10px 18px var(--shadow);
}

.btn-ghost {
  color: var(--brown);
  background: rgba(248, 240, 220, 0.78);
  box-shadow: 0 4px 0 #5b3a1f, 0 10px 18px var(--shadow);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--chocolate);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 1rem;
  min-height: min(calc(100vh - var(--nav-h)), 860px);
  padding: 1.2rem 0 3rem;
}

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

.halo,
.halo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.halo {
  width: min(34rem, 88%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 244, 196, 0.95) 0%, rgba(240, 213, 106, 0.35) 38%, transparent 70%);
  animation: halo-breathe 5.5s ease-in-out infinite;
}

.halo-ring {
  width: min(28rem, 74%);
  aspect-ratio: 1;
  border: 2px dashed rgba(201, 162, 39, 0.35);
  animation: spin-slow 28s linear infinite;
}

.hero-ape {
  position: relative;
  width: min(460px, 92%);
  border-radius: 46% 46% 38% 38%;
  mask-image: radial-gradient(ellipse 72% 78% at 50% 48%, #000 58%, transparent 82%);
  filter: drop-shadow(0 22px 18px rgba(61, 35, 20, 0.16));
  animation: ape-float 6s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  animation: twinkle 3.2s ease-in-out infinite;
}

.spark-1 { top: 16%; left: 18%; }
.spark-2 { top: 28%; right: 14%; animation-delay: 0.8s; }
.spark-3 { bottom: 22%; left: 22%; animation-delay: 1.5s; }

.hero-copy {
  padding-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush-deep);
}

.symbol-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: rgba(232, 168, 155, 0.28);
  font-weight: 700;
}

.lead {
  max-width: 28ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  font-weight: 700;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  border-radius: 1.1rem;
  background: rgba(248, 240, 220, 0.72);
  box-shadow: inset 0 0 0 1px rgba(91, 58, 31, 0.08), 0 10px 20px var(--shadow);
}

.ca-label {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--chocolate);
}

#caText {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: #fff8e8;
  background: var(--chocolate);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

section {
  padding: 4.5rem 0 1rem;
}

.section-head {
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.stone-card {
  position: relative;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 236, 0.86), rgba(236, 216, 176, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 5px 0 #8d5b2c,
    0 16px 28px var(--shadow);
}

.about-story p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.pull {
  margin-top: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--chocolate);
}

.about-traits {
  display: grid;
  gap: 1rem;
}

.trait-index,
.step-num {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  color: var(--blush-deep);
}

.trait h3,
.step h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.45rem;
}

.howto {
  position: relative;
}

.trail {
  height: 8px;
  margin: 0 8% 1.4rem;
  border-radius: 99px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-deep) 0 18px,
      transparent 18px 32px
    );
  opacity: 0.45;
  animation: trail-run 8s linear infinite;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.step-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 16px;
  background: #fff8e8;
  box-shadow: 0 6px 0 rgba(91, 58, 31, 0.12);
}

.step-logo img {
  width: 34px;
  height: 34px;
}

.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--chocolate);
  border-bottom: 2px solid var(--gold);
}

.chart-frame {
  padding: 0;
  overflow: hidden;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
}

.chart-bar img {
  width: 22px;
  height: 22px;
}

.chart-bar .text-link {
  margin: 0 0 0 auto;
}

.chart-embed {
  height: min(640px, 72vh);
  background: #f6ead0;
}

.chart-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.banner-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow:
    0 6px 0 #8d5b2c,
    0 22px 36px var(--shadow);
  animation: frame-glow 6s ease-in-out infinite;
}

.banner-frame img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
  animation: kenburns 22s ease-in-out infinite alternate;
}

.join-panel {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.join-lead {
  margin: 0;
  max-width: 28ch;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.7rem 2.2rem;
  background: rgba(61, 35, 20, 0.08);
}

.footer p {
  max-width: 42ch;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
}

.footer-links img {
  width: 16px;
  height: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 50;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  color: #fff8e8;
  background: var(--brown);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.8s ease forwards;
  animation-play-state: paused;
}

.reveal.is-in {
  animation-play-state: running;
}

.paw-burst {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 40;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cellipse cx='24' cy='30' rx='10' ry='8' fill='%235b3a1f'/%3E%3Cellipse cx='10' cy='16' rx='4.5' ry='6' fill='%235b3a1f'/%3E%3Cellipse cx='20' cy='10' rx='4.5' ry='6' fill='%235b3a1f'/%3E%3Cellipse cx='31' cy='11' rx='4.5' ry='6' fill='%235b3a1f'/%3E%3Cellipse cx='38' cy='20' rx='4' ry='5.5' fill='%235b3a1f'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: paw-pop 0.7s ease forwards;
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--tan);
  border-radius: 99px;
}

@keyframes blush-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

@keyframes sway {
  from { rotate: -6deg; }
  to { rotate: 7deg; }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 12px -18px; }
}

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

@keyframes ape-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.4deg); }
}

@keyframes halo-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes title-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes kenburns {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes frame-glow {
  0%, 100% { box-shadow: 0 6px 0 #8d5b2c, 0 22px 36px var(--shadow); }
  50% { box-shadow: 0 6px 0 #8d5b2c, 0 22px 36px rgba(232, 168, 155, 0.35); }
}

@keyframes paw-pop {
  0% { opacity: 0.8; transform: scale(0.4) rotate(-12deg); }
  100% { opacity: 0; transform: scale(1.6) translateY(-18px) rotate(12deg); }
}

@keyframes trail-run {
  from { background-position: 0 0; }
  to { background-position: 160px 0; }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lead {
    max-width: 34ch;
  }

  .hero-cta,
  .join-actions {
    justify-content: center;
  }

  .join-panel {
    flex-direction: column;
    text-align: center;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
  }

  .nav.open {
    flex-wrap: wrap;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    width: 100%;
    margin: 0;
    padding: 0.4rem 0 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .trail {
    display: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
