:root {
  --gold: #e8c872;
  --gold-deep: #b8872a;
  --gold-soft: #f6e7b2;
  --cream: #f4e7c8;
  --ink: #0b0710;
  --wine: #3a1420;
  --navy: #14102a;
  --glass: rgba(18, 10, 20, 0.62);
  --line: rgba(232, 200, 114, 0.35);
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-display: "Cinzel", serif;
  --font-ornate: "Cinzel Decorative", serif;
  --font-script: "Great Vibes", cursive;
}

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

html {
  scroll-behavior: smooth;
}

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

main,
footer {
  position: relative;
  z-index: 2;
}

body.touch {
  cursor: auto;
}

body.touch .cursor-ring,
body.touch .cursor-dot,
body.touch .cursor-familiar {
  display: none !important;
}

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

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

button {
  font: inherit;
  cursor: none;
}

#gold-field,
#spark-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

#gold-field {
  z-index: 0;
  opacity: 0.85;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 32;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 135, 42, 0.22), transparent 36%),
    radial-gradient(circle at 80% 0%, rgba(90, 30, 70, 0.28), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(40, 30, 90, 0.3), transparent 42%);
  animation: aurora 18s ease-in-out infinite alternate;
}

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

.cursor-ring,
.cursor-dot,
.cursor-familiar {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 80;
  will-change: transform;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(232, 200, 114, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, width 0.18s, height 0.18s, margin 0.18s;
}

.cursor-ring.hot {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--gold-soft);
  background: rgba(232, 200, 114, 0.08);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--gold-soft);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
}

.cursor-familiar {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 4px rgba(11, 7, 16, 0.55),
    0 0 24px rgba(232, 200, 114, 0.55);
  opacity: 0.92;
}

.cursor-familiar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 7vw;
  background: linear-gradient(to bottom, rgba(11, 7, 16, 0.86), rgba(11, 7, 16, 0.28));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

.nav-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  box-shadow: 0 0 18px rgba(232, 200, 114, 0.35);
}

.nav-brand em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 28px;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.nav-brand small {
  display: block;
  letter-spacing: 0.22em;
  font-size: 9px;
  color: var(--gold-soft);
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.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;
  overflow: hidden;
  isolation: isolate;
}

.hero-banner {
  position: absolute;
  inset: -8%;
  background:
    url("../assets/banner.jpg") center 30% / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.08);
  z-index: -2;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 7, 16, 0.35) 0%, rgba(11, 7, 16, 0.55) 46%, rgba(11, 7, 16, 0.94) 100%),
    radial-gradient(circle at 50% 30%, rgba(232, 200, 114, 0.16), transparent 42%);
}

.hero-inner {
  width: min(920px, 90vw);
  text-align: center;
  padding: 120px 0 90px;
}

.crest {
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
  position: relative;
  transform-style: preserve-3d;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 10px rgba(11, 7, 16, 0.45),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(232, 200, 114, 0.35);
}

.crest-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 114, 0.55);
  animation: spin 18s linear infinite;
}

.crest-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(246, 231, 178, 0.2);
  animation: spin 12s linear infinite reverse;
}

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

.eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
  margin: 0 0 8px;
}

.script-title {
  font-family: var(--font-script);
  font-size: clamp(64px, 12vw, 132px);
  line-height: 0.85;
  margin: 0 0 18px;
  color: var(--gold-soft);
  text-shadow:
    0 0 24px rgba(232, 200, 114, 0.45),
    0 8px 30px rgba(0, 0, 0, 0.55);
  background: linear-gradient(120deg, #7a5a1e 0%, #f6e7b2 28%, #fff 48%, #e8c872 62%, #b8872a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.script-title.mini {
  font-size: 56px;
  margin: 8px 0;
}

@keyframes shimmer {
  to { background-position: 220% center; }
}

.ticker {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
}

.ticker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.solana-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.lede {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  max-width: 640px;
  margin: 22px auto 28px;
  color: rgba(244, 231, 200, 0.9);
}

.ca-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 200, 114, 0.1), rgba(20, 12, 28, 0.7) 42%, rgba(58, 20, 32, 0.5));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), inset 0 0 40px rgba(232, 200, 114, 0.06);
  max-width: 680px;
  margin: 0 auto;
}

.ca-card.wide {
  margin-top: 28px;
  max-width: none;
}

.ca-label,
.ca-note {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.ca-note {
  margin: 0;
  max-width: 280px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(244, 231, 200, 0.72);
  font-size: 13px;
}

code {
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fff8e6;
}

.holographic {
  position: relative;
  overflow: hidden;
}

.holographic::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 244, 200, 0.18) 48%, transparent 62%);
  animation: holo 4.5s ease-in-out infinite;
}

@keyframes holo {
  0% { transform: translateX(-20%) rotate(8deg); }
  100% { transform: translateX(20%) rotate(8deg); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  background: linear-gradient(180deg, #f3de9a, #c4922e);
  color: #2a1704;
  box-shadow: 0 10px 30px rgba(184, 135, 42, 0.35);
}

.btn-outline,
.btn-ghost {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(11, 7, 16, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232, 200, 114, 0.28);
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  background: rgba(11, 7, 16, 0.4);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--gold);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translate(-50%, 8px); opacity: 0.5; }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(20, 12, 24, 0.7);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 28s linear infinite;
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--gold);
}

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

.section {
  position: relative;
  z-index: 1;
  padding: 96px 7vw;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(58, 20, 32, 0.28), rgba(11, 7, 16, 0.2));
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2,
.court-caption h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
  color: var(--cream);
}

.flourish {
  width: 180px;
  height: 22px;
  margin: 16px auto 0;
  stroke: var(--gold);
  fill: var(--gold);
  stroke-width: 1.2;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.lore-copy p {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.65;
  color: rgba(244, 231, 200, 0.88);
}

.lore-copy strong {
  color: var(--gold-soft);
}

.lore-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(11, 7, 16, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lore-card img {
  height: 360px;
  width: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.lore-card-meta {
  padding: 22px;
}

.lore-card-meta h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

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

.stat,
.token-card,
.social-card,
.step {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: rgba(16, 10, 22, 0.55);
  box-shadow: inset 0 0 30px rgba(232, 200, 114, 0.04);
}

.stat span,
.token-card span,
.social-card span,
.step span {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}

.stat span,
.token-card strong,
.social-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  margin: 8px 0 0;
}

.token-card strong {
  font-size: 26px;
}

.token-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.step h3 {
  font-family: var(--font-display);
  margin: 10px 0;
}

.step p,
.social-card p,
.lore-card-meta p,
.stat p {
  margin: 0;
  color: rgba(244, 231, 200, 0.75);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
}

.court {
  padding: 0 7vw 96px;
}

.court-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(11, 7, 16, 0.7),
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(184, 135, 42, 0.2);
}

.court-frame img {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
  object-position: center 40%;
}

.court-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 40px 36px;
  background: linear-gradient(transparent, rgba(11, 7, 16, 0.94));
  max-width: 680px;
}

.court-caption p:last-child {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
}

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

.social-card {
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.footer {
  text-align: center;
  padding: 64px 7vw 80px;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.fine {
  max-width: 560px;
  margin: 16px auto 0;
  color: rgba(244, 231, 200, 0.5);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .lore-grid,
  .stat-row,
  .token-grid,
  .steps,
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 32px;
    background: rgba(12, 8, 16, 0.96);
    border-left: 1px solid var(--line);
    transform: translateX(110%);
    transition: transform 0.35s ease;
  }

  .nav-links.open {
    transform: none;
  }

  .ticker {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .lore-grid,
  .stat-row,
  .token-grid,
  .steps,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .ca-card,
  .ca-card.wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .court-caption {
    position: relative;
    padding: 24px 20px 28px;
    background: #120c16;
  }

  .hero-inner {
    padding-top: 96px;
  }

  body,
  a,
  button {
    cursor: auto;
  }
}
