/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
a {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Root variables
   ========================================================================== */
:root {
  --gold: #f5b800;
  --gold-deep: #e89a00;
  --sunrise: #ff8a3d;
  --cream: #fff8e7;
  --cream-deep: #ffe8b8;
  --tropical: #2f9e6b;
  --tropical-deep: #1f7a52;
  --brown: #8b5a2b;
  --brown-soft: #c4894b;
  --sky: #7ec8ff;
  --sky-deep: #4aa8ef;
  --sol-purple: #9945ff;
  --sol-green: #14f195;
  --ink: #2a1a0a;
  --ink-soft: #5a3d22;
  --muted: #7a5a3a;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(139, 90, 43, 0.16);
  --shadow-soft: 0 8px 24px rgba(139, 90, 43, 0.12);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --radius-pill: 999px;
  --header-h: 78px;
  --container: 1180px;
  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", Tahoma, sans-serif;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base styles
   ========================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 138, 61, 0.18), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(126, 200, 255, 0.22), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(47, 158, 107, 0.12), transparent 35%),
    linear-gradient(180deg, #fff4cc 0%, var(--cream) 35%, #fffaf0 70%, #eef9ff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
.brand strong,
.ticker,
.era-meaning,
.howto-num {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

p {
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(245, 184, 0, 0.45);
  color: var(--brown);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-heading p:last-child {
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ==========================================================================
   Layout
   ========================================================================== */
main,
.site-header,
.site-footer,
.toast-region,
.lightbox {
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ==========================================================================
   Background decorations
   ========================================================================== */
.bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sun-glow {
  position: absolute;
  top: -12vw;
  right: -8vw;
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 70, 0.75) 0%, rgba(255, 138, 61, 0.28) 45%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  filter: blur(0.5px);
  animation: drift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  top: 12%;
  left: -10%;
  width: 140px;
  height: 42px;
  animation-duration: 42s;
}

.cloud-1::before {
  width: 54px;
  height: 54px;
  top: -28px;
  left: 22px;
}

.cloud-1::after {
  width: 70px;
  height: 70px;
  top: -36px;
  left: 58px;
}

.cloud-2 {
  top: 28%;
  left: -15%;
  width: 180px;
  height: 50px;
  animation-duration: 56s;
  animation-delay: -12s;
  opacity: 0.7;
}

.cloud-2::before {
  width: 70px;
  height: 70px;
  top: -34px;
  left: 28px;
}

.cloud-2::after {
  width: 86px;
  height: 86px;
  top: -42px;
  left: 74px;
}

.cloud-3 {
  top: 62%;
  left: -20%;
  width: 120px;
  height: 36px;
  animation-duration: 48s;
  animation-delay: -22s;
  opacity: 0.55;
}

.cloud-3::before {
  width: 48px;
  height: 48px;
  top: -24px;
  left: 18px;
}

.cloud-3::after {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 50px;
}

.leaf {
  position: absolute;
  width: 18px;
  height: 28px;
  background: linear-gradient(135deg, #57c287, #2f9e6b);
  border-radius: 2px 80% 2px 80%;
  opacity: 0.55;
  animation: leaf-fall linear infinite;
}

.leaf-1 {
  left: 12%;
  animation-duration: 14s;
}

.leaf-2 {
  left: 48%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.leaf-3 {
  left: 78%;
  animation-duration: 16s;
  animation-delay: -9s;
}

.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(8px);
  opacity: 0.35;
  animation: blob-float 16s ease-in-out infinite;
}

.blob-1 {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: -40px;
  background: rgba(153, 69, 255, 0.18);
}

.blob-2 {
  width: 260px;
  height: 180px;
  top: 45%;
  right: -60px;
  background: rgba(20, 241, 149, 0.16);
  animation-delay: -6s;
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.22), transparent 70%);
  opacity: 0;
  transform: translate3d(-100vw, -100vh, 0);
  transition: opacity 0.3s ease;
  will-change: transform;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 248, 231, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(139, 90, 43, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  z-index: 60;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  background: var(--gold);
}

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

.brand strong {
  font-size: 1.15rem;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

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

.nav a {
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.nav .btn-buy {
  margin-left: 0.35rem;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(139, 90, 43, 0.15);
  background: rgba(255, 255, 255, 0.7);
  place-items: center;
  gap: 5px;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Buttons & components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--sunrise));
  color: var(--ink);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--tropical), var(--sky-deep));
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, #ffd76a, #ffb347);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(139, 90, 43, 0.12);
  color: var(--ink);
}

.btn-copy {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-copy:hover,
.btn-copy:focus-visible {
  transform: scale(1.05);
  background: var(--brown);
}

.btn-copy.compact {
  margin-left: 0.5rem;
}

.btn-copy.is-copied {
  background: var(--tropical);
}

.address-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(139, 90, 43, 0.12);
  box-shadow: var(--shadow-soft);
}

.address-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.token-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(139, 90, 43, 0.12);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s var(--ease-bounce), background 0.2s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: clip;
}

.hero-rays {
  position: absolute;
  inset: -10% -10% auto;
  height: 70%;
  background:
    conic-gradient(from 200deg at 70% 20%, transparent 0deg, rgba(255, 214, 70, 0.18) 28deg, transparent 55deg),
    radial-gradient(circle at 70% 20%, rgba(255, 214, 70, 0.45), transparent 42%);
  pointer-events: none;
  animation: ray-spin 28s linear infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy .title-line {
  display: block;
  background: linear-gradient(120deg, var(--ink) 10%, var(--sunrise) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(255, 138, 61, 0.15);
}

.ticker {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.18));
  border: 1px solid rgba(153, 69, 255, 0.22);
  color: var(--ink);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}

.tagline {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
}

.support {
  margin-top: 0.55rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-visual {
  position: relative;
  min-height: min(68vw, 560px);
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  width: min(90%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55), transparent 55%),
    conic-gradient(from 0deg, rgba(245, 184, 0, 0.35), rgba(255, 138, 61, 0.2), rgba(126, 200, 255, 0.25), rgba(47, 158, 107, 0.2), rgba(245, 184, 0, 0.35));
  filter: blur(0.2px);
  animation: orbit-spin 18s linear infinite;
}

.parallax-layer {
  position: relative;
  z-index: 2;
  will-change: transform;
}

.hero-character {
  width: min(100%, 460px);
  margin-inline: auto;
  animation: hero-float 4.2s ease-in-out infinite;
  will-change: transform;
}

.hero-character img {
  width: 100%;
  border-radius: 40%;
  filter: drop-shadow(0 28px 40px rgba(139, 90, 43, 0.28));
}

.sticker-wrap {
  position: absolute;
  z-index: 3;
}

.sticker-wrap-1 {
  top: 12%;
  left: 4%;
}

.sticker-wrap-2 {
  top: 18%;
  right: 2%;
}

.sticker-wrap-3 {
  bottom: 16%;
  left: 8%;
}

.sticker-wrap-img {
  right: 4%;
  bottom: 12%;
}

.sticker {
  padding: 0.55rem 0.9rem;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: sticker-wiggle 5s ease-in-out infinite;
}

.sticker-1 {
  background: #fff3b0;
  transform: rotate(-12deg);
}

.sticker-2 {
  background: #b8f0d2;
  transform: rotate(10deg);
  animation-delay: -1.5s;
}

.sticker-3 {
  background: #d8c4ff;
  transform: rotate(-6deg);
  animation-delay: -2.5s;
}

.sticker-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 28px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  animation: sticker-float 6s ease-in-out infinite;
}

.sticker-img-1 {
  transform: rotate(8deg);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-block: 2px solid rgba(139, 90, 43, 0.1);
  background: linear-gradient(90deg, #ffe08a, #fff1c2, #d9f7ea);
  padding: 0.95rem 0;
}

.marquee-alt {
  background: linear-gradient(90deg, #d8f3ff, #fff4d6, #f0e2ff);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 32s;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  white-space: nowrap;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
}

.marquee-group span::after {
  content: "•";
  margin-left: 1.5rem;
  color: var(--sunrise);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.story-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.story-banner img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.timeline-item.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.timeline-item.reverse .timeline-media {
  order: 2;
}

.timeline-media {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
}

.timeline-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.timeline-item:hover .timeline-media img {
  transform: scale(1.04);
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sunrise));
  font-family: var(--font-display);
  font-weight: 700;
}

.era {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 138, 61, 0.16), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(153, 69, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 244, 204, 0.55));
}

.era-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.era-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.era-card.old {
  background: linear-gradient(160deg, #efe7dc, #d8c7b2);
  opacity: 0.92;
  filter: saturate(0.85);
}

.era-card.new {
  background: linear-gradient(160deg, #ffe58a, #ffb14a 55%, #ff8a3d);
  transform: scale(1.02);
}

.era-card.new img {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 140px;
  opacity: 0.9;
  animation: hero-float 4s ease-in-out infinite;
}

.era-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: var(--brown);
}

.era-meaning {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.era-arrow {
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: var(--sunrise);
  animation: nudge 1.8s ease-in-out infinite;
}

.era-statement {
  margin: 2.5rem auto 0;
  max-width: 720px;
  text-align: center;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(42, 26, 10, 0.92);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.era-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.25;
}

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

.feature-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.feature-card:hover {
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4c2, #ffd18a);
  font-size: 1.5rem;
}

.token-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 194, 0.9)),
    linear-gradient(135deg, rgba(153, 69, 255, 0.15), rgba(20, 241, 149, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.token-panel-visual {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, #fff, #ffe7a8);
}

.token-panel-visual img {
  width: min(100%, 320px);
  border-radius: 32px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.token-meta {
  display: grid;
  gap: 0.95rem;
}

.token-meta > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(139, 90, 43, 0.18);
}

.token-meta dt {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.token-meta dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 800;
  color: var(--ink);
}

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

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

.howto-card {
  position: relative;
  padding: 1.5rem 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-bounce);
}

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

.howto-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky), var(--tropical));
  color: var(--white);
  font-size: 1.4rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  columns: 3 280px;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  background: #fff;
  text-align: left;
  transform-style: preserve-3d;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item.wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-item.tall img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  background: rgba(42, 26, 10, 0.72);
  color: var(--cream);
  font-weight: 800;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  transform: translateY(0);
}

/* ==========================================================================
   Community
   ========================================================================== */
.community {
  position: relative;
  overflow: hidden;
}

.community-glow {
  position: absolute;
  inset: 10% 8%;
  border-radius: 48px;
  background:
    radial-gradient(circle at 30% 40%, rgba(245, 184, 0, 0.35), transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(255, 138, 61, 0.28), transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(20, 241, 149, 0.18), transparent 45%);
  filter: blur(10px);
  animation: pulse-glow 7s ease-in-out infinite;
}

.community-inner {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius-lg) + 8px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.reaction-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 1.8rem;
}

.reaction {
  display: inline-block;
  animation: sticker-float 4s ease-in-out infinite;
}

.reaction:nth-child(2) { animation-delay: -0.6s; }
.reaction:nth-child(3) { animation-delay: -1.2s; }
.reaction:nth-child(4) { animation-delay: -1.8s; }
.reaction:nth-child(5) { animation-delay: -2.4s; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(255, 232, 184, 0.65));
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

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

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gold);
  box-shadow: var(--shadow-soft);
}

.footer-brand div {
  display: grid;
  gap: 0.15rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.footer-brand span {
  font-weight: 800;
  color: var(--brown);
}

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

.footer-links a {
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(139, 90, 43, 0.12);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
}

.disclaimer {
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 6, 0.78);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  animation: lightbox-in 0.28s var(--ease-out);
}

.lightbox-figure {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox-figure img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: #1c1006;
}

.lightbox-figure figcaption {
  padding: 0.9rem 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.lightbox-close {
  position: absolute;
  top: -8px;
  right: 52px;
  z-index: 2;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.65rem;
  width: min(calc(100% - 2rem), 340px);
}

.toast {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(42, 26, 10, 0.94);
  color: var(--cream);
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: toast-in 0.28s var(--ease-out);
}

.toast.is-leaving {
  animation: toast-out 0.24s ease forwards;
}

/* ==========================================================================
   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: none;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(130vw); }
}

@keyframes leaf-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  100% { transform: translate3d(40px, 110vh, 0) rotate(220deg); opacity: 0; }
}

@keyframes blob-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(20px, -24px, 0) rotate(8deg); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes sticker-wiggle {
  0%, 100% { transform: rotate(var(--start, -8deg)) translateY(0); }
  50% { transform: rotate(calc(var(--start, -8deg) + 6deg)) translateY(-8px); }
}

@keyframes sticker-float {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

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

@keyframes ray-spin {
  to { transform: rotate(12deg) scale(1.05); }
}

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

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   Focus
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--sunrise);
  outline-offset: 3px;
}

.btn:focus-visible,
.social-btn:focus-visible,
.gallery-item:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--sunrise);
  outline-offset: 3px;
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .timeline-item,
  .timeline-item.reverse,
  .token-panel,
  .era-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item.reverse .timeline-media {
    order: 0;
  }

  .feature-grid,
  .howto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .era-arrow {
    transform: rotate(90deg);
  }

  .era-card.new {
    transform: none;
  }

  .lightbox-close {
    right: 8px;
    top: -52px;
  }

  .hero-visual {
    order: -1;
    min-height: min(78vw, 420px);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.25rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    background:
      radial-gradient(circle at 80% 10%, rgba(255, 214, 70, 0.45), transparent 30%),
      linear-gradient(180deg, #fff4cc, #fff8e7 40%, #e9f8ff);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }

  .nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(139, 90, 43, 0.08);
  }

  .nav .btn-buy {
    margin-left: 0;
    text-align: center;
  }

  .sticker-wrap-img,
  .sticker-wrap-3 {
    display: none;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .howto-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .token-meta > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .story-banner img {
    aspect-ratio: 16 / 10;
  }

  .hero-actions .btn,
  .community-actions .btn,
  .token-actions .btn {
    width: 100%;
  }

  .cloud-3,
  .leaf-3,
  .blob-2 {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .marquee-track {
    animation: none;
  }

  .hero-character,
  .sticker,
  .sticker-img,
  .reaction,
  .era-card.new img {
    animation: none !important;
  }

  .cursor-glow {
    display: none;
  }
}
