:root {
  --bg: #16141f;
  --bg-2: #1d1a29;
  --card: #221e31;
  --line: #322c47;
  --text: #ece9f5;
  --muted: #a29cb8;
  --accent: #8b6cff;
  --accent-2: #b39dff;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 108, 255, 0.18), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, rgba(70, 110, 200, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); }

code, pre {
  font-family: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, monospace;
  font-size: 0.9em;
}

code {
  background: rgba(139, 108, 255, 0.12);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.spark {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.45em;
  vertical-align: -0.1em;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  background: rgba(22, 20, 31, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(50, 44, 71, 0.6);
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.08rem; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.35em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(139, 108, 255, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #9a7fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn.small { padding: 0.45em 1em; font-size: 0.92rem; box-shadow: none; }

/* Layout */
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9em;
}
.lede { font-size: 1.16rem; color: #d3cee4; max-width: 40em; }
.fine { color: var(--muted); font-size: 0.88rem; }

/* Hero */
.hero { padding-top: 64px; text-align: center; }
.hero h1 { max-width: 14em; margin-left: auto; margin-right: auto; }
.hero .lede { margin: 0 auto 1.6em; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1em; }
.hero-shot { margin: 48px auto 0; max-width: 960px; }

/* Screenshots */
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Steps */
.steps h2 { text-align: center; margin-bottom: 1.4em; }
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li, .features article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.steps li p, .features article p { color: #c9c3dc; margin: 0; font-size: 0.98rem; }
.num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 108, 255, 0.18);
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Split rows */
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse > figure { order: 2; }
.split p { color: #c9c3dc; }

/* Features */
.features h2 { text-align: center; margin-bottom: 1.4em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Download */
.download { text-align: center; }
.download .lede { margin: 0 auto 2em; }
.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px;
  text-align: left;
  background: linear-gradient(135deg, rgba(139, 108, 255, 0.16), rgba(139, 108, 255, 0.04)), var(--card);
  border: 1px solid #44396a;
  border-radius: var(--radius);
}
.dl-card h3 { margin: 0 0 0.2em; font-size: 1.25rem; }
.dl-card .meta { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sum { margin: 14px auto 0; max-width: 720px; color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.sum code { background: none; padding: 0; }

.howto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 48px auto 0;
  text-align: left;
}
.howto > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.howto p, .howto li { color: #c9c3dc; font-size: 0.96rem; }
.howto ul { margin: 0; padding-left: 1.2em; }
.howto li { margin-bottom: 0.35em; }
pre {
  margin: 0 0 0.8em;
  padding: 14px 16px;
  background: #121019;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
  scrollbar-color: #44396a transparent;
}
pre code { background: none; padding: 0; }
.note { margin: 36px auto 0; max-width: 40em; color: var(--muted); font-size: 0.92rem; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 20px 48px;
  text-align: center;
  color: var(--muted);
}
footer p { margin: 0 0 0.4em; }
footer .fine { max-width: 46em; margin: 0 auto; }

@media (max-width: 900px) {
  .steps ol, .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > figure { order: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  main > section { padding: 52px 16px; }
  .nav { padding: 12px 16px; }
  .nav nav a:not(.btn) { display: none; }
  .steps ol, .grid, .howto { grid-template-columns: 1fr; }
  .dl-card { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-shot { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
