:root {
  --bg: #050505;
  --bg-elevated: #0e0e0e;
  --ink: #f5f0e6;
  --muted: #a39a88;
  --gold: #f5c518;
  --gold-hot: #ff8a00;
  --gold-soft: rgba(245, 197, 24, 0.18);
  --line: rgba(245, 197, 24, 0.22);
  --sol: #9945ff;
  --sol-teal: #14f195;
  --radius: 4px;
  --header-h: 72px;
  --font-display: "Bungee", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(153, 69, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(245, 197, 24, 0.08), transparent 50%),
    var(--bg);
  overflow-x: hidden;
  cursor: none;
}

body.is-touch {
  cursor: auto;
}

body.is-touch .cursor-glow,
body.is-touch #sparkCanvas {
  display: none !important;
}

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

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

button {
  font: inherit;
  cursor: none;
}

body.is-touch button {
  cursor: pointer;
}

/* Magical layers */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  background: radial-gradient(circle, #fff6c8 0%, var(--gold) 35%, transparent 70%);
  box-shadow:
    0 0 18px rgba(245, 197, 24, 0.85),
    0 0 40px rgba(255, 138, 0, 0.45);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

.cursor-glow.is-hot {
  transform: scale(1.55);
  box-shadow:
    0 0 24px rgba(245, 197, 24, 1),
    0 0 60px rgba(20, 241, 149, 0.35);
}

#sparkCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite;
}

.orb-1 {
  width: 340px;
  height: 340px;
  background: rgba(245, 197, 24, 0.28);
  top: 12%;
  left: -8%;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(153, 69, 255, 0.25);
  top: 55%;
  right: -6%;
  animation-delay: -6s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: rgba(20, 241, 149, 0.18);
  bottom: 8%;
  left: 35%;
  animation-delay: -11s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.12);
  }
}

/* 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 1.5rem;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.35);
}

.brand-text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

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

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.social-chip {
  min-width: 40px;
  height: 36px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.social-chip:hover {
  background: var(--gold-soft);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.35);
  transform: translateY(-1px);
}

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

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

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: heroPulse 14s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.12) 28%, rgba(5, 5, 5, 0.55) 62%, rgba(5, 5, 5, 0.92) 86%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.35) 38%, transparent 62%);
}

.hero-shimmer {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(245, 197, 24, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(245, 197, 24, 0.08) 55%,
    transparent 70%
  );
  animation: shimmer 7s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes shimmer {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(25%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: calc(var(--header-h) + 2rem) 1.5rem 4.5rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sol-teal);
  text-shadow: 0 0 18px rgba(20, 241, 149, 0.45);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.title-gold {
  display: block;
  background: linear-gradient(180deg, #ffe56a 0%, var(--gold) 45%, var(--gold-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(245, 197, 24, 0.35));
  animation: titleGlow 3.5s ease-in-out infinite alternate;
}

.title-white {
  display: block;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.25));
  }
  to {
    filter: drop-shadow(0 0 28px rgba(245, 197, 24, 0.55));
  }
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #ebe4d4;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #120e05;
  background: linear-gradient(135deg, #ffe56a, var(--gold) 40%, var(--gold-hot));
  box-shadow:
    0 0 0 1px rgba(255, 230, 120, 0.35) inset,
    0 0 28px rgba(245, 197, 24, 0.35);
  animation: pulseBtn 2.8s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.55);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-small {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: #120e05;
  background: linear-gradient(135deg, #ffe56a, var(--gold));
  border: none;
}

@keyframes pulseBtn {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 230, 120, 0.35) inset,
      0 0 22px rgba(245, 197, 24, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 230, 120, 0.55) inset,
      0 0 36px rgba(245, 197, 24, 0.5);
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.5rem;
}

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

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #ffe56a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section p {
  color: var(--muted);
  line-height: 1.65;
}

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

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

/* Story */
.story .section-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-visual {
  position: relative;
}

.story-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.story-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.28), transparent 65%);
  z-index: -1;
  filter: blur(18px);
  animation: drift 10s ease-in-out infinite;
}

.story-copy h2 {
  margin-bottom: 1rem;
}

.story-copy p + p {
  margin-top: 0.9rem;
}

.story-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.story-points li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sol-teal));
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.7);
}

/* Token */
.token {
  background:
    linear-gradient(180deg, transparent, rgba(245, 197, 24, 0.04), transparent);
}

.token-inner {
  position: relative;
}

.token-head {
  margin-bottom: 1.75rem;
}

.token-head p {
  margin: 0.6rem 0 0;
}

.token-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(14, 14, 14, 0.85);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.08);
}

.token-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(245, 197, 24, 0.1);
}

.token-row:last-child {
  border-bottom: none;
}

.label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-size: 1.05rem;
  font-weight: 600;
}

.ticker {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.ca-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.ca-wrap code {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-weight: 700;
  color: var(--sol-teal);
  word-break: break-all;
  text-shadow: 0 0 16px rgba(20, 241, 149, 0.35);
}

.copy-toast {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.15);
  border: 1px solid rgba(20, 241, 149, 0.4);
  color: var(--sol-teal);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.copy-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery — enforced 3:2 */
.gallery-head {
  margin-bottom: 2rem;
}

.gallery-head p {
  margin: 0.65rem 0 0;
}

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

.gallery-item {
  margin: 0;
}

.gallery-item .frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, 0.55));
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

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

.gallery-item:hover .frame::after {
  opacity: 0.35;
}

.gallery-item figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Community */
.community-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 197, 24, 0.14), transparent 55%),
    rgba(14, 14, 14, 0.8);
  box-shadow: 0 0 50px rgba(153, 69, 255, 0.08);
}

.community-inner p {
  margin: 0.75rem auto 0;
  max-width: 36ch;
}

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

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(245, 197, 24, 0.12);
}

.footer-inner {
  width: min(1120px, 100%);
  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.65rem;
  font-weight: 600;
}

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

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .story .section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 1rem;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3.5rem;
  }

  .token-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}

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

  .hero-banner {
    transform: none;
  }
}
