:root {
  --bg: #07060f;
  --bg-deep: #04030a;
  --ink: #f4f7ff;
  --muted: #a8b0c8;
  --cyan: #3df0ff;
  --cyan-hot: #8af7ff;
  --magenta: #ff3ec8;
  --magenta-hot: #ff78dc;
  --violet: #6b2cff;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(10, 8, 24, 0.55);
  --font-display: "Audiowide", sans-serif;
  --font-body: "Sora", sans-serif;
  --wrap: min(1120px, calc(100% - 2.4rem));
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.storm-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(107, 44, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255, 62, 200, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 70%, rgba(61, 240, 255, 0.14), transparent 50%),
    linear-gradient(160deg, #0b0918 0%, #07060f 45%, #05040c 100%);
}

.storm-wash {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 210deg at 50% 40%, rgba(61, 240, 255, 0.08), transparent 25%, rgba(255, 62, 200, 0.1), transparent 60%, rgba(61, 240, 255, 0.06));
  animation: wash-spin 28s linear infinite;
  opacity: 0.85;
}

#spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.25;
  mix-blend-mode: multiply;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(7, 6, 15, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(61, 240, 255, 0.35),
    0 0 22px rgba(255, 62, 200, 0.35);
}

.brand em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(61, 240, 255, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
  text-shadow: 0 0 14px rgba(61, 240, 255, 0.45);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--bg-deep) !important;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  font-weight: 700 !important;
  box-shadow: 0 0 24px rgba(61, 240, 255, 0.35);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 0 8px rgba(61, 240, 255, 0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

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

.btn-neon {
  color: #041018;
  background: linear-gradient(120deg, var(--cyan-hot), var(--magenta-hot));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(61, 240, 255, 0.4),
    0 0 48px rgba(255, 62, 200, 0.25);
  animation: pulse-neon 3.2s ease-in-out infinite;
}

.btn-ghost {
  border: 1px solid rgba(61, 240, 255, 0.45);
  background: rgba(61, 240, 255, 0.06);
  box-shadow: inset 0 0 20px rgba(61, 240, 255, 0.08);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(61, 240, 255, 0.28);
}

.btn-line {
  border: 1px solid rgba(255, 62, 200, 0.45);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 24px rgba(255, 62, 200, 0.28);
}

@keyframes pulse-neon {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 1.5rem) 0 4rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.hero-video.is-ready {
  opacity: 0.42;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 3, 10, 0.88) 0%, rgba(4, 3, 10, 0.55) 48%, rgba(4, 3, 10, 0.72) 100%),
    radial-gradient(ellipse at 70% 45%, rgba(255, 62, 200, 0.18), transparent 45%),
    radial-gradient(ellipse at 30% 60%, rgba(61, 240, 255, 0.14), transparent 40%);
}

.hero-bolts {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 40%, rgba(61, 240, 255, 0.08) 50%, transparent 60%),
    linear-gradient(245deg, transparent 35%, rgba(255, 62, 200, 0.07) 48%, transparent 58%);
  background-size: 200% 200%;
  animation: bolt-sweep 7s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes bolt-sweep {
  0%, 100% { background-position: 0% 50%; opacity: 0.55; }
  50% { background-position: 100% 50%; opacity: 1; }
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: var(--wrap);
}

.brand-mark {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    -2px 0 0 rgba(255, 62, 200, 0.75),
    2px 0 0 rgba(61, 240, 255, 0.75),
    0 0 28px rgba(61, 240, 255, 0.45),
    0 0 48px rgba(255, 62, 200, 0.35);
  animation: neon-flicker 5.5s ease-in-out infinite;
}

.ticker-chip {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-hot);
  border: 1px solid rgba(61, 240, 255, 0.4);
  background: rgba(61, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(61, 240, 255, 0.18);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-mascot {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.mascot {
  position: relative;
  z-index: 2;
  width: min(420px, 78vw);
  border-radius: 28px;
  animation: mascot-float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(61, 240, 255, 0.35)) drop-shadow(0 0 42px rgba(255, 62, 200, 0.28));
}

.mascot-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 240, 255, 0.35), rgba(255, 62, 200, 0.22), transparent 70%);
  filter: blur(18px);
  animation: glow-breathe 3.8s ease-in-out infinite;
  z-index: 1;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  z-index: 0;
}

.orbit-a {
  width: 92%;
  height: 92%;
  border-color: rgba(61, 240, 255, 0.28);
  box-shadow: 0 0 24px rgba(61, 240, 255, 0.12);
  animation: orbit-spin 14s linear infinite;
}

.orbit-b {
  width: 108%;
  height: 108%;
  border-color: rgba(255, 62, 200, 0.22);
  animation: orbit-spin 20s linear infinite reverse;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

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

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.82; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 3;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(var(--cyan), var(--magenta));
  animation: cue-drop 1.6s ease-in-out infinite;
}

@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 240, 255, 0.45), rgba(255, 62, 200, 0.45), transparent);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta-hot);
  text-shadow: 0 0 16px rgba(255, 62, 200, 0.45);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow:
    -1px 0 0 rgba(255, 62, 200, 0.35),
    1px 0 0 rgba(61, 240, 255, 0.35);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

/* About */
.motto {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(90deg, var(--magenta-hot), #fff 45%, var(--cyan-hot));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(61, 240, 255, 0.2);
}

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

.about-block {
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(61, 240, 255, 0.28);
}

.about-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cyan-hot);
}

.about-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* How to buy */
.buy-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 1px solid rgba(255, 62, 200, 0.35);
}

.buy-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.25rem 0 1.25rem 1.35rem;
  position: relative;
}

.buy-step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 14px rgba(61, 240, 255, 0.7);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: transparent;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
}

.buy-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

.buy-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ca-line {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-all;
}

.ca-line.is-ready {
  color: var(--cyan-hot);
}

/* Chart */
.chart-shell {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(61, 240, 255, 0.28);
  background: rgba(4, 3, 10, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 62, 200, 0.12),
    0 0 40px rgba(61, 240, 255, 0.12),
    inset 0 0 60px rgba(107, 44, 255, 0.12);
}

.chart-shell iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: none;
  background: #0b0e11;
}

.chart-shell.has-pair iframe {
  display: block;
}

.chart-shell.has-pair .chart-fallback {
  display: none;
}

.chart-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(61, 240, 255, 0.12), transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(255, 62, 200, 0.1), transparent 45%);
}

.chart-fallback p {
  margin: 0;
  color: var(--muted);
}

.chart-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.chart-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.chart-links a img {
  width: 18px;
  height: 18px;
}

.chart-links a:hover {
  color: var(--cyan-hot);
}

/* Join Us — banner only here */
.joinus {
  padding-top: 0;
  overflow: hidden;
}

.joinus::before {
  display: none;
}

.join-banner-plane {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 34vw, 460px);
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

.join-banner-plane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  animation: banner-drift 16s ease-in-out infinite alternate;
  filter: saturate(1.12) contrast(1.06);
}

.join-banner-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 3, 10, 0.15) 0%, rgba(4, 3, 10, 0.35) 45%, rgba(4, 3, 10, 0.92) 78%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(61, 240, 255, 0.12), transparent 40%, rgba(255, 62, 200, 0.12));
  pointer-events: none;
}

@keyframes banner-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-2%); }
}

.join-panel {
  position: relative;
  margin-top: -4rem;
  padding-bottom: 1rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 150px;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(61, 240, 255, 0.08), rgba(255, 62, 200, 0.08));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social img {
  width: 20px;
  height: 20px;
}

.social span {
  font-weight: 600;
}

.social:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 240, 255, 0.5);
  box-shadow: 0 0 28px rgba(255, 62, 200, 0.22);
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row p {
  margin: 0;
}

.fine {
  opacity: 0.8;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

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

/* Mobile */
@media (max-width: 920px) {
  .hero-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mascot {
    order: -1;
  }

  .mascot {
    width: min(300px, 70vw);
  }

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

  .burger {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.2rem 1.2rem;
    background: rgba(7, 6, 15, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .buy-step {
    grid-template-columns: 54px 1fr;
    padding-left: 1rem;
  }

  .chart-shell,
  .chart-shell iframe {
    min-height: 420px;
    height: 420px;
  }

  .social {
    width: 100%;
  }
}

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

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