:root {
  --bg: #0b0314;
  --bg-2: #160627;
  --panel: rgba(28, 10, 48, 0.62);
  --line: rgba(245, 193, 108, 0.22);
  --purple: #a855f7;
  --magenta: #e879f9;
  --gold: #f5c16c;
  --gold-2: #ffe9b0;
  --eye: #7ec4ff;
  --text: #f7f0fb;
  --muted: #c5b3d4;
  --ink: #1a0b12;
  --radius: 22px;
  --nav: 76px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(168, 85, 247, 0.28), transparent 55%),
    radial-gradient(700px 420px at 10% 80%, rgba(245, 193, 108, 0.1), transparent 50%),
    radial-gradient(1200px 800px at 50% -10%, rgba(88, 28, 135, 0.45), transparent 60%),
    linear-gradient(180deg, #14051f 0%, #0b0314 40%, #12061c 100%);
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 80;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

#spark {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(11, 3, 20, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 18px rgba(245, 193, 108, 0.35);
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(245, 193, 108, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 0.98rem;
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  cursor: pointer;
}

.menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(245, 193, 108, 0.05);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold-2);
  text-transform: uppercase;
}

.ticker i {
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--magenta);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(860px, calc(100vh - var(--nav) - 42px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 56px) 48px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 3, 20, 0.88) 0%, rgba(11, 3, 20, 0.62) 42%, rgba(11, 3, 20, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 3, 20, 0.18) 0%, rgba(11, 3, 20, 0.55) 100%);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 650;
  font-size: clamp(5.2rem, 16vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fffaf0 10%, #f5c16c 48%, #d8a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-style: italic;
  color: var(--gold-2);
}

.lede {
  margin-top: 16px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}

.stats div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  font-weight: 800;
  font-size: 1.02rem;
  margin-top: 4px;
}

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

.hero-blur {
  position: absolute;
  width: 92%;
  filter: blur(38px) saturate(1.4);
  opacity: 0.65;
  transform: scale(1.08);
  z-index: 0;
}

.hero-ring {
  position: absolute;
  width: min(78%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(245, 193, 108, 0.35);
  box-shadow:
    0 0 80px rgba(168, 85, 247, 0.35),
    inset 0 0 80px rgba(245, 193, 108, 0.08);
  z-index: 1;
}

.hero-main {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  border-radius: 36px 36px 120px 120px;
  mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

section {
  padding: 88px clamp(18px, 4vw, 56px);
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2,
.story h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-head p,
.story p {
  color: var(--muted);
}

.origin .section-head {
  max-width: 720px;
}

.embed-frame,
.story-card,
.cards article,
.ca-panel,
.steps li,
.social {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.embed-frame {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  place-items: start center;
  overflow: hidden;
}

.twitter-tweet {
  margin: 0 auto !important;
}

.story-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 22px;
  align-items: center;
}

.story-card img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 28px;
}

.story-card p + p { margin-top: 12px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cards article {
  padding: 22px;
  min-height: 210px;
}

.cards span {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.cards h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 14px 0 10px;
}

.cards p { color: var(--muted); font-size: 0.95rem; }

.ca-panel {
  margin-top: 22px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ca-panel code {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  word-break: break-all;
  color: var(--gold-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 22px;
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.steps h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 12px 0 8px;
}

.steps p { color: var(--muted); }

.buy-cta, .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social {
  flex: 1 1 240px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.social strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.social span { color: var(--muted); }

.foot {
  padding: 40px clamp(18px, 4vw, 56px) 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 18px;
}

.foot > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
}

.foot strong {
  font-family: var(--display);
  font-size: 1.4rem;
}

.legal {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 60;
  opacity: 0;
  transition: 0.3s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #5b2d86; border-radius: 99px; }
::-webkit-scrollbar-track { background: #0b0314; }

@media (max-width: 980px) {
  .hero,
  .cards,
  .steps,
  .story-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
    padding-top: 12px;
  }

  .hero-art {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-main {
    width: min(58%, 240px);
    margin: 0 auto;
    border-radius: 50%;
    mask-image: none;
    animation: none;
  }

  .hero-ring {
    width: min(70%, 280px);
  }

  .hero h1 {
    font-size: clamp(4.2rem, 22vw, 6.5rem);
    text-align: center;
  }

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

  .lede,
  .hero-actions,
  .stats {
    margin-left: auto;
    margin-right: auto;
  }

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

  .stats { grid-template-columns: repeat(2, 1fr); }

  .nav {
    overflow: visible;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 60;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #1a0a2c;
    border: 1px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }

  .nav.open .nav-links { display: flex; }
  .menu { display: block; }
  .nav-end .btn-ghost { display: none; }
  .story-card img { width: 100%; height: 280px; }
}

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

  .hero-bg video {
    display: none;
  }
}
