:root {
  --bg: #03100f;
  --ink: #f4ffe6;
  --muted: #c9e9d0;
  --lime: #bdff10;
  --acid: #76ff00;
  --aqua: #00f5d4;
  --blue: #117bff;
  --pink: #ff46d9;
  --gold: #ffe574;
  --glass: rgba(2, 15, 14, 0.62);
  --glass-bright: rgba(132, 255, 29, 0.12);
  --line: rgba(203, 255, 119, 0.34);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(182, 255, 19, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(1, 10, 9, 0.38), rgba(1, 7, 7, 0.94)),
    url("../images/naskit-background.png") center / cover fixed;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background: url("../images/naskit-background.png") center / cover fixed;
  filter: saturate(1.25) contrast(1.08) brightness(0.72);
  transform: scale(1.02);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(174, 255, 18, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 212, 0.06) 1px, transparent 1px);
  background-size: 9vw 9vw;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 76%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.background-veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 20%, rgba(189, 255, 16, 0.18), transparent 24rem),
    radial-gradient(circle at 12% 72%, rgba(0, 245, 212, 0.2), transparent 30rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.84));
}

.top-panel {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: clamp(0.55rem, 1.5vw, 1rem) clamp(0.75rem, 2.4vw, 2.2rem) 0;
}

.lane-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.45rem, 1vw, 0.8rem);
  align-items: center;
  width: min(1160px, 100%);
  min-height: 6.2rem;
  margin: 0 auto;
  padding: clamp(0.75rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(177, 255, 35, 0.42);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 16, 15, 0.9), rgba(11, 55, 45, 0.6), rgba(3, 16, 15, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(189, 255, 16, 0.08) 8% 8.4%);
  box-shadow:
    0 0 0 1px rgba(0, 245, 212, 0.14) inset,
    0 0 42px rgba(116, 255, 0, 0.22),
    var(--shadow);
  backdrop-filter: blur(18px);
}

.lane-panel::before,
.lane-panel::after {
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lime), var(--aqua), transparent);
  opacity: 0.74;
}

.lane-panel::before {
  top: 1rem;
}

.lane-panel::after {
  bottom: 1rem;
}

.lane-panel__rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 0.55rem;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--lime), var(--aqua), var(--blue), var(--lime));
  opacity: 0.38;
  filter: blur(10px);
}

.lane-panel__rail--top {
  top: 0;
}

.lane-panel__rail--bottom {
  bottom: 0;
}

.panel-link,
.panel-brand {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 3.1rem;
  place-items: center;
  border: 1px solid rgba(204, 255, 108, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(3, 14, 14, 0.72);
  color: #f5ffe8;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(189, 255, 16, 0.8);
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.08) inset;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel-link:hover,
.panel-link:focus-visible {
  border-color: rgba(189, 255, 16, 0.9);
  box-shadow:
    0 0 24px rgba(189, 255, 16, 0.35),
    0 0 28px rgba(0, 245, 212, 0.18) inset;
  transform: translateY(-2px);
}

.panel-brand {
  width: clamp(6.4rem, 11vw, 10.5rem);
  aspect-ratio: 1;
  min-height: auto;
  border-radius: 50%;
  border-color: rgba(189, 255, 16, 0.78);
  background:
    radial-gradient(circle at 42% 30%, rgba(245, 255, 226, 0.32), transparent 24%),
    radial-gradient(circle, rgba(0, 245, 212, 0.2), rgba(3, 13, 13, 0.92) 58%);
  color: var(--lime);
  font-size: clamp(1rem, 2vw, 1.55rem);
  box-shadow:
    0 0 0 0.55rem rgba(4, 16, 15, 0.58),
    0 0 0 0.65rem rgba(189, 255, 16, 0.23),
    0 0 45px rgba(189, 255, 16, 0.42);
}

.panel-brand span {
  transform: translateY(0.03em);
}

.site-shell {
  width: min(1180px, calc(100% - clamp(1rem, 5vw, 4rem)));
  margin: 0 auto;
}

.section {
  margin: clamp(3.6rem, 8vw, 8rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 5rem);
  min-height: calc(100svh - 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.hero__copy {
  position: relative;
}

.hero__copy::before {
  position: absolute;
  top: -2.4rem;
  left: -2rem;
  width: 10rem;
  height: 10rem;
  content: "";
  border: 1px solid rgba(189, 255, 16, 0.18);
  border-radius: 50%;
  background: rgba(189, 255, 16, 0.05);
  filter: blur(1px);
  animation: pulseRing 4.8s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  margin-bottom: 1.2rem;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(5rem, 15vw, 10.2rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #faffdd;
  text-shadow:
    0 0 16px rgba(189, 255, 16, 0.85),
    0 0 42px rgba(0, 245, 212, 0.35),
    0 14px 0 rgba(1, 8, 8, 0.42);
}

.hero__subtitle {
  max-width: 42rem;
  margin-bottom: 1.9rem;
  color: #e9ffd1;
  font-size: clamp(1.08rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.48;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.neon-button,
.mini-link {
  display: inline-grid;
  min-height: 3.2rem;
  min-width: 8.2rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  background: rgba(2, 12, 12, 0.72);
  color: var(--lime);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px currentColor;
  box-shadow:
    0 0 18px color-mix(in srgb, currentColor 26%, transparent),
    0 0 24px rgba(255, 255, 255, 0.04) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.neon-button:hover,
.neon-button:focus-visible,
.mini-link:hover,
.mini-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 24px color-mix(in srgb, currentColor 54%, transparent),
    0 0 42px color-mix(in srgb, currentColor 18%, transparent) inset;
  transform: translateY(-3px);
}

.neon-button--cyan {
  color: var(--aqua);
}

.neon-button--lime {
  color: var(--lime);
}

.neon-button--pink {
  color: var(--pink);
}

.neon-button--gold {
  color: var(--gold);
}

.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.character-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(24rem, 46vw, 37rem);
  margin: 0;
  isolation: isolate;
}

.character-stage::before {
  position: absolute;
  inset: 10%;
  z-index: -2;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(189, 255, 16, 0.24), transparent 63%),
    conic-gradient(from 30deg, rgba(189, 255, 16, 0.12), rgba(0, 245, 212, 0.24), rgba(17, 123, 255, 0.14), rgba(189, 255, 16, 0.12));
  filter: blur(12px);
  animation: haloSpin 12s linear infinite;
}

.character-stage::after {
  position: absolute;
  inset: 14%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(189, 255, 16, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 55px rgba(189, 255, 16, 0.24),
    0 0 120px rgba(0, 245, 212, 0.2) inset;
}

.character-stage img {
  width: min(100%, 34rem);
  border: 1px solid rgba(189, 255, 16, 0.28);
  border-radius: 8px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 46px rgba(189, 255, 16, 0.22);
  animation: floatArt 4.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(0, 245, 212, 0.42);
  border-radius: 50%;
  pointer-events: none;
  animation: orbitPulse 5s ease-in-out infinite;
}

.orbit--one {
  width: 78%;
  aspect-ratio: 1;
}

.orbit--two {
  width: 54%;
  aspect-ratio: 1;
  border-color: rgba(189, 255, 16, 0.34);
  animation-delay: -1.8s;
}

.ticker-strip {
  border: 1px solid rgba(189, 255, 16, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(2, 11, 11, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35), 0 0 35px rgba(189, 255, 16, 0.08) inset;
  backdrop-filter: blur(14px);
}

.ticker-strip__track {
  display: flex;
  width: max-content;
  animation: tickerMarquee 18s linear infinite;
}

.ticker-strip__group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0.85rem;
}

.ticker-strip span {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  border: 1px solid rgba(189, 255, 16, 0.18);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f6ffe7;
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.section-heading span {
  color: var(--lime);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(189, 255, 16, 0.56);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(0, 245, 212, 0.18);
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, rgba(3, 18, 16, 0.78), rgba(3, 9, 9, 0.7));
  box-shadow:
    0 24px 85px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(189, 255, 16, 0.08) inset;
  backdrop-filter: blur(18px);
}

.lore-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.lore-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  font-weight: 650;
  line-height: 1.72;
}

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

.phase-card {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  padding: 1.1rem;
}

.phase-card::before {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 9rem;
  height: 9rem;
  content: "";
  border-radius: 50%;
  background: rgba(189, 255, 16, 0.14);
  filter: blur(8px);
}

.phase-card span {
  position: relative;
  display: inline-flex;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(189, 255, 16, 0.28);
  border-radius: 8px;
  padding: 0.42rem 0.64rem;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.phase-card h3 {
  position: relative;
  margin-bottom: 0.8rem;
  color: #f8ffe7;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.phase-card p {
  position: relative;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.52;
}

.dex-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.dex-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dex-card__top p {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.chart-shell {
  position: relative;
  min-height: 28rem;
  border: 1px solid rgba(189, 255, 16, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.48);
}

.chart-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
}

.chart-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: #f5ffe4;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(189, 255, 16, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, rgba(0, 245, 212, 0.12) 0 1px, transparent 1px 5rem),
    rgba(1, 8, 8, 0.9);
}

.chart-fallback strong {
  font-size: clamp(1.15rem, 3vw, 2.1rem);
  text-transform: uppercase;
}

.chart-fallback span {
  color: var(--muted);
  font-weight: 700;
}

.footer {
  display: grid;
  gap: 0.9rem;
  width: min(1180px, calc(100% - clamp(1rem, 5vw, 4rem)));
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: 2rem 0 2.6rem;
  color: var(--muted);
  text-align: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.footer a {
  border: 1px solid rgba(189, 255, 16, 0.22);
  border-radius: 8px;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  color: #f6ffe4;
  font-weight: 850;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  border-color: rgba(189, 255, 16, 0.74);
  box-shadow: 0 0 22px rgba(189, 255, 16, 0.22);
}

.footer p,
.footer small {
  margin: 0;
}

.footer p {
  font-size: 1rem;
  font-weight: 750;
}

.footer small {
  font-size: 0.86rem;
}

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

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

@keyframes tickerMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes floatArt {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-13px) rotate(1deg);
  }
}

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

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.18;
    transform: scale(1.05);
  }
}

@media (max-width: 980px) {
  .lane-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .panel-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(8.4rem, 36vw);
  }

  .lane-panel .panel-link:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .lane-panel .panel-link:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .lane-panel .panel-link:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .lane-panel .panel-link:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(2.4rem, 7vw, 4rem);
  }

  .hero__copy {
    text-align: center;
  }

  h1 {
    max-width: none;
    font-size: clamp(4.4rem, 22vw, 8.4rem);
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .character-stage {
    min-height: auto;
  }

  .character-stage img {
    width: min(100%, 29rem);
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    background-position: center top;
    background-attachment: scroll;
  }

  .top-panel {
    padding-inline: 0.55rem;
  }

  .lane-panel {
    gap: 0.45rem;
    padding: 0.7rem;
  }

  .panel-link {
    min-height: 2.8rem;
    font-size: 0.76rem;
  }

  .panel-brand {
    width: min(7.2rem, 40vw);
    font-size: 1.05rem;
  }

  .site-shell,
  .footer {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    gap: 1.4rem;
  }

  h1 {
    font-size: clamp(3.75rem, 24vw, 5.7rem);
  }

  .hero__subtitle {
    font-size: 1.02rem;
  }

  .neon-button,
  .mini-link {
    width: 100%;
  }

  .hero__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .character-stage img {
    width: min(100%, 23rem);
  }

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

  .dex-card__top {
    align-items: stretch;
    flex-direction: column;
  }

  .chart-shell,
  .chart-shell iframe {
    min-height: 22rem;
  }

  .ticker-strip__track {
    animation-duration: 13s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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