@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #22d3ee;
}

:root {
  --bg: #05060a;
  --ink: #eef2f7;
  --muted: #9aa4b2;
  --faint: rgba(238, 242, 247, .38);
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(9, 11, 18, .62);
  --accent: #22d3ee;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
  transition: --accent .9s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 16ch; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The WebGL stage sits behind everything; sections scroll over it. */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 40%, transparent 30%, rgba(5, 6, 10, .55) 80%);
}
.no-webgl #world { display: none; }
.no-webgl body {
  background:
    radial-gradient(60% 50% at 75% 35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--bg);
}
main, .foot { position: relative; z-index: 2; }

.eyebrow {
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow-dot::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .7em;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
  vertical-align: .1em;
}
.lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 34rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: #04121a; background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, white 10%), 0 8px 40px -8px var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 10px 50px -6px var(--accent); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn-small { padding: .7em 1.1em; font-size: .7rem; }
.btn-large { padding: 1.1em 2.1em; font-size: .85rem; margin-top: 2rem; }
.btn-soon { cursor: default; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--accent), 0 0 40px -10px var(--accent); }
.btn-soon:hover { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 14px var(--gutter);
  transition: background .3s ease, backdrop-filter .3s ease;
}
.top.scrolled { background: rgba(5, 6, 10, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; margin-right: auto; }
.links { display: flex; gap: 1.8rem; }
.links a { font: 500 .7rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--ink); }
.sound {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  padding: .62em 1em; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.sound[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .bars i { background: var(--accent); animation: eq .9s ease-in-out infinite; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

/* Side progress dots */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 10; display: grid; gap: 14px; }
.dots a { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .3s, box-shadow .3s, transform .3s; }
.dots a.active { background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scale(1.3); }

/* Sections */
section { min-height: 100vh; min-height: 100svh; padding: 120px var(--gutter); display: flex; align-items: center; position: relative; }
.panel { max-width: 40rem; }
.how { justify-content: flex-end; }
.features { justify-content: flex-start; }
.download { justify-content: center; text-align: center; }
.panel-center { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.panel-center h2 { max-width: none; }

/* Hero */
.hero { padding-bottom: 180px; }
.hero-copy { max-width: 36rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.try {
  margin-top: 2.6rem; padding: 18px; max-width: 26rem;
  border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.try .eyebrow { margin-bottom: .9rem; }
.field { display: flex; align-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.field input { flex: 1; min-width: 0; padding: .8em 1em; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; outline: none; }
.field kbd { margin-right: .7em; padding: .2em .5em; border-radius: 6px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.styles button {
  cursor: pointer; padding: .55em .9em; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.styles button[aria-checked="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.hint { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* The karaoke line rendered over the stage, using Bduo's lyric styles. */
.stage-line {
  position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  padding: .28em .7em; border-radius: 14px;
  background: rgba(3, 4, 8, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: clamp(1.5rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25;
  text-align: center; pointer-events: none;
}
.stage-line:empty { display: none; }
.stage-line .w { display: inline-block; --p: 0%; }
.stage-line[data-style="sweep"] .w {
  color: transparent;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--faint) var(--p));
  -webkit-background-clip: text; background-clip: text;
}
.stage-line[data-style="sweep"] .w.sung,
.stage-line[data-style="sweep"] .w.on { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent)); }
.stage-line[data-style="spotlight"] .w { color: var(--faint); transition: color .12s, transform .12s, text-shadow .12s; }
.stage-line[data-style="spotlight"] .w.sung { color: var(--ink); }
.stage-line[data-style="spotlight"] .w.on { color: var(--accent); transform: translateY(-.04em) scale(1.08); text-shadow: 0 0 22px var(--accent); }
.stage-line[data-style="typewriter"] .w { opacity: 0; }
.stage-line[data-style="typewriter"] .w.sung { opacity: 1; }
.stage-line[data-style="typewriter"] .w.on { opacity: 1; color: var(--accent); clip-path: inset(-30% calc(100% - var(--p)) -30% 0); }

/* How it works */
.how .panel { padding: 36px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.steps { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.steps .num, .setup .num { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.steps h3 { margin: .7rem 0 .45rem; }
.steps p { color: var(--muted); font-size: .94rem; }

/* Studio screenshots: a tilted window that settles flat as it scrolls in. */
.studio { flex-direction: column; align-items: stretch; justify-content: center; background: linear-gradient(transparent, rgba(5, 6, 10, .82) 16%, rgba(5, 6, 10, .82) 84%, transparent); }
.studio-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.studio-head h2 { margin: 0 auto; }
.studio-head .lede { margin-left: auto; margin-right: auto; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2.4rem; }
.shots button {
  cursor: pointer; display: inline-flex; align-items: baseline; gap: .6em;
  padding: .7em 1.1em; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line); font: 600 .9rem/1 var(--sans);
}
.shots button span { font: 500 .66rem/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
.shots button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.window {
  width: 100%; max-width: 1080px; margin: 1.6rem auto 0; border-radius: 14px; overflow: hidden; background: #0f141f;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px var(--accent);
  transform: perspective(1800px) rotateX(10deg) scale(.94); transform-origin: 50% 0;
  opacity: .4; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), opacity 1.1s ease, box-shadow .6s ease;
}
.window.in { transform: none; opacity: 1; }
.chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0b0f17; border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.chrome span { margin-left: 10px; font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.window img { width: 100%; height: auto; transition: opacity .25s ease; }
.window img.swap { opacity: 0; }

/* Looks */
.looks { flex-direction: column; align-items: stretch; justify-content: center; background: linear-gradient(transparent, rgba(5, 6, 10, .82) 18%, rgba(5, 6, 10, .82) 82%, transparent); }
.looks-head { max-width: 42rem; }
.clips { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clip { margin: 0; }
.clip video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #0b0d14;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s ease, transform .4s ease;
}
.clip:hover video { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 18px 60px -20px var(--accent); }
.clip figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 12px 4px 0; font-size: .95rem;
}
.clip figcaption span { font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.note { margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }

/* Features */
.features .panel { max-width: 44rem; padding: 36px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.grid { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.grid h3 { margin-bottom: .45rem; }
.grid h3::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: .6em; vertical-align: .3em; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.grid p { color: var(--muted); font-size: .94rem; }

/* Download */
.download .panel { max-width: 46rem; padding: 48px 36px; border-radius: 28px; background: rgba(5, 6, 10, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); }
.setup { margin-top: 2.6rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; text-align: left; width: 100%; }
.setup ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.setup li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--muted); font-size: .95rem; }
.setup li b { color: var(--ink); font-weight: 600; }
.setup .num { padding-top: .35em; }
.setup dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .9rem; }
.setup dt { font: 500 .66rem/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.setup dd { margin: 0; color: var(--muted); }
.setup-single { grid-template-columns: 1fr; max-width: 30rem; }
.setup-single .eyebrow { margin-bottom: .4rem; }

.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; padding: 28px var(--gutter) 40px; font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot a { text-transform: none; letter-spacing: .06em; text-decoration: none; transition: color .2s; }
.foot a:hover, .foot a:focus-visible { color: var(--accent); }

@media (max-width: 960px) {
  .links { display: none; }
  .clips { grid-template-columns: 1fr 1fr; }
  .stage-line { position: static; transform: none; margin: 1.6rem 0 0; max-width: 100%; width: auto; text-align: left; display: inline-block; }
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: 72px; }
  .scrim { background: linear-gradient(rgba(5, 6, 10, .1) 0%, rgba(5, 6, 10, .5) 45%, rgba(5, 6, 10, .78) 100%); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: .6rem; padding: 12px 16px; }
  .sound .label { display: none; }
  .dots { display: none; }
  section { padding: 96px 16px; }
  .hero { padding-top: 46vh; }
  .how .panel, .features .panel, .download .panel { padding: 24px 20px; }
  .steps, .grid, .setup { grid-template-columns: 1fr; }
  .clips { grid-template-columns: 1fr; }
  .try { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .window { transform: none; opacity: 1; transition: none; }
  :root { transition: none; }
  .clip video { transition: none; }
}
