:root {
  --bg: #050708;
  --bg-2: #0a0e12;
  --ink: #e8eef2;
  --muted: #8a969f;
  --mint: #8effc1;
  --mint-deep: #3dcaa0;
  --mint-soft: rgba(142, 255, 193, 0.14);
  --chrome: #c9d2d8;
  --chrome-dim: #7a8690;
  --line: rgba(142, 255, 193, 0.22);
  --glass: rgba(10, 14, 18, 0.55);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2.4rem));
  --font-display: "Oxanium", sans-serif;
  --font-body: "Sora", sans-serif;
}

*,
*::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);
  overflow-x: hidden;
  line-height: 1.55;
}

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

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

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

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 70% 10%, rgba(142, 255, 193, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(100, 140, 160, 0.08), transparent 50%),
    linear-gradient(180deg, #050708 0%, #070b0f 45%, #050708 100%);
}

.veil {
  position: absolute;
  inset: -20%;
  filter: blur(60px);
  opacity: 0.55;
  animation: veilDrift 18s ease-in-out infinite alternate;
}

.veil-a {
  background: radial-gradient(circle at 30% 40%, rgba(142, 255, 193, 0.12), transparent 42%);
}

.veil-b {
  background: radial-gradient(circle at 75% 30%, rgba(180, 200, 210, 0.1), transparent 40%);
  animation-delay: -6s;
}

.grid-floor {
  position: absolute;
  inset: 55% -10% -10%;
  background-image:
    linear-gradient(rgba(142, 255, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 255, 193, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(58deg);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

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

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

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(142, 255, 193, 0.35), 0 0 24px rgba(142, 255, 193, 0.2);
}

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

.nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(142, 255, 193, 0.2), rgba(61, 202, 160, 0.08));
  border: 1px solid rgba(142, 255, 193, 0.45);
  color: var(--mint) !important;
  font-weight: 600;
}

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

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 7.5rem 0 0;
  overflow: hidden;
}

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

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

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.92) 0%, rgba(5, 7, 8, 0.55) 48%, rgba(5, 7, 8, 0.7) 100%),
    radial-gradient(ellipse at 70% 45%, rgba(142, 255, 193, 0.12), transparent 50%);
}

.hero.has-video .hero-veil {
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.55) 0%, rgba(5, 7, 8, 0.82) 70%, #050708 100%),
    linear-gradient(90deg, rgba(5, 7, 8, 0.85), transparent 55%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(142, 255, 193, 0.015) 3px,
    rgba(142, 255, 193, 0.015) 4px
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: scanDrift 10s linear infinite;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 5.5rem;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 10%, #c9d2d8 45%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(142, 255, 193, 0.25));
  animation: brandPulse 5s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: 18ch;
}

.mint {
  color: var(--mint);
  text-shadow: 0 0 24px rgba(142, 255, 193, 0.35);
}

.lede {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 38ch;
  font-size: 1.02rem;
  font-weight: 300;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn img {
  width: 18px;
  height: 18px;
  filter: invert(1) brightness(1.2);
}

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

.btn-mint {
  background: linear-gradient(135deg, #b6ffd6, #5ed6a4);
  color: #06110c;
  box-shadow: 0 0 0 1px rgba(142, 255, 193, 0.5), 0 12px 40px rgba(61, 202, 160, 0.28);
}

.btn-mint:hover {
  box-shadow: 0 0 0 1px rgba(142, 255, 193, 0.7), 0 16px 48px rgba(61, 202, 160, 0.4);
}

.btn-chrome {
  background: linear-gradient(180deg, rgba(232, 238, 242, 0.12), rgba(232, 238, 242, 0.04));
  border: 1px solid rgba(201, 210, 216, 0.35);
  color: var(--chrome);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-chrome:hover {
  border-color: rgba(142, 255, 193, 0.45);
  color: var(--mint);
}

.btn-ghost {
  border: 1px solid rgba(142, 255, 193, 0.28);
  color: var(--mint);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--mint-soft);
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(8, 12, 14, 0.65);
  border: 1px solid rgba(142, 255, 193, 0.18);
  max-width: 100%;
}

.ca-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--mint);
}

#ca-value {
  font-size: 0.78rem;
  color: var(--chrome);
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 255, 193, 0.35);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--mint-soft);
}

.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.figure {
  position: relative;
  z-index: 2;
  width: min(420px, 88%);
  border-radius: 50%;
  animation: figureFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(142, 255, 193, 0.22));
}

.figure-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 255, 193, 0.28), transparent 68%);
  filter: blur(18px);
  animation: glowBreath 4s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(142, 255, 193, 0.22);
  animation: orbitSpin linear infinite;
}

.orbit-a {
  width: 88%;
  height: 88%;
  animation-duration: 18s;
  border-color: rgba(201, 210, 216, 0.25);
}

.orbit-b {
  width: 104%;
  height: 104%;
  animation-duration: 28s;
  animation-direction: reverse;
  border-style: dashed;
  opacity: 0.7;
}

.orbit-c {
  width: 118%;
  height: 118%;
  animation-duration: 36s;
  border-color: rgba(142, 255, 193, 0.12);
}

.rim-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
  z-index: 3;
  animation: sparkOrbit 8s linear infinite;
}

.rs1 { top: 12%; left: 48%; animation-duration: 7s; }
.rs2 { top: 62%; right: 8%; animation-duration: 11s; animation-delay: -2s; }
.rs3 { bottom: 18%; left: 16%; animation-duration: 9s; animation-delay: -4s; }

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(142, 255, 193, 0.18);
  border-bottom: 1px solid rgba(142, 255, 193, 0.18);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: tickerMove 32s linear infinite;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--chrome-dim);
}

.ticker-track span:nth-child(odd) {
  color: var(--mint);
}

/* Sections */
.section {
  position: relative;
  padding: 6.5rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.section-head p:last-child,
.about-copy > p {
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.portrait-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 30%, rgba(142, 255, 193, 0.12), transparent 55%), #000;
  box-shadow: var(--shadow), 0 0 0 1px rgba(142, 255, 193, 0.2);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  animation: figureFloat 7s ease-in-out infinite;
}

.frame-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(142, 255, 193, 0.18), transparent);
  animation: frameSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.about-copy h2 {
  max-width: 16ch;
}

.signal-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--chrome);
  font-size: 0.95rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  flex-shrink: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.4rem 1.2rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(142, 255, 193, 0.14);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(142, 255, 193, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step:hover {
  border-color: rgba(142, 255, 193, 0.4);
  transform: translateY(-4px);
}

.step:hover::before {
  opacity: 1;
}

.step-num {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--mint);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}

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

.chart-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(142, 255, 193, 0.2);
  box-shadow: var(--shadow), 0 0 60px rgba(61, 202, 160, 0.08);
  background: #0a0e12;
  min-height: 520px;
}

.chart-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

.joinus .banner-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(142, 255, 193, 0.25);
  box-shadow: var(--shadow), 0 0 80px rgba(142, 255, 193, 0.1);
}

.join-banner {
  width: 100%;
  display: block;
  animation: bannerBreathe 8s ease-in-out infinite;
}

.banner-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.12) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheenSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.join-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(201, 210, 216, 0.2);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-weight: 600;
}

.social img {
  width: 20px;
  height: 20px;
  filter: invert(1) brightness(1.15);
}

.social:hover {
  border-color: rgba(142, 255, 193, 0.5);
  background: var(--mint-soft);
  transform: translateY(-3px);
  color: var(--mint);
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(142, 255, 193, 0.14);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
}

.footer-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 210, 216, 0.2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.footer-links img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Animations */
@keyframes veilDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

@keyframes brandPulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(142, 255, 193, 0.2)); }
  50% { filter: drop-shadow(0 0 36px rgba(142, 255, 193, 0.4)); }
}

@keyframes figureFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

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

@keyframes sparkOrbit {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(10px, -14px) scale(1.4); opacity: 1; }
}

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

@keyframes frameSweep {
  0% { top: -30%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { top: 110%; opacity: 0; }
}

@keyframes sheenSweep {
  0%, 35% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}

@keyframes bannerBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes scanDrift {
  from { background-position: 0 0; }
  to { background-position: 0 80px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-stage,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
    min-height: 300px;
  }

  .figure {
    width: min(300px, 70%);
  }

  .brand-mark {
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .lede {
    margin-inline: auto;
  }

  .hero-actions,
  .ca-row,
  .howto-actions,
  .chart-actions {
    justify-content: center;
  }

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

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .burger {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 1.2rem;
    right: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(8, 12, 14, 0.94);
    border: 1px solid rgba(142, 255, 193, 0.2);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-cta {
    text-align: center;
  }

  .steps,
  .join-links {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 4.5rem 0;
  }
}

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

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