:root {
  --bg: #4D36B6;
  --bg-deep: #3d2b91;
  --bg-deeper: #2f2170;
  --accent: #A6EC0B;
  --accent-dark: #79c0ff;
  --ink-inverse: #4400ad;
  --title: #c2bbff;
  --body: #ADA2DD;
  --white: #ffffff;
  --max: 900px;
  --font-body: "Shantell Sans", cursive;
  --font-display: "Bubblegum Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--body);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, #5e45d0 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(166, 236, 11, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 45%, var(--bg-deeper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--title);
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center;
}

p {
  margin: 0 0 1rem;
}

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

/* —— Hero —— */
.hero.section {
  padding: 2.25rem 0 1.75rem;
  text-align: center;
  min-height: 0;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(88px, 18vw, 120px);
  height: auto;
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  text-align: center;
  margin: 0 auto 0.5rem;
  width: 100%;
}

.hero-tagline {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--ink-inverse);
}

.btn-primary:hover {
  background: #b8f53a;
  color: var(--ink-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(194, 187, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  opacity: 0.45;
  animation: bob 2s ease-in-out infinite;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section + .section {
  border-top: 1px dashed rgba(83, 32, 165, 0.9);
}

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

.section-head .underline {
  display: block;
  width: min(280px, 70%);
  height: 10px;
  margin: 0.2rem auto 0;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  opacity: 0.35;
}

.lead {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.62);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Split layout */
.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 760px) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split.reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .split.reverse .split-media {
    order: -1;
  }
}

.split-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.split-media img.mascot {
  width: min(320px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.split-media .deco-gif {
  position: absolute;
  width: 120px;
  pointer-events: none;
  opacity: 0.85;
}

.split-media .deco-gif.money {
  right: -4%;
  top: 8%;
  transform: rotate(-28deg);
}

.callout {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--ink-inverse);
  color: var(--title);
  font-weight: 400;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.callout.accent-fire {
  position: relative;
}

.callout.accent-fire .fire {
  position: absolute;
  width: 64px;
  right: -42px;
  top: -18px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  background: rgba(68, 0, 173, 0.4);
  border: 1px solid rgba(194, 187, 255, 0.28);
  color: var(--title);
  border-radius: 999px;
  font-size: 0.95rem;
  transform: rotate(var(--r, 0deg));
}

.chip:nth-child(odd) { --r: -4deg; }
.chip:nth-child(even) { --r: 3deg; }

.more {
  text-align: center;
  color: var(--title);
  margin-top: 0.75rem;
}

.strategy-art {
  position: relative;
  margin: 2rem auto 0;
  width: min(380px, 90%);
}

.strategy-art .sparkles {
  position: absolute;
  inset: -10% -15%;
  width: 120%;
  opacity: 0.28;
  pointer-events: none;
  transform: rotate(20deg);
}

/* NFT grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

@media (min-width: 640px) {
  .nft-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.nft-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.nft-grid img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.nft-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.nft-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .nft-layout {
    grid-template-columns: 1fr 180px;
  }
}

.side-mascot {
  display: none;
}

@media (min-width: 860px) {
  .side-mascot {
    display: block;
    width: 100%;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.3));
  }
}

/* Cofre */
.cofre-box {
  background: rgba(61, 43, 145, 0.65);
  border: 1px solid rgba(194, 187, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.cofre-box .quote {
  font-style: italic;
  color: var(--title);
  margin: 1rem 0 1.25rem;
}

.address-label {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.address code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  background: rgba(0, 0, 0, 0.28);
  color: var(--accent);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  word-break: break-all;
  max-width: 100%;
}

.btn-copy {
  background: var(--accent);
  color: var(--ink-inverse);
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-copy:hover {
  background: #b8f53a;
}

.cofre-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cofre-media img {
  width: min(160px, 40%);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

/* Links */
.links {
  display: grid;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: rgba(68, 0, 173, 0.35);
  border: 1px solid rgba(194, 187, 255, 0.22);
  border-radius: 12px;
  color: var(--white);
  transition: background 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
  background: rgba(68, 0, 173, 0.55);
  color: var(--white);
  transform: translateX(4px);
}

.link-card span {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer a {
  color: var(--title);
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

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