:root {
  --bg: #030106;
  --bg-2: #0b0614;
  --purple: #c026d3;
  --purple-2: #a855f7;
  --glow: #e879f9;
  --sol: #9945ff;
  --text: #f4f0ff;
  --muted: #9b93b0;
  --line: rgba(192, 38, 211, 0.28);
  --card: rgba(14, 8, 24, 0.72);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Syne", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(153, 69, 255, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 8%, rgba(192, 38, 211, 0.12), transparent 50%),
    linear-gradient(180deg, #05020a 0%, var(--bg) 40%, #07040e 100%);
  color: var(--text);
  font-family: var(--mono);
  cursor: none;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 38, 211, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 38, 211, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: 0;
}

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

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

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

#matrix { opacity: 0.28; }
#spark { z-index: 40; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.12) 2px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite;
}

.orb-a {
  background: rgba(153, 69, 255, 0.22);
  top: -80px;
  left: -80px;
}

.orb-b {
  background: rgba(192, 38, 211, 0.16);
  right: -120px;
  bottom: 10%;
  animation-delay: -7s;
}

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

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 80;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--glow);
  box-shadow: 0 0 16px var(--glow), 0 0 32px var(--sol);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 121, 249, 0.7);
  transition: width 0.18s, height 0.18s, background 0.18s;
}

body.is-hover .cursor-ring {
  width: 54px;
  height: 54px;
  background: rgba(192, 38, 211, 0.12);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7vw;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 1, 6, 0.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.22em;
  font-size: 11px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
}

.nav nav {
  display: flex;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-solid {
  background: var(--purple-2);
  color: #120414;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

.btn-solid:hover {
  box-shadow: 0 0 40px rgba(232, 121, 249, 0.55);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--glow);
  color: var(--glow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 64px 7vw 40px;
}

.kicker,
.eyebrow,
.status,
.tick small,
.panel-label,
figcaption,
.section-note {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker,
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--glow);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px var(--glow);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  margin: 18px 0 22px;
  font-weight: 800;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--glow);
  text-shadow: 0 0 24px rgba(232, 121, 249, 0.35);
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  color: #67e8f9;
  clip-path: inset(0 0 60% 0);
  transform: translate(-2px, 0);
  opacity: 0.45;
  animation: glitch 3.2s infinite linear alternate-reverse;
}

.glitch::after {
  color: #f472b6;
  clip-path: inset(55% 0 0 0);
  transform: translate(2px, 0);
  opacity: 0.4;
  animation: glitch 2.4s infinite linear alternate-reverse;
}

@keyframes glitch {
  0% { clip-path: inset(0 0 80% 0); }
  20% { clip-path: inset(20% 0 40% 0); }
  40% { clip-path: inset(70% 0 5% 0); }
  60% { clip-path: inset(10% 0 60% 0); }
  80% { clip-path: inset(40% 0 30% 0); }
  100% { clip-path: inset(0 0 70% 0); }
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 28px 0 18px;
  flex-wrap: wrap;
}

.status .sep {
  opacity: 0.4;
}

.hero-hud {
  position: relative;
  height: min(520px, 70vw);
  display: grid;
  place-items: center;
}

.hud-ring,
.hero-hud img {
  grid-area: 1 / 1;
}

.hud-ring {
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(153, 69, 255, 0.2), inset 0 0 80px rgba(192, 38, 211, 0.08);
  animation: spin 28s linear infinite;
}

.hud-ring.delay {
  width: 64%;
  animation-duration: 18s;
  animation-direction: reverse;
  border-style: dashed;
}

.hero-hud img {
  width: 42%;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(192, 38, 211, 0.45);
}

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

.banner-band {
  margin: 0 7vw 0;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(153, 69, 255, 0.18);
}

.banner-band img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.15);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}

.tick {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.tick:last-child { border-right: none; }

.tick b {
  display: block;
  margin-top: 8px;
  color: var(--glow);
  font-size: 18px;
}

.about,
.mechanics,
.gallery,
.rewards,
.community {
  padding: 96px 7vw;
}

.about {
  max-width: 980px;
}

.eyebrow {
  color: var(--glow);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  margin: 0 0 20px;
  line-height: 1.05;
}

.about p,
.rewards p,
.community p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 24px;
  min-height: 220px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--glow);
  box-shadow: 0 0 40px rgba(192, 38, 211, 0.2);
}

.card small {
  color: var(--glow);
}

.card h3 {
  font-size: 28px;
  margin: 18px 0 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.gallery-grid figure:hover img {
  transform: scale(1.03);
  border-color: var(--glow);
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.35);
}

figcaption {
  margin-top: 8px;
}

.reward-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.reward-copy ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.reward-copy li {
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.panel {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--card);
  display: grid;
  gap: 16px;
}

.panel code {
  font-size: 18px;
  color: var(--glow);
  word-break: break-all;
}

.copied {
  color: var(--glow);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 7vw 28px;
  display: grid;
  gap: 18px;
}

.foot-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.foot-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.foot-brand p,
.copy {
  color: var(--muted);
  font-size: 12px;
}

.foot-links {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-links a:hover { color: var(--glow); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 1, 6, 0.88);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 40px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1200px, 92vw);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 36px;
  cursor: none;
}

@media (max-width: 980px) {
  .nav nav { display: none; }
  .hero,
  .reward-grid,
  .cards,
  .gallery-grid,
  .ticker {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .ticker .tick { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-hud { height: 320px; }
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

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