:root {
  --void: #000;
  --nebula: #160b2e;
  --ink: #0c0618;
  --violet: #8e4dff;
  --lilac: #cdb8ff;
  --star: #ede8f8;
  --dim: #a39bbd;
  --line: rgba(205, 184, 255, .14);
  --orbit: #ff9ecf;
  --academy: #ffd479;
  --code: #7dffc4;
  --studio: #8e4dff;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1180px, 100% - 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--star);
  font: 400 17px/1.6 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 62%, #cdb8ff88 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 86%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61% 31%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 78%, #cdb8ff77 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 52%, #fff5 50%, transparent 51%);
  background-size: 420px 420px, 560px 560px, 690px 690px, 380px 380px, 510px 510px, 770px 770px, 450px 450px, 610px 610px;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--star); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.1rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--star); text-decoration: none; font: 600 1rem var(--display); letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--lilac); font-weight: 600; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { color: var(--dim); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover { color: var(--star); background: rgba(205, 184, 255, .08); }
.nav .pill { color: #fff; background: var(--violet); }
.nav .pill:hover { background: #a06bff; color: #fff; }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--star); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font: 600 .98rem var(--body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-main { background: var(--star); color: #000; }
.btn-main:hover { background: #fff; color: #000; }
.btn-line { border-color: var(--line); color: var(--star); background: rgba(22, 11, 46, .5); }
.btn-line:hover { border-color: var(--lilac); color: #fff; }
.btn[aria-disabled="true"] { background: transparent; border: 1px dashed rgba(205, 184, 255, .35); color: var(--dim); cursor: default; }

.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 22px; color: var(--dim); font-size: 1.15rem; max-width: 46ch; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.readout {
  margin-top: 36px;
  min-height: 92px;
  padding: 16px 18px;
  border-left: 3px solid var(--ro, var(--violet));
  background: linear-gradient(90deg, rgba(22, 11, 46, .9), rgba(22, 11, 46, 0));
  border-radius: 0 12px 12px 0;
  max-width: 440px;
  transition: border-color .3s;
}
.readout strong { display: block; font: 600 1.02rem var(--display); color: var(--star); }
.readout span { color: var(--dim); font-size: .95rem; }

.system {
  position: relative;
  aspect-ratio: 1 / .86;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.system.drag { cursor: grabbing; }
.system svg.paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.system svg.paths ellipse { fill: none; stroke: rgba(205, 184, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(142, 77, 255, .5), rgba(142, 77, 255, 0) 70%);
  z-index: 50;
}
.star img { width: 74%; height: auto; filter: drop-shadow(0 0 22px rgba(142, 77, 255, .7)); }
.planet {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 76px);
  height: var(--size, 76px);
  margin: calc(var(--size, 76px) / -2) 0 0 calc(var(--size, 76px) / -2);
  border-radius: 24%;
  display: block;
  will-change: transform;
  text-decoration: none;
  color: var(--star);
}
.planet img, .planet svg { width: 100%; height: 100%; border-radius: inherit; box-shadow: 0 10px 34px -8px var(--glow, rgba(142, 77, 255, .7)); }
.planet .tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  translate: -50% 0;
  white-space: nowrap;
  font: 500 .8rem var(--body);
  color: var(--dim);
  opacity: 0;
  transition: opacity .2s;
}
.planet:hover .tag, .planet:focus-visible .tag, .planet.on .tag { opacity: 1; color: var(--star); }

.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head p { margin-top: 14px; color: var(--dim); font-size: 1.08rem; }

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.app:nth-of-type(even) .app-shot { order: -1; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-id img, .app-id svg { width: 52px; height: 52px; border-radius: 14px; }
.app-id div { display: grid; }
.app-id b { font: 600 1.05rem var(--display); }
.app-id small { color: var(--accent); font-size: .9rem; }
.app h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.app .pitch { margin-top: 16px; color: var(--dim); max-width: 50ch; }
.app ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.app li { position: relative; padding-left: 24px; }
.app li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.get { margin-top: 30px; display: grid; gap: 10px; justify-items: start; }
.get .row { display: flex; flex-wrap: wrap; gap: 10px; }
.get .meta { color: var(--dim); font-size: .9rem; }
.get .notes { color: var(--star); font-size: .92rem; max-width: 56ch; padding: 12px 14px; background: rgba(22, 11, 46, .7); border-radius: 10px; border: 1px solid var(--line); }
.get .notes:empty { display: none; }
.lock { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lock input { background: var(--ink); color: var(--star); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; min-width: 220px; }
.lock input:focus { border-color: var(--lilac); outline: none; }
.lock .msg { color: var(--academy); font-size: .9rem; flex-basis: 100%; }
.lock .msg:empty { display: none; }

.app-shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: 0 30px 80px -40px var(--accent);
  aspect-ratio: 1480 / 900;
}
.app-shot img { width: 100%; height: 100%; object-fit: cover; }
button.app-shot { padding: 0; cursor: zoom-in; width: 100%; }
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.zoom img { max-height: 92vh; border-radius: 12px; }

.studio-art { display: grid; place-items: center; background: radial-gradient(120% 90% at 70% 20%, #2a1556, var(--ink) 60%); }
.studio-art svg { width: 100%; height: 100%; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 28px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font: 700 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--lilac); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--dim); font-size: .96rem; }
.smart { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px 24px; border-radius: 16px; background: var(--nebula); max-width: 820px; }
.smart svg { width: 30px; height: 30px; fill: var(--academy); }
.smart p { color: var(--dim); }
.smart b { color: var(--star); }
.smart kbd { font: 600 .85em var(--body); background: #000; border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; color: var(--star); }

.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.split div { padding-top: 22px; border-top: 2px solid var(--violet); }
.split h3 { margin-bottom: 10px; }
.split p { color: var(--dim); }

.family { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.family a { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: 18px; background: var(--nebula); text-decoration: none; color: var(--star); border: 1px solid transparent; }
.family a:hover { border-color: var(--lilac); }
.family img { width: 56px; height: 56px; border-radius: 14px; }
.family b { font: 600 1.05rem var(--display); display: block; }
.family span { color: var(--dim); font-size: .95rem; }

.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--dim); font-size: .92rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 600 .95rem var(--display); color: var(--star); margin: 0 0 12px; }
.foot a { color: var(--dim); text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--star); }
.foot .fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; }

.page-head { padding: clamp(48px, 7vw, 90px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-head p { margin-top: 16px; color: var(--dim); font-size: 1.1rem; max-width: 60ch; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: .92rem; }
.toc b { font: 600 .9rem var(--display); margin-bottom: 8px; }
.toc a { color: var(--dim); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--star); }
.prose { max-width: 70ch; }
.prose section { scroll-margin-top: 90px; padding-bottom: 28px; }
.prose h2 { font-size: 1.4rem; margin: 8px 0 14px; }
.prose p, .prose li { color: #d6d0e6; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 6px; }
.updated { color: var(--dim); font-size: .9rem; margin-top: 10px; }

.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--nebula); border-radius: 14px; padding: 4px 20px; border: 1px solid transparent; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--display); color: var(--lilac); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p, .faq details ol { color: var(--dim); padding-bottom: 18px; margin: 0; }
.faq ol { padding-left: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 64px; }
.cards a, .cards div { display: block; padding: 24px; border-radius: 18px; background: var(--nebula); color: var(--star); text-decoration: none; border: 1px solid transparent; }
.cards a:hover { border-color: var(--lilac); }
.cards b { font: 600 1.05rem var(--display); display: block; margin-bottom: 8px; }
.cards span { color: var(--dim); font-size: .95rem; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost h1 { font-size: clamp(3rem, 12vw, 8rem); color: transparent; -webkit-text-stroke: 1.5px var(--lilac); }
.lost p { color: var(--dim); margin: 18px auto 28px; max-width: 40ch; }

@media (max-width: 980px) {
  .hero .wrap, .app { grid-template-columns: 1fr; }
  .hero .system { order: -1; max-width: 560px; margin-inline: auto; }
  .app:nth-of-type(even) .app-shot { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .split, .cards { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #000; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .family { grid-template-columns: 1fr; }
  .planet { --size: 58px !important; }
}
@media (max-width: 560px) {
  :root { --wrap: calc(100% - 36px); }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .foot .wrap { grid-template-columns: 1fr; }
  .lock input { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
