:root {
  --bg: #07040f;
  --bg-2: #12081f;
  --ink: #f7efe4;
  --muted: #c9b8d8;
  --purple: #9945ff;
  --green: #14f195;
  --teal: #00ffa3;
  --pink: #ff8bd2;
  --gold: #ffd56a;
  --cream: #f6e7c8;
  --glass: rgba(18, 8, 31, 0.55);
  --line: rgba(255, 213, 106, 0.22);
  --nav-h: 76px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: none;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: none;
}

.grain,
.aurora,
#magicCanvas {
  pointer-events: none;
}

#magicCanvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(153, 69, 255, 0.28), transparent 60%),
    radial-gradient(35% 40% at 80% 10%, rgba(20, 241, 149, 0.16), transparent 55%),
    radial-gradient(45% 40% at 70% 80%, rgba(255, 139, 210, 0.14), transparent 60%),
    radial-gradient(30% 30% at 10% 80%, rgba(255, 213, 106, 0.12), transparent 55%);
  animation: aurora 18s ease-in-out infinite alternate;
  filter: blur(12px);
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold), 0 0 22px var(--green);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(20, 241, 149, 0.7);
  transition: transform 0.12s ease-out, border-color 0.2s, width 0.2s, height 0.2s, margin 0.2s;
}

body.is-hovering .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--pink);
}

.paw-print {
  position: fixed;
  z-index: 70;
  width: 34px;
  height: 34px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='44' rx='15' ry='12' fill='%23ffd56a'/%3E%3Cellipse cx='16' cy='24' rx='7.5' ry='9.5' fill='%23ffd56a'/%3E%3Cellipse cx='27' cy='15' rx='7.2' ry='9.2' fill='%23ffd56a'/%3E%3Cellipse cx='39' cy='15' rx='7.2' ry='9.2' fill='%23ffd56a'/%3E%3Cellipse cx='50' cy='24' rx='7.5' ry='9.5' fill='%23ffd56a'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 213, 106, 0.85));
  animation: pawPop 0.85s ease-out forwards;
}

@keyframes pawPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(var(--rot, 0deg)); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 18px)) scale(0.85) rotate(var(--rot, 0deg)); }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: 18px;
  background: #07040f;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 0deg, var(--purple), var(--green), var(--gold), var(--pink), var(--purple));
  animation: spin 2.4s linear infinite;
}

.loader-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: spin 2.4s linear infinite reverse;
}

.loader p {
  text-align: center;
  color: var(--cream);
  letter-spacing: 0.08em;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(7, 4, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(153, 69, 255, 0.6);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
  opacity: 0.86;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-social a svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--cream);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 28px) 20px 72px;
  overflow: hidden;
}

.hero-bg,
.hero-veil {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.04);
  animation: ken 22s ease-in-out infinite alternate;
}

@keyframes ken {
  to { transform: scale(1.12) translate3d(1%, 0, 0); }
}

.hero-veil {
  background:
    linear-gradient(180deg, rgba(7, 4, 15, 0.35) 0%, rgba(7, 4, 15, 0.72) 55%, var(--bg) 100%),
    radial-gradient(60% 50% at 50% 40%, transparent, rgba(7, 4, 15, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.hero-logo-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 22px;
}

.hero-logo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  inset: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(153, 69, 255, 0.45);
  animation: floaty 4.5s ease-in-out infinite;
}

.magic-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--purple), var(--green), var(--gold), var(--pink), var(--purple));
  animation: spin 8s linear infinite;
  filter: blur(0.2px);
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--gold));
}

.s1 { top: 8px; right: 10px; animation-delay: 0s; }
.s2 { bottom: 16px; left: 4px; animation-delay: 0.6s; }
.s3 { top: 40%; right: -8px; animation-delay: 1.1s; }
.s4 { top: -4px; left: 28px; animation-delay: 1.7s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(20deg); }
}

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

.kicker,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 800;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin: 10px 0 0;
  background: linear-gradient(120deg, #fff 10%, var(--gold) 40%, var(--green) 70%, var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.symbol {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--green);
  margin: 8px 0 0;
  letter-spacing: 0.28em;
  text-shadow: 0 0 18px rgba(20, 241, 149, 0.55);
}

.lead {
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 18px auto 24px;
  max-width: 58ch;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgba(7, 4, 15, 0.7);
  border: 1px solid rgba(20, 241, 149, 0.35);
  box-shadow: 0 0 24px rgba(153, 69, 255, 0.25);
  cursor: none;
}

.ca-label {
  background: linear-gradient(90deg, var(--purple), var(--green));
  color: #12081f;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.ca-pill code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.ca-pill button {
  background: transparent;
  border: 0;
  color: var(--gold);
  width: 28px;
  height: 28px;
  padding: 0;
}

.ca-pill button svg {
  width: 18px;
  height: 18px;
}

.hero-cta,
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  color: #12081f;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--gold));
  box-shadow: 0 8px 28px rgba(20, 241, 149, 0.28);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.btn-tiny {
  padding: 8px 14px;
  font-size: 0.85rem;
  color: #12081f !important;
  background: var(--gold);
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: floaty 2.4s ease-in-out infinite;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(153, 69, 255, 0.08);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: 12px 0;
}

.ticker-track span {
  padding-right: 24px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  z-index: 2;
  padding: 96px 20px;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(153, 69, 255, 0.08), transparent);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 8px 0 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.photo-glow {
  position: absolute;
  inset: 12% -8%;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.45), transparent 70%);
  z-index: -1;
  filter: blur(18px);
}

.about-copy p {
  color: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
}

.lore-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.lore-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.glass-card {
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(153, 69, 255, 0.08), 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(20, 241, 149, 0.18), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.card-icon {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--green);
  text-shadow: 0 0 16px rgba(20, 241, 149, 0.5);
}

.glass-card h3 {
  margin: 8px 0 6px;
}

.glass-card p,
.steps p {
  color: var(--muted);
  margin: 0;
}

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

.steps li {
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(7, 4, 15, 0.4);
  position: relative;
  overflow: hidden;
}

.steps li::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 139, 210, 0.2), transparent 70%);
}

.steps span {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
}

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

.shot {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #1a1028;
  isolation: isolate;
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shot span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 4, 15, 0.72);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 4, 15, 0.45));
  z-index: 1;
}

.shot:hover img {
  transform: scale(1.06);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 48px 20px 72px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand p,
.disclaimer {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 4, 15, 0.88);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

.lightbox img {
  width: min(92vw, 1080px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--cream);
  font-weight: 800;
}

.lb-close,
.lb-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #12081f;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  z-index: 75;
  pointer-events: none;
  transition: 0.25s ease;
}

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

@media (max-width: 980px) {
  .token-grid,
  .steps,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  body,
  button {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .nav-links,
  .nav-social .btn-tiny {
    display: none;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 4, 15, 0.96);
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .gallery-grid,
  .token-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.6rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
  }

  .lb-nav {
    position: absolute;
    bottom: 24px;
  }

  .lb-nav.prev { left: 24px; }
  .lb-nav.next { right: 24px; }
}

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

  html {
    scroll-behavior: auto;
  }
}
