:root {
  --night: #020107;
  --ink: #070314;
  --violet: #0055A4;
  --violet-bright: #EF4135;
  --cyan: #FFFFFF;
  --text: #f5f7ff;
  --muted: #d6dceb;
  --line: rgba(239, 65, 53, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--night);
}

body {
  color: var(--text);
  font-family: "Arial Narrow", "Aptos Narrow", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

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

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(153, 69, 255, 0.24), transparent 30%),
    radial-gradient(circle at 50% 62%, rgba(20, 241, 149, 0.08), transparent 28%),
    #020107;
  opacity: 1;
  visibility: visible;
  transition: opacity 750ms cubic-bezier(.16, 1, .3, 1), visibility 0s linear 750ms;
}

.site-loader::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(201, 92, 255, 0.68) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(20, 241, 149, 0.48) 0 1px, transparent 1.5px);
  background-position: 0 0, 36px 53px, 71px 17px;
  background-size: 97px 97px, 131px 131px, 173px 173px;
  opacity: 0.45;
  animation: loader-stars 8s linear infinite;
}

.site-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-core {
  position: relative;
  z-index: 1;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-orbit {
  position: relative;
  width: 188px;
  height: 188px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(153, 69, 255, 0.56));
}

.loader-orbit::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.26), rgba(6, 2, 17, 0.84) 68%);
  box-shadow: inset 0 0 32px rgba(20, 241, 149, 0.18), 0 0 32px rgba(153, 69, 255, 0.42);
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.loader-ring--one {
  inset: 4px;
  border: 1px dashed rgba(20, 241, 149, 0.7);
  animation: orbit-spin 7s linear infinite;
}

.loader-ring--two {
  inset: 17px;
  border: 2px solid transparent;
  border-top-color: var(--violet-bright);
  border-right-color: rgba(153, 69, 255, 0.2);
  border-bottom-color: var(--cyan);
  animation: orbit-spin 3.7s linear infinite reverse;
}

.loader-character {
  position: absolute;
  z-index: 2;
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 50%;
  clip-path: circle(47% at 50% 50%);
  filter: saturate(1.2) contrast(1.08) brightness(0.92);
  animation: loader-character-float 2s ease-in-out infinite alternate;
}

.loader-spark {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan), 0 0 26px var(--cyan);
}

.loader-spark--one {
  top: 18px;
  right: 34px;
  animation: spark-pulse 1.2s ease-in-out infinite;
}

.loader-spark--two {
  left: 24px;
  bottom: 45px;
  width: 5px;
  height: 5px;
  background: var(--violet-bright);
  box-shadow: 0 0 13px var(--violet-bright), 0 0 26px var(--violet-bright);
  animation: spark-pulse 1.2s 0.5s ease-in-out infinite;
}

.loader-solana {
  width: 74px;
  display: grid;
  gap: 6px;
  transform: skewX(-13deg);
  filter: drop-shadow(0 0 12px rgba(153, 69, 255, 0.72));
}

.loader-solana i {
  width: 62px;
  height: 7px;
  display: block;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), #78bfff 45%, var(--violet-bright));
  animation: solana-bars 1.1s ease-in-out infinite alternate;
}

.loader-solana i:nth-child(2) {
  margin-left: 12px;
  animation-delay: 0.16s;
}

.loader-solana i:nth-child(3) {
  animation-delay: 0.32s;
}

.loader-core > p {
  margin: 18px 0 14px;
  color: #eef2ff;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-shadow: 0 0 10px var(--violet);
}

.loader-track {
  width: 220px;
  height: 2px;
  overflow: hidden;
  background: rgba(196, 171, 215, 0.16);
}

.loader-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet-bright));
  box-shadow: 0 0 12px var(--violet);
  transform-origin: left;
  animation: loading-bar 2.2s cubic-bezier(.22, .7, .24, 1) both;
}

.experience {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.background,
.background > * {
  position: absolute;
  inset: 0;
}

.background {
  z-index: -1;
  overflow: hidden;
  background: #030108;
}

.background__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.08) brightness(0.66);
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.035);
  animation: arrival 1.55s cubic-bezier(.16, 1, .3, 1) both, breathe 10s 1.55s ease-in-out infinite alternate;
  will-change: transform;
}

.background__aurora {
  background:
    radial-gradient(circle at 49% 42%, rgba(20, 241, 149, 0.1), transparent 22%),
    radial-gradient(circle at 49% 54%, rgba(153, 69, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(2, 1, 7, 0.06) 0%, rgba(2, 1, 7, 0.03) 43%, rgba(2, 1, 7, 0.76) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.background__vignette {
  background:
    linear-gradient(180deg, rgba(1, 0, 4, 0.18), rgba(1, 0, 4, 0.02) 44%, rgba(1, 0, 4, 0.72)),
    radial-gradient(ellipse at center, transparent 32%, rgba(1, 0, 4, 0.26) 67%, rgba(1, 0, 4, 0.88) 115%);
  pointer-events: none;
}

.background__scanlines {
  opacity: 0.08;
  background-image: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, 0.24) 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hud {
  width: min(430px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(32px, 46vh, 430px) 0 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  animation: hud-in 1s 2.05s cubic-bezier(.16, 1, .3, 1) both;
}

.brand {
  filter: drop-shadow(0 0 17px rgba(153, 69, 255, 0.52));
  animation: brand-drift 4.8s 3.1s ease-in-out infinite;
}

.wordmark {
  position: relative;
  margin: 0;
  padding: 0 0.1em;
  color: transparent;
  background: linear-gradient(90deg, #0055A4 0%, #7aa8d8 28%, #FFFFFF 54%, #ff9a94 74%, #EF4135 100%);
  background-size: 230% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(42px, 6vw, 74px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.05em;
  transform: skewX(-7deg);
  text-shadow: 0 0 34px rgba(153, 69, 255, 0.25);
  animation:
    wordmark-reveal 0.95s 2.05s cubic-bezier(.16, 1, .3, 1) both,
    wordmark-spectrum 4.5s 3s ease-in-out infinite;
}

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

.wordmark::before {
  color: #14f195;
  clip-path: inset(12% 0 66% 0);
  transform: translate(-3px, 1px);
  animation: glitch-top 5s 3.2s steps(1, end) infinite;
}

.wordmark::after {
  color: #df54ff;
  clip-path: inset(68% 0 12% 0);
  transform: translate(4px, -1px);
  animation: glitch-bottom 5s 3.2s steps(1, end) infinite;
}

.brand p {
  margin: 15px 0 24px;
  color: #f0f3ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.68em;
  text-indent: 0.68em;
  text-shadow: 0 0 10px var(--violet);
  animation: subtitle-glow 2.4s 3s ease-in-out infinite alternate;
}

.ticker {
  position: relative;
  width: 100%;
  min-height: 60px;
  margin: 0 0 22px;
  padding: 11px 18px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: linear-gradient(90deg, transparent, rgba(7, 3, 20, 0.78) 10%, rgba(7, 3, 20, 0.78) 90%, transparent);
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  opacity: 0.48;
}

.ticker::before { top: 0; }
.ticker::after { bottom: 0; }

.ticker div {
  min-width: 0;
}

.ticker dt,
.eyebrow {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.ticker dd {
  margin: 5px 0 0;
  color: #eef2ff;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(153, 69, 255, 0.85);
  white-space: nowrap;
}

.ticker dd.negative {
  color: #ff938c;
}

.contract-wrap {
  width: 100%;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
}

.contract {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 2, 14, 0.76);
  color: #f3f6ff;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.contract:disabled {
  cursor: default;
}

.contract:not(:disabled):hover,
.contract:not(:disabled):focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(20, 241, 149, 0.2);
  outline: none;
}

.contract__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract__action {
  display: none;
  color: var(--cyan);
  font-family: "Arial Narrow", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.buy {
  width: 274px;
  height: 60px;
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--violet-bright);
  color: #f4d9ff;
  background: linear-gradient(180deg, rgba(153, 69, 255, 0.22), rgba(153, 69, 255, 0.06)), rgba(4, 1, 12, 0.8);
  box-shadow: 0 0 18px rgba(153, 69, 255, 0.55), 0 0 46px rgba(153, 69, 255, 0.2), inset 0 0 30px rgba(20, 241, 149, 0.06);
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.31em;
  text-indent: 0.31em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.buy:not(.buy--disabled):hover,
.buy:not(.buy--disabled):focus-visible {
  color: #dffff2;
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(20, 241, 149, 0.55), 0 0 52px rgba(153, 69, 255, 0.26), inset 0 0 30px rgba(20, 241, 149, 0.11);
  transform: translateY(-2px);
  outline: none;
}

.buy--disabled {
  opacity: 0.62;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.socials a,
.social-disabled {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 91, 255, 0.33);
  color: var(--violet-bright);
  background: rgba(3, 1, 10, 0.5);
  backdrop-filter: blur(8px);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.22);
  transform: translateY(-2px);
  outline: none;
}

.social-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.status-line {
  position: absolute;
  right: 22px;
  bottom: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(224, 205, 242, 0.56);
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.28em;
}

.status-line span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes arrival {
  from { opacity: 0; transform: scale(1.11); filter: saturate(0.6) contrast(1.05) brightness(0.32); }
  to { opacity: 1; transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.035); }
}

@keyframes loader-stars {
  to { transform: rotate(4deg) scale(1.03); }
}

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

@keyframes loader-character-float {
  from { transform: translateY(3px) scale(0.97); }
  to { transform: translateY(-4px) scale(1.03); }
}

@keyframes spark-pulse {
  50% { opacity: 0.28; transform: scale(0.55); }
}

@keyframes solana-bars {
  from { opacity: 0.55; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(4px); }
}

@keyframes loading-bar {
  from { transform: scaleX(0); }
  45% { transform: scaleX(0.38); }
  78% { transform: scaleX(0.76); }
  to { transform: scaleX(1); }
}

@keyframes wordmark-reveal {
  from { opacity: 0; transform: skewX(-7deg) translateY(24px) scale(0.84); filter: blur(9px); }
  65% { opacity: 1; filter: blur(0); }
  to { opacity: 1; transform: skewX(-7deg) translateY(0) scale(1); filter: blur(0); }
}

@keyframes wordmark-spectrum {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glitch-top {
  0%, 84%, 90%, 100% { transform: translate(-3px, 1px); opacity: 0.6; }
  85% { transform: translate(8px, -2px); opacity: 0.9; }
  87% { transform: translate(-8px, 2px); opacity: 0.35; }
  89% { transform: translate(2px, 0); opacity: 0.75; }
}

@keyframes glitch-bottom {
  0%, 84%, 90%, 100% { transform: translate(4px, -1px); opacity: 0.6; }
  85% { transform: translate(-9px, 2px); opacity: 0.9; }
  87% { transform: translate(9px, -1px); opacity: 0.3; }
  89% { transform: translate(-2px, 1px); opacity: 0.75; }
}

@keyframes brand-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes subtitle-glow {
  from { opacity: 0.65; text-shadow: 0 0 6px var(--violet); }
  to { opacity: 1; text-shadow: 0 0 15px var(--cyan), 0 0 24px var(--violet); }
}

@keyframes breathe {
  from { filter: saturate(1.05) contrast(1.08) brightness(0.78); }
  to { filter: saturate(1.2) contrast(1.12) brightness(0.86); }
}

@keyframes hud-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.78); }
}

@media (max-height: 820px) and (min-width: 641px) {
  .hud {
    padding-top: 35vh;
    padding-bottom: 24px;
  }

  .brand p { margin-bottom: 17px; }
  .ticker { margin-bottom: 15px; }
  .buy { margin-top: 17px; }
  .socials { margin-top: 17px; }
}

@media (max-width: 640px) {
  .background__art {
    object-position: center 42%;
    transform: scale(1.025);
  }

  .background__vignette {
    background:
      linear-gradient(180deg, rgba(1, 0, 4, 0.08), rgba(1, 0, 4, 0.02) 28%, rgba(1, 0, 4, 0.88) 88%),
      radial-gradient(ellipse at center, transparent 18%, rgba(1, 0, 4, 0.34) 72%, rgba(1, 0, 4, 0.84));
  }

  .hud {
    width: min(390px, calc(100% - 26px));
    padding-top: max(39svh, 270px);
    padding-bottom: 64px;
  }

  .wordmark { font-size: clamp(58px, 20vw, 82px); }
  .brand p { margin: 13px 0 20px; }
  .ticker { padding-inline: 8px; gap: 3px; }
  .ticker dd { font-size: clamp(12px, 3.6vw, 15px); }
  .contract { font-size: 11px; }
  .contract__action { display: block; }
  .buy { width: min(274px, 82vw); }
  .status-line { right: 14px; bottom: 12px; }
}

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