:root {
  --bg: #07040c;
  --bg-2: #120a16;
  --ink: #f6efe4;
  --muted: #c4b6a4;
  --gold: #f0c14b;
  --gold-2: #c9a227;
  --crimson: #e11d48;
  --sol-p: #9945ff;
  --sol-g: #14f195;
  --glass: rgba(18, 10, 22, 0.62);
  --line: rgba(240, 193, 75, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Sora", "Noto Sans JP", system-ui, sans-serif;
  --display: "Oxanium", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(153, 69, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(240, 193, 75, 0.12), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

body.magic-cursor,
body.magic-cursor * {
  cursor: none !important;
}

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: 0.04em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.35rem, 6.4vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold) 45%, #8a6a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(240, 193, 75, 0.35));
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

p {
  line-height: 1.7;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.mist {
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}

.mist-a {
  background: #9945ff;
  top: -10%;
  right: -10%;
}

.mist-b {
  background: #f0c14b;
  bottom: -20%;
  left: -15%;
  animation-delay: -7s;
}

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

.cursor-star,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
}

.cursor-star {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: conic-gradient(from 45deg, var(--gold), var(--crimson), var(--gold));
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 8px var(--gold));
}

.cursor-ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(240, 193, 75, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(153, 69, 255, 0.35);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 6vw;
  background: linear-gradient(180deg, rgba(7, 4, 12, 0.88), rgba(7, 4, 12, 0.35) 70%, transparent);
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(240, 193, 75, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
}

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

.nav-buy {
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #1a1204 !important;
  background: linear-gradient(180deg, #ffe38a, var(--gold-2));
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  background: rgba(7, 4, 12, 0.55);
  border-radius: 10px;
  z-index: 45;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: ken 22s ease-in-out infinite alternate;
  filter: saturate(1.15);
}

@keyframes ken {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.12) translateY(-2%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 4, 12, 0.35) 0%, rgba(7, 4, 12, 0.55) 45%, var(--bg) 100%),
    radial-gradient(circle at 50% 40%, transparent 0%, rgba(7, 4, 12, 0.45) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 8rem 6vw 5rem;
  max-width: 920px;
}

.hero-logo {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(240, 193, 75, 0.85),
    0 0 40px rgba(240, 193, 75, 0.55),
    0 0 90px rgba(153, 69, 255, 0.35);
  animation: floaty 5s ease-in-out infinite, aura 3.4s ease-in-out infinite;
}

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

@keyframes aura {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(240, 193, 75, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(225, 29, 72, 0.55));
  }
}

.kicker {
  color: var(--sol-g);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.ticker {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  letter-spacing: 0.28em;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 1.6rem;
}

.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 4, 12, 0.55);
  backdrop-filter: blur(12px);
  margin-bottom: 1.4rem;
  box-shadow: 0 0 30px rgba(153, 69, 255, 0.15);
}

.ca-label {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#ca-text {
  font-size: 0.95rem;
  color: #fff;
}

#copy-ca {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--gold);
  color: #1a1204;
  font-weight: 700;
  font-family: inherit;
}

#copy-ca.copied {
  background: var(--sol-g);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-gold {
  color: #1a1204;
  background: linear-gradient(180deg, #ffe38a, var(--gold-2));
  box-shadow: 0 10px 30px rgba(240, 193, 75, 0.28);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.hero-pills span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 241, 149, 0.25);
  color: var(--sol-g);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.section {
  position: relative;
  z-index: 2;
  padding: 6.5rem 0;
  scroll-margin-top: 84px;
}

.section.alt {
  background: linear-gradient(180deg, rgba(153, 69, 255, 0.12), rgba(18, 10, 22, 0.65) 38%, rgba(240, 193, 75, 0.08));
}

.wrap {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

.lore-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.4rem;
}

.glass,
.fact,
.tok-card,
.step,
.social {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.lore-story {
  padding: 2rem;
}

.lore-story p + p {
  margin-top: 1rem;
}

.lore-facts {
  display: grid;
  gap: 1rem;
}

.fact {
  padding: 1.3rem 1.4rem;
}

.fact span {
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 800;
}

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

.tok-card {
  padding: 1.6rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tok-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 80%;
  background: radial-gradient(circle, rgba(240, 193, 75, 0.2), transparent 65%);
  pointer-events: none;
}

.tok-card h3 {
  font-size: 1.7rem;
  color: var(--gold);
}

.tok-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  padding: 1.4rem 0 0;
  list-style: none;
  color: var(--muted);
}

.tok-list li::before {
  content: "✦ ";
  color: var(--sol-g);
}

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

.step {
  padding: 1.5rem;
  min-height: 220px;
}

.step-n {
  font-family: var(--display);
  color: var(--crimson);
  font-size: 1.8rem;
  font-weight: 800;
}

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

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #110a14;
  box-shadow: var(--shadow);
  line-height: 0;
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-card span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 4, 12, 0.72);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.community {
  text-align: center;
}

.community .section-lead {
  margin-inline: auto;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  min-width: 220px;
  justify-content: center;
  font-weight: 700;
}

.social svg {
  width: 22px;
  height: 22px;
}

.social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.copy {
  color: #8d8074;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.84);
  padding: 4vw;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  width: min(1200px, 92vw);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .lore-grid,
  .tok-grid,
  .steps,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 4vw;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.4rem;
    background: rgba(10, 6, 14, 0.95);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 680px) {
  .lore-grid,
  .tok-grid,
  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 128px;
    height: 128px;
  }

  .ca-box {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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