:root {
  --bg-0: #07060f;
  --bg-1: #120a1f;
  --ink: #f4f0ff;
  --muted: #a89bb8;
  --accent: #b57bff;
  --accent-2: #7c5cff;
  --line: rgba(244, 240, 255, 0.12);
  --font-display: "Syne", 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-0);
  overflow-x: hidden;
}

/* Atmosphere */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(124, 92, 255, 0.28), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(181, 123, 255, 0.18), transparent 50%),
    linear-gradient(165deg, #10081c 0%, #07060f 45%, #140a22 100%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 240, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 85%);
  opacity: 0.7;
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.bg__orb--a {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: rgba(124, 92, 255, 0.4);
  animation: orb-a 18s ease-in-out infinite;
}

.bg__orb--b {
  width: 360px;
  height: 360px;
  top: 18%;
  right: -8%;
  background: rgba(181, 123, 255, 0.32);
  animation: orb-b 22s ease-in-out infinite;
}

.bg__orb--c {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: 35%;
  background: rgba(232, 121, 249, 0.16);
  animation: orb-c 16s ease-in-out infinite;
}

@keyframes orb-a {
  0% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(22vw, 16vh, 0);
  }
  66% {
    transform: translate3d(10vw, 36vh, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes orb-b {
  0% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(-20vw, 18vh, 0);
  }
  66% {
    transform: translate3d(-14vw, -10vh, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes orb-c {
  0% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(16vw, -24vh, 0);
  }
  66% {
    transform: translate3d(-18vw, -8vh, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__orb {
    animation: none;
  }
}

/* Hero */
.hero {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6.5rem) 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(120deg, #ffffff 10%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.8s ease both;
}

.headline {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.9s ease 0.08s both;
}

.headline__line {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent);
}

.sub {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.55;
  animation: rise 1s ease 0.16s both;
}

.cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  animation: rise 1.05s ease 0.24s both;
}

.cta__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(181, 123, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(181, 123, 255, 0.22), rgba(124, 92, 255, 0.08));
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta__primary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(181, 123, 255, 0.32), rgba(124, 92, 255, 0.14));
}

.cta__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta__meta-logo {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: #ccff00;
}

.media {
  width: 100%;
  justify-self: end;
  animation: rise 1.15s ease 0.32s both;
}

.media__frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 6, 15, 0.65);
  box-shadow: 0 0 0 1px rgba(181, 123, 255, 0.1);
  animation: media-pulse 6s ease-in-out infinite;
}

.media__frame iframe,
.media__frame #crypto-boy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media__caption {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.media__caption em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

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

@keyframes media-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(181, 123, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.28);
  }
}

@media (max-width: 860px) {
  .hero {
    width: min(1120px, calc(100% - 1.5rem));
    padding-top: 2.75rem;
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero__copy {
    align-items: center;
    text-align: center;
  }

  .headline {
    max-width: none;
  }

  .cta {
    flex-direction: column;
    align-items: center;
  }

  .cta__meta {
    justify-content: center;
  }

  .media {
    justify-self: stretch;
    order: 2;
  }

  .media__frame {
    max-width: min(300px, 72vw);
  }
}
