:root {
  --jungle-deep: #0f2a1c;
  --jungle: #1c4a32;
  --leaf: #2f7a52;
  --leaf-bright: #4caf7a;
  --sun: #f0c75e;
  --sun-hot: #ef9f3c;
  --tabby: #8b5a2b;
  --tabby-deep: #4a2f18;
  --sky: #b8e0d2;
  --mist: #e8f5ee;
  --cream-soft: #f7fbf8;
  --ink: #14261c;
  --ink-soft: rgba(20, 38, 28, 0.72);
  --glass: rgba(247, 251, 248, 0.12);
  --glass-strong: rgba(247, 251, 248, 0.22);
  --stroke: rgba(240, 199, 94, 0.35);
  --shadow: 0 24px 60px rgba(15, 42, 28, 0.35);
  --radius: 22px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(240, 199, 94, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 20%, rgba(76, 175, 122, 0.2), transparent 50%),
    linear-gradient(180deg, #d8efe4 0%, #b7dcc8 28%, #8fbfa3 62%, #1c4a32 100%);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231c4a32' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

.paw-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.paw {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  color: rgba(28, 74, 50, 0.18);
  animation: paw-drift linear infinite;
}

.paw svg {
  width: 100%;
  height: 100%;
}

@keyframes paw-drift {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(0.7);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-12vh) rotate(40deg) scale(1.1);
    opacity: 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition: background 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(15, 42, 28, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(15, 42, 28, 0.25);
}

.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav a,
.site-header.is-scrolled .nav-toggle span {
  color: var(--mist);
}

.site-header.is-scrolled .nav a:hover {
  color: var(--sun);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--sun);
  box-shadow: 0 0 0 3px rgba(240, 199, 94, 0.25);
  animation: mark-pulse 3.5s ease-in-out infinite;
}

@keyframes mark-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(240, 199, 94, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(240, 199, 94, 0.12);
    transform: scale(1.04);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--jungle-deep);
}

.brand-ticker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sun-hot);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--jungle-deep);
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--jungle-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

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

.btn-primary,
.btn-buy {
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-hot) 100%);
  color: var(--tabby-deep);
  box-shadow: 0 10px 28px rgba(239, 159, 60, 0.35);
}

.btn-primary:hover,
.btn-buy:hover {
  box-shadow: 0 16px 36px rgba(239, 159, 60, 0.45);
}

.btn-ghost {
  background: var(--glass-strong);
  color: var(--mist);
  border: 1px solid rgba(247, 251, 248, 0.35);
  backdrop-filter: blur(8px);
}

.about .btn-ghost,
.gallery .btn-ghost,
.token .btn-ghost,
.community .btn-ghost {
  color: var(--jungle-deep);
  border-color: rgba(28, 74, 50, 0.25);
  background: rgba(247, 251, 248, 0.55);
}

.btn-buy {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  animation: ken-burns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ken-burns {
  0% {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.16) translate3d(-1.5%, -1%, 0);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 42, 28, 0.25) 0%, rgba(15, 42, 28, 0.15) 35%, rgba(15, 42, 28, 0.78) 100%),
    radial-gradient(ellipse 70% 55% at 50% 70%, rgba(15, 42, 28, 0.55), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 5.5rem;
  text-align: center;
  color: var(--mist);
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  background: rgba(15, 42, 28, 0.45);
  border: 1px solid var(--stroke);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.title-line {
  display: block;
}

.title-line.accent {
  background: linear-gradient(90deg, var(--sun) 0%, #fff3c4 45%, var(--leaf-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(232, 245, 238, 0.92);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 251, 248, 0.12);
  border: 1px solid rgba(247, 251, 248, 0.28);
  color: var(--mist);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease, color 0.25s ease;
}

.hero-socials a:hover {
  transform: translateY(-4px) scale(1.08);
  background: var(--sun);
  color: var(--tabby-deep);
}

.hero-socials svg {
  width: 20px;
  height: 20px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 2px solid rgba(247, 251, 248, 0.45);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--sun);
  animation: scroll-dot 1.8s var(--ease-out) infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tabby);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--jungle-deep);
}

.section-lead {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.body-copy {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

/* About */
.about {
  background:
    linear-gradient(180deg, rgba(247, 251, 248, 0.55) 0%, rgba(232, 245, 238, 0.85) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-portrait {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(420px, 100%);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 36% 64% 42% 58% / 48% 36% 64% 52%;
  border: 4px solid rgba(240, 199, 94, 0.65);
  box-shadow: var(--shadow);
  animation: blob-morph 10s ease-in-out infinite;
}

.portrait-ring {
  position: absolute;
  inset: -18px;
  border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
  border: 2px dashed rgba(47, 122, 82, 0.35);
  animation: spin-slow 28s linear infinite;
  pointer-events: none;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 36% 64% 42% 58% / 48% 36% 64% 52%;
  }
  33% {
    border-radius: 58% 42% 60% 40% / 42% 58% 42% 58%;
  }
  66% {
    border-radius: 44% 56% 38% 62% / 60% 40% 60% 40%;
  }
}

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

.trait-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.trait-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(247, 251, 248, 0.7);
  border: 1px solid rgba(28, 74, 50, 0.1);
  border-radius: 16px;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out), background 0.25s ease;
}

.trait-list li:hover {
  transform: translateX(6px);
  background: rgba(240, 199, 94, 0.2);
}

.trait-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(28, 74, 50, 0.12);
  color: var(--jungle);
}

.trait-icon svg {
  width: 18px;
  height: 18px;
}

/* Gallery — cards only for interactive embeds */
.gallery {
  background:
    linear-gradient(180deg, rgba(28, 74, 50, 0.92) 0%, rgba(15, 42, 28, 0.96) 100%);
  color: var(--mist);
}

.gallery .eyebrow {
  color: var(--sun);
}

.gallery .section-title {
  color: var(--mist);
}

.gallery .section-lead {
  color: rgba(232, 245, 238, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.video-card {
  background: rgba(247, 251, 248, 0.06);
  border: 1px solid rgba(247, 251, 248, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 199, 94, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.video-frame {
  min-height: 420px;
  display: flex;
  justify-content: center;
  padding: 0.75rem;
}

.video-frame .tiktok-embed {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery .btn-ghost {
  color: var(--mist);
  border-color: rgba(247, 251, 248, 0.3);
  background: rgba(247, 251, 248, 0.08);
}

/* Token */
.token {
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(240, 199, 94, 0.25), transparent 60%),
    linear-gradient(180deg, #e8f5ee 0%, #cfe8da 100%);
}

.token-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(247, 251, 248, 0.85), rgba(184, 224, 210, 0.55));
  border: 1px solid rgba(28, 74, 50, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.token-mascot {
  display: flex;
  justify-content: center;
}

.mascot-bounce {
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  border: 3px solid rgba(240, 199, 94, 0.7);
  box-shadow: 0 18px 40px rgba(74, 47, 24, 0.25);
  animation: stomp 2.8s var(--ease-spring) infinite;
  will-change: transform;
}

@keyframes stomp {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  40% {
    transform: translateY(-14px) rotate(2deg);
  }
  55% {
    transform: translateY(2px) rotate(-1deg);
  }
  70% {
    transform: translateY(-6px) rotate(1deg);
  }
}

/* Community */
.community {
  background: linear-gradient(180deg, #cfe8da 0%, #a8d4bc 100%);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-tile {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 1.4rem 1.3rem;
  border-radius: 20px;
  background: rgba(247, 251, 248, 0.65);
  border: 1px solid rgba(28, 74, 50, 0.12);
  transition: transform 0.3s var(--ease-spring), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.link-tile:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(240, 199, 94, 0.28);
  border-color: rgba(239, 159, 60, 0.45);
  box-shadow: 0 16px 36px rgba(28, 74, 50, 0.15);
}

.link-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--jungle);
  color: var(--mist);
  margin-bottom: 0.35rem;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--jungle-deep);
}

.link-handle {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--jungle-deep);
  color: rgba(232, 245, 238, 0.8);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(240, 199, 94, 0.5);
}

.footer-brand strong {
  display: block;
  color: var(--mist);
  font-family: var(--font-display);
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--sun);
}

.footer-note {
  margin: 0;
  font-size: 0.9rem;
  max-width: 28rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.hero-content .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.28s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.4s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.52s; }

.gallery-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.25s; }

.link-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.link-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.link-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 980px) {
  .gallery-grid,
  .link-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .about-grid,
  .token-panel {
    grid-template-columns: 1fr;
  }

  .token-mascot {
    order: -1;
  }

  .mascot-bounce {
    width: min(220px, 70%);
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(15, 42, 28, 0.94);
    backdrop-filter: blur(12px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    color: var(--mist);
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(247, 251, 248, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .btn-buy {
    display: none;
  }

  .hero-content {
    text-align: left;
    padding-bottom: 4.5rem;
  }

  .hero-ctas,
  .hero-socials {
    justify-content: flex-start;
  }

  .scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-banner,
  .brand-mark,
  .portrait-frame img,
  .portrait-ring,
  .mascot-bounce,
  .scroll-cue span,
  .paw {
    animation: none !important;
  }

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