:root {
  --bg: #0b1220;
  --panel: #151d2e;
  --line: rgba(255, 255, 255, 0.1);
  --sky: #7dd3fc;
  --amber: #fbbf24;
  --rose: #fb7185;
  --emerald: #34d399;
  --violet: #c4b5fd;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a5f 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #3b1d2a 0%, transparent 50%), var(--bg);
  font-family: Syne, sans-serif;
  overflow-x: hidden;
}

#space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grain {
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 20%), rgba(125, 211, 252, 0.12), transparent 60%);
}

.nav,
main,
footer {
  position: relative;
  z-index: 2;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 7vw;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  image-rendering: pixelated;
}

.nav nav {
  display: flex;
  gap: 22px;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav nav a:hover {
  color: var(--sky);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px 48px;
  align-items: center;
  padding: 32px 7vw;
}

.kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sky);
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.word {
  display: block;
}

.word.moon {
  color: var(--amber);
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.35);
}

.word.or {
  color: #64748b;
  font-size: 0.38em;
  letter-spacing: 0.4em;
  margin: 8px 0 4px;
}

.word.rekt {
  color: var(--rose);
  text-shadow: 0 0 40px rgba(251, 113, 133, 0.35);
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.glitch::before {
  color: #22d3ee;
  transform: translate(2px, -1px);
  animation: glitch 3.2s infinite;
}

.glitch::after {
  color: #fb7185;
  transform: translate(-2px, 1px);
  animation: glitch 2.6s infinite reverse;
}

.lede,
.play-copy p,
.seeker p,
.download p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-sky {
  background: var(--sky);
  color: #0b1220;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn[aria-disabled="true"] {
  opacity: 0.85;
  pointer-events: none;
}

.ticker {
  flex-shrink: 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
}

.ticker-track {
  display: flex;
  gap: 40px;
  padding: 14px 0;
  width: max-content;
  font-family: "IBM Plex Mono", monospace;
  animation: marquee 28s linear infinite;
}

.ticker b.up {
  color: var(--emerald);
}

.ticker b.down {
  color: var(--rose);
}

.seeker {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

h2 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.pulse-list {
  list-style: none;
  padding: 0;
  color: var(--ink);
}

.pulse-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.dot.up {
  background: var(--emerald);
  color: var(--emerald);
}

.dot.amber {
  background: var(--amber);
  color: var(--amber);
}

.dot.rose {
  background: var(--rose);
  color: var(--rose);
}

.phone {
  display: grid;
  place-items: center;
  animation: float 5s ease-in-out infinite;
}

.phone-bezel {
  width: min(320px, 100%);
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.phone-screen {
  border-radius: 28px;
  background: #0b1220;
  padding: 16px;
  overflow: hidden;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 8px;
}

.pnl {
  color: var(--emerald);
}

.phone-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mini {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
  font-family: inherit;
}

.mini.buy {
  background: var(--sky);
  color: #0b1220;
}

.mini.sell {
  background: #fb7185;
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  border-color: rgba(125, 211, 252, 0.35);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tag.sky {
  color: var(--sky);
  background: rgba(125, 211, 252, 0.12);
}

.tag.amber {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.12);
}

.tag.violet {
  color: var(--violet);
  background: rgba(196, 181, 253, 0.12);
}

.tag.rose {
  color: var(--rose);
  background: rgba(251, 113, 133, 0.12);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.seeker {
  position: relative;
}

.seeker-orb {
  position: absolute;
  width: 240px;
  height: 240px;
  right: 12vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45), transparent 68%);
  filter: blur(8px);
  animation: pulse 4s ease-in-out infinite;
}

.download {
  text-align: center;
}

.download img {
  border-radius: 22px;
  image-rendering: pixelated;
  animation: float 4.5s ease-in-out infinite;
}

.download .lede,
.download p,
.download .hero-actions {
  margin-left: auto;
  margin-right: auto;
}

.download .hero-actions {
  justify-content: center;
  margin-top: 24px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 14px 7vw 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
  font-weight: 800;
}

.footer-copy {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.legal a {
  color: var(--sky);
}

.legal-body {
  background: #1a1a1a;
}

.legal-body .nav {
  background: #1a1a1a;
  backdrop-filter: none;
}

.legal-body main {
  flex: none;
}

.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 48px 7vw 72px;
}

.legal h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal-updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.fine {
  font-family: "IBM Plex Mono", monospace;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes glitch {
  0%,
  90%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  92% {
    clip-path: inset(10% 0 40% 0);
  }
  94% {
    clip-path: inset(70% 0 5% 0);
  }
  96% {
    clip-path: inset(20% 0 50% 0);
  }
}

@media (max-width: 720px) {
  .nav nav {
    display: none;
  }

  .hero,
  .seeker,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    flex: none;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .phone-bezel {
    transform: none;
    width: min(220px, 100%);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    order: 2;
  }

  .fine {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
