@font-face { font-family: "Zen Dots"; src: url("assets/fonts/ZenDots-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter Tabular"; src: url("assets/fonts/InterTabular-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tabular"; src: url("assets/fonts/InterTabular-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tabular"; src: url("assets/fonts/InterTabular-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e0d17;
  --bg-2: #15131f;
  --surface: #1b1928;
  --line: #2a2740;
  --text: #ecebf5;
  --text-2: #a9a6be;
  --text-3: #75728b;
  --lilac: #B69CFF;
  --lilac-dim: rgba(182, 156, 255, 0.14);
  --ink: #151329;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter Tabular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1320px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lilac); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: var(--lilac); margin-bottom: 18px; }
.wordmark { font-family: "Zen Dots", sans-serif; font-size: 20px; color: var(--text); letter-spacing: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--lilac); color: var(--ink); }
.btn-primary:hover { background: #c6b1ff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg-2); }
.btn-ghost:hover { border-color: var(--lilac); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.text-link { font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 32px 0 26px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 13, 23, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 700px; pointer-events: none;
  background: radial-gradient(600px 340px at 50% 30%, rgba(182, 156, 255, 0.18), transparent 70%);
}
.hero .wrap { position: relative; }
.lede { font-size: 20px; color: var(--text-2); max-width: 640px; margin-top: 24px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--text-3); font-size: 15px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--lilac-dim); color: var(--lilac); font-weight: 600; font-size: 14px; }

.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 40px 120px -30px rgba(182, 156, 255, 0.28), 0 20px 50px rgba(0, 0, 0, 0.5); }
.shot-hero { margin-top: 56px; }
figcaption { color: var(--text-3); font-size: 14px; margin-top: 12px; font-style: italic; }

/* Four steps */
.steps { padding: 96px 0; border-bottom: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.num { font-weight: 700; color: var(--lilac); font-size: 14px; margin-right: 10px; letter-spacing: 0.04em; }
.label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--text-3); }
.step h3 { margin: 16px 0 10px; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* Split sections */
.split { padding: 112px 0; border-bottom: 1px solid var(--line); }
.split-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split-rev .split-text { order: 2; }
.split-text p { color: var(--text-2); }
.split-media { margin: 0; }
.numbered { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding-left: 52px; margin-bottom: 22px; color: var(--text-2); }
.numbered li::before { content: "0" counter(n); position: absolute; left: 0; top: 1px; font-weight: 700; color: var(--lilac); font-size: 15px; }
.numbered strong { color: var(--text); display: block; font-weight: 600; }
.note { font-size: 15px; color: var(--text-3) !important; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tags span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); background: var(--bg-2); }

.mix-viz, .controller { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mix-viz svg, .controller svg { width: 100%; height: auto; display: block; }
.mix-viz .grid line { stroke: var(--line); stroke-dasharray: 4 6; }
.mix-viz text { fill: var(--text-3); font: 600 12px "Inter Tabular", sans-serif; letter-spacing: 0.12em; }
.controller .body { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.controller .jog circle { fill: none; stroke: var(--lilac); stroke-width: 7; }
.controller .jog .thin { stroke-width: 2; }
.controller .jog .dot { fill: var(--lilac); stroke: none; }
.controller .fader line { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.controller .fader rect { fill: var(--text-2); }
.controller .pads rect { fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.controller .pads .lit { fill: var(--lilac); stroke: var(--lilac); }
.controller .tags { justify-content: center; margin-top: 18px; }

/* Tools */
.tools { padding: 112px 0; border-bottom: 1px solid var(--line); }
.cards { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .15s; }
.card:hover { border-color: rgba(182, 156, 255, 0.5); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }

/* Prose / centre blocks */
.prose { padding: 112px 0; border-bottom: 1px solid var(--line); }
.prose p { color: var(--text-2); font-size: 18px; }
.center-block { padding: 112px 0; text-align: center; border-bottom: 1px solid var(--line); }
.center-block p { color: var(--text-2); }

/* Download */
.download { padding: 112px 0 120px; text-align: center; background: radial-gradient(700px 320px at 50% 0%, rgba(182, 156, 255, 0.12), transparent 70%); }
.download .sub { color: var(--text-2); font-size: 19px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px 0 28px; text-align: left; }
.dl-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dl-card.is-mine { border-color: var(--lilac); }
.dl-card h3 { font-size: 22px; margin-bottom: 6px; }
.dl-card p { color: var(--text-2); font-size: 15px; }
.dl-card .btn { margin: 8px 0 12px; }
.small { font-size: 14px; color: var(--text-3) !important; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-3); font-size: 15px; margin-top: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.fine { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.fine p { color: var(--text-3); font-size: 13px; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split-inner { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-text { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 64px; }
  .grid-4, .cards, .dl-grid { grid-template-columns: 1fr; }
  .steps, .split, .tools, .prose, .center-block, .download { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Docs and tutorials pages */
.page { padding: 72px 0 112px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc a { color: var(--text-2); font-size: 15px; }
.toc a:hover { color: var(--lilac); text-decoration: none; }
.toc-title { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 0 6px; }
.doc { max-width: 720px; }
.doc h2 { font-size: 28px; margin: 56px 0 14px; padding-top: 8px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--text); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
:not(pre) > code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px; }
kbd { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--text); }
table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
td { color: var(--text-2); }
.tut-cards { margin-bottom: 40px; }
.tut-cards .label { margin-left: 4px; }
.tut-cards .card p { margin-bottom: 16px; }
.soon { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); background: var(--lilac-dim); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; border-left: 0; padding-left: 0; }
  .toc-title { width: 100%; }
}
