:root {
  --bg: #020314;
  --ink: #f4f7ff;
  --muted: #ccd8ff;
  --lime: #79ff3f;
  --acid: #ff4bd8;
  --aqua: #71f6ff;
  --blue: #174cff;
  --pink: #ff5bd6;
  --gold: #fff0a6;
  --glass: rgba(3, 8, 28, 0.68);
  --glass-bright: rgba(31, 74, 255, 0.16);
  --line: rgba(183, 207, 255, 0.38);
  --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: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(28, 83, 255, 0.24), transparent 27rem),
    linear-gradient(180deg, rgba(2, 4, 20, 0.2), rgba(2, 3, 15, 0.92)),
    url("../images/fpc-background.png") center / cover fixed;
  overflow-x: hidden;
}

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

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(92, 129, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(113, 246, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 7vw 7vw, 7vw 7vw;
  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% 18%, rgba(23, 76, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 15% 76%, rgba(255, 75, 216, 0.13), transparent 29rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.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: 5.8rem;
  margin: 0 auto;
  padding: clamp(0.75rem, 1.6vw, 1.1rem);
  border: 2px solid rgba(229, 235, 255, 0.76);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 76, 255, 0.95) 0 1.35rem, rgba(224, 229, 241, 0.84) 1.35rem 1.58rem, rgba(8, 14, 39, 0.84) 1.58rem),
    repeating-linear-gradient(90deg, transparent 0 7.5%, rgba(113, 246, 255, 0.07) 7.5% 8%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 0 44px rgba(23, 76, 255, 0.34),
    var(--shadow);
  backdrop-filter: blur(12px);
}

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

.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(--blue), #ffffff, var(--aqua), var(--pink), var(--blue));
  opacity: 0.34;
  filter: blur(9px);
}

.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: 2px solid rgba(231, 236, 255, 0.68);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(174, 181, 200, 0.82)),
    rgba(7, 12, 34, 0.76);
  color: #06103a;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.55),
    -1px -1px 0 rgba(255, 255, 255, 0.7) inset,
    1px 1px 0 rgba(0, 0, 0, 0.52) inset;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel-link:hover,
.panel-link:focus-visible {
  border-color: rgba(113, 246, 255, 0.95);
  box-shadow:
    0 0 28px rgba(23, 76, 255, 0.42),
    0 0 28px rgba(113, 246, 255, 0.18) inset;
  transform: translateY(-2px);
}

.panel-brand {
  width: clamp(6.7rem, 11vw, 10rem);
  aspect-ratio: 1.22;
  min-height: auto;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(180deg, rgba(23, 76, 255, 0.98) 0 30%, rgba(2, 5, 24, 0.96) 30%),
    radial-gradient(circle, rgba(113, 246, 255, 0.2), rgba(3, 8, 28, 0.94) 58%);
  color: #ffffff;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  box-shadow:
    0 0 0 0.28rem rgba(225, 231, 255, 0.22),
    0 0 45px rgba(23, 76, 255, 0.45);
}

.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: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f8fbff;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(23, 76, 255, 0.82),
    0 0 46px rgba(255, 75, 216, 0.25),
    0 10px 0 rgba(23, 76, 255, 0.28);
}

.hero__subtitle {
  max-width: 42rem;
  margin-bottom: 1.9rem;
  color: #e7eeff;
  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(4, 7, 25, 0.78);
  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(23, 76, 255, 0.25), transparent 63%),
    conic-gradient(from 30deg, rgba(255, 255, 255, 0.14), rgba(23, 76, 255, 0.26), rgba(255, 75, 216, 0.12), rgba(113, 246, 255, 0.18));
  filter: blur(12px);
  animation: haloSpin 12s linear infinite;
}

.character-stage::after {
  position: absolute;
  inset: 14%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(113, 246, 255, 0.34);
  border-radius: 8px;
  box-shadow:
    0 0 55px rgba(23, 76, 255, 0.28),
    0 0 120px rgba(113, 246, 255, 0.16) inset;
}

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

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(113, 246, 255, 0.42);
  border-radius: 8px;
  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(255, 75, 216, 0.34);
  animation-delay: -1.8s;
}

.ticker-strip {
  border: 2px solid rgba(229, 235, 255, 0.64);
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 76, 255, 0.92) 0 1.2rem, rgba(4, 7, 25, 0.84) 1.2rem),
    rgba(4, 7, 25, 0.74);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.35),
    0 0 35px rgba(23, 76, 255, 0.16) inset;
  backdrop-filter: blur(12px);
}

.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(229, 235, 255, 0.36);
  border-radius: 4px;
  padding: 0.45rem 1rem;
  background: rgba(230, 234, 245, 0.12);
  color: #f3f7ff;
  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(--aqua);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(113, 246, 255, 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(23, 76, 255, 0.28);
}

.glass-card {
  border: 2px solid rgba(229, 235, 255, 0.52);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(23, 76, 255, 0.86) 0 1.35rem, transparent 1.35rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, rgba(4, 7, 25, 0.84), rgba(3, 4, 16, 0.78));
  box-shadow:
    0 24px 85px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(23, 76, 255, 0.12) inset,
    3px 3px 0 rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.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(23, 76, 255, 0.22);
  filter: blur(8px);
}

.phase-card span {
  position: relative;
  display: inline-flex;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(229, 235, 255, 0.36);
  border-radius: 4px;
  padding: 0.42rem 0.64rem;
  color: var(--aqua);
  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: 2px solid rgba(229, 235, 255, 0.46);
  border-radius: 4px;
  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(23, 76, 255, 0.2), transparent 42%),
    repeating-linear-gradient(90deg, rgba(113, 246, 255, 0.13) 0 1px, transparent 1px 5rem),
    rgba(2, 4, 18, 0.92);
}

.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(229, 235, 255, 0.32);
  border-radius: 4px;
  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(113, 246, 255, 0.84);
  box-shadow: 0 0 22px rgba(23, 76, 255, 0.28);
}

.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;
  }
}
