/* Layout: quiet, near-black, generous whitespace. The icon and wordmark carry
   the brand color; everything else is neutral. Single dark theme by choice. */
:root {
  color-scheme: dark;
  --bg:     #0b0c12;
  --panel:  #12131b;
  --line:   #23252f;
  --text:   #f2f3f6;
  --muted:  #9396a3;
  --faint:  #63667a;
  --accent: #7c6bff;
  --f-mark: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); font-weight: 500; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

body[data-mode="coming-soon"] [data-show="release"],
body[data-mode="release"] [data-show="coming-soon"],
[data-empty] { display: none !important; }

/* type */
.label { margin: 0 0 14px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.h2 { margin: 0; font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.lede { margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 52ch; }

.wordmark { font-family: var(--f-mark); font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: .01em; }
.wm-daw { color: #e6e8ee; }
.wm-forma { background: linear-gradient(90deg, #b04dff, #4f7dff 65%, #22d8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark--sm { font-size: .95rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9375rem; border: 1px solid var(--line); color: var(--text); background: transparent; transition: background .2s, border-color .2s; }
.btn:hover { border-color: #3a3d4a; }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: #ffffff; }
.btn--small { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9375rem; transition: color .2s; }
.link:hover { color: var(--text); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11, 12, 18, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* hero */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-block: clamp(64px, 10vw, 136px); }
.hero__copy { min-width: 0; }
.status-line { margin: 0 0 28px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.status-line > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.hero__wordmark { margin: 0; font-size: clamp(2.75rem, 8vw, 6rem); }
.hero__headline { margin: 28px 0 0; font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
.hero__tagline { margin: 10px 0 0; font-size: 1.125rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hero__mark { display: flex; justify-content: center; min-width: 0; }
.hero__icon { width: min(100%, 400px); height: auto; animation: fade 1s ease-out both; }
@keyframes fade { from { opacity: .2; transform: translateY(8px); } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__mark { order: -1; justify-content: flex-start; }
  .hero__icon { width: 140px; }
}

/* sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 40px; }
.statement { margin: 0; max-width: 22ch; font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.25rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }

.intent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.intent article { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.intent h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.intent p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .intent { grid-template-columns: 1fr; gap: 28px; } }

/* color lanes */
.lanes { margin: 0; border-radius: 12px; background: #1d1d1f; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.8); }
.themes { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.theme-btn { border: 0; background: transparent; color: var(--muted); font: 600 .875rem var(--f-body); padding: 8px 16px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.theme-btn:hover { color: var(--text); }
.theme-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lanes__svg .fx { transition: fill .5s ease, fill-opacity .5s ease; }
.palette { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 .8125rem var(--f-body); cursor: pointer; transition: background .2s, color .2s; }
.palette:hover { color: var(--text); }
.palette[aria-pressed="true"] { color: var(--text); background: var(--panel); border-color: var(--line); }
.palette__chips { display: flex; gap: 2px; }
.palette__chips i { width: 8px; height: 14px; border-radius: 2px; }
.lanes__stage { overflow-x: auto; }
.lanes__svg { display: block; width: 100%; min-width: 680px; height: auto; }
.lanes__svg .lane-c { transition: fill .6s ease, stroke .6s ease; }
.lanes__cap { padding: 10px 16px; border-top: 1px solid #141415; background: var(--panel); font-size: .8125rem; color: var(--faint); }

/* screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shot { margin: 0; min-width: 0; }
.shot--hero { grid-column: 1 / -1; }
.shot__frame { position: relative; aspect-ratio: var(--ratio, 16 / 10); max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; }
.shot__cap { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ph__inner { display: grid; justify-items: center; gap: 12px; padding: 16px; }
.ph__inner img { width: 40px; height: 40px; opacity: .9; }
.ph__inner span { font-size: .875rem; color: var(--faint); font-weight: 500; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* status */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > div { min-width: 0; }
.follow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stage h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.stage p { margin: 0; grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.stage__state { font-size: .8125rem; font-weight: 600; color: var(--faint); }
.stage--done .stage__state { color: var(--muted); }
.stage--active .stage__state { color: #3ddc97; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* release */
#release { display: grid; gap: 64px; }
.release__card { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.release__icon { width: clamp(88px, 12vw, 120px); height: auto; }
.release__body { min-width: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 18px 0 0; }
.specs dt { font-size: .75rem; font-weight: 600; color: var(--faint); }
.specs dd { margin: 2px 0 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dl { display: grid; gap: 6px; }
.dl small { font-size: .75rem; color: var(--faint); padding-left: 2px; }
.empty-note { color: var(--faint); font-size: .9375rem; margin: 0; }
.dev-note { font-size: .8125rem; color: #e3b56a; padding: 8px 12px; border: 1px dashed rgba(227, 181, 106, .45); border-radius: 8px; margin: 0; }
@media (max-width: 600px) { .release__card { grid-template-columns: 1fr; } }
.notes { max-width: 800px; }
.note { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.note__ver { font-weight: 700; font-variant-numeric: tabular-nums; }
.note__ver small { display: block; color: var(--faint); font-weight: 500; font-size: .8125rem; }
.note ul { margin: 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 560px) { .note { grid-template-columns: 1fr; gap: 6px; } }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot__inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__legal { font-size: .8125rem; line-height: 1.6; color: var(--muted); max-width: 92ch; }
.foot__copy { color: var(--text); font-weight: 600; margin-bottom: 10px !important; }
.foot__legal a, .lede a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.foot__legal a:hover, .lede a:hover { color: var(--text); text-decoration-color: currentColor; }
.foot__legal p { margin: 0 0 6px; }
@media (max-width: 720px) { .foot__inner { grid-template-columns: 1fr; gap: 16px; } .foot__legal { justify-self: start; text-align: left; } }

/* preview switch (remove via config before launch) */
.switch { position: fixed; z-index: 70; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.switch__btns { display: flex; gap: 2px; }
.switch button { border: 0; background: transparent; color: var(--muted); font: 600 .78rem var(--f-body); padding: 7px 11px; border-radius: 7px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* idea / features */
.lede--wide { max-width: 60ch; margin-top: 24px; }
.hero__by { margin: 6px 0 0; font-size: .9375rem; color: var(--faint); }
.hero__by a, .foot__copy a, .foot__links a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.hero__by a:hover, .foot__copy a:hover, .foot__links a:hover { color: var(--text); text-decoration-color: currentColor; }
.foot__links { margin: 0 0 14px !important; color: var(--muted); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.features__col { min-width: 0; }
.panel-shot { margin: 0 auto; max-width: 936px; }
.panel-shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.8); }
.panel-shot figcaption { margin-top: 12px; font-size: .8125rem; color: var(--faint); text-align: center; }
.feature-list { margin: 0; border-top: 1px solid var(--line); }
.feature-list div { display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature-list dt { font-weight: 700; }
.feature-list dd { margin: 0; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(23, 1fr); gap: 3px; margin-top: 32px; }
.swatches i { aspect-ratio: 1; border-radius: 2px; }
.swatches__cap { margin: 10px 0 0; font-size: .8125rem; color: var(--faint); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .feature-list div { grid-template-columns: 1fr; } .swatches { gap: 2px; } }

/* real screenshot viewer */
.see__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 .875rem var(--f-body); padding: 8px 16px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.popup { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.popup__label { font-size: .875rem; color: var(--muted); font-weight: 500; }
.popup__btn { display: inline-flex; align-items: center; gap: 12px; min-width: 150px; justify-content: space-between; padding: 6px 8px 6px 12px; border-radius: 7px; border: 1px solid rgba(255,255,255,.1); background: #2c2d33; color: var(--text); font: 500 .875rem -apple-system, BlinkMacSystemFont, var(--f-body); cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }
.popup__btn svg { color: var(--muted); }
.popup__menu { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); margin: 0; padding: 5px; list-style: none; min-width: 170px; border-radius: 9px; background: rgba(38, 38, 42, .97); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.55); backdrop-filter: blur(20px); font: 400 .875rem -apple-system, BlinkMacSystemFont, var(--f-body); }
.popup__menu li { position: relative; padding: 4px 12px 4px 26px; border-radius: 5px; color: #ececf0; cursor: default; outline: none; }
.popup__menu li[aria-selected="true"]::before { content: "\2713"; position: absolute; left: 9px; font-weight: 600; }
.popup__menu li.is-active { background: #2e6be6; color: #fff; }

.see { margin: 0; }
.see__frame { position: relative; display: block; aspect-ratio: 2560 / 1024; max-width: 100%; border-radius: 10px; overflow: hidden; background: #1d1d1f; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.8); cursor: zoom-in; }
.see__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.see__frame img.is-on { opacity: 1; }
.see__cap { margin-top: 12px; font-size: .8125rem; color: var(--faint); }
@media (max-width: 560px) { .popup__label { display: none; } }

.hero__by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero__by a.ig { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.hero__by a.ig:hover { color: var(--text); border-color: #3a3d4a; background: var(--panel); }
.foot__links a.ig-text { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.foot__links a.ig-text svg { width: 14px; height: 14px; }

.tester { margin-top: 28px; width: 100%; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tester h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.tester p { margin: 4px 0 16px; color: var(--muted); }

/* beta form */
.form { display: grid; gap: 14px; margin-top: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.field input { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 .9375rem var(--f-body); }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 107, 255, .25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form .btn:disabled { opacity: .6; cursor: default; }
.tester .form__msg { margin: 0; font-size: .875rem; color: #f08c7a; min-height: 0; }
.tester .form__msg:empty { display: none; }
#testDone h3 { margin: 0; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* compatibility */
.compat { border-top: 1px solid var(--line); max-width: 820px; }
.compat__row { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.compat__row > span { min-width: 0; }
.compat__head { padding: 10px 0; font-size: .8125rem; font-weight: 600; color: var(--faint); }
.compat__row:not(.compat__head) > span:first-child { font-weight: 700; }
.compat__row a { color: var(--muted); font-size: .875rem; margin-left: 8px; }
.compat__note { margin: 16px 0 0; color: var(--muted); font-size: .9375rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8125rem; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.badge--verified { color: #3ddc97; border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .08); }
.badge--experimental { color: #f2b84b; border-color: rgba(242, 184, 75, .4); background: rgba(242, 184, 75, .08); }
.lede a { color: inherit; }
.field select { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 .9375rem var(--f-body); }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 107, 255, .25); }
.field em { font-style: normal; font-weight: 500; color: var(--faint); }
.tester .field-hint { margin: -4px 0 0; font-size: .8125rem; color: var(--faint); }
.tester .compat-msg { margin: 6px 0 16px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; border: 1px solid var(--line); color: var(--muted); }
.tester .compat-msg--ok { color: #3ddc97; border-color: rgba(61, 220, 151, .35); }
.tester .compat-msg--exp { color: #f2b84b; border-color: rgba(242, 184, 75, .35); }
@media (max-width: 560px) { .compat__row { grid-template-columns: 1fr 1fr; } .compat__row > span:last-child { grid-column: 1 / -1; } .compat__head > span:last-child { display: none; } }

.compat__row small { display: block; font-size: .8125rem; color: var(--faint); font-weight: 400; margin-top: 2px; }
.badge--unsupported { color: #f08c7a; border-color: rgba(240, 140, 122, .4); background: rgba(240, 140, 122, .08); }
.before { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.tester .before__title { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.before ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9375rem; }
.before li + li { margin-top: 6px; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.step__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: .9375rem; margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); }
.step strong { color: var(--text); font-weight: 600; }
.light { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 18px 24px; border-radius: 14px; border: 1px solid rgba(61, 220, 151, .3); background: rgba(61, 220, 151, .06); }
.light__tag { flex: none; padding: 4px 12px; border-radius: 99px; background: #3ddc97; color: #06140d; font-weight: 700; font-size: .8125rem; }
.light p { margin: 0; flex: 1 1 320px; min-width: 0; color: var(--text); }
.tester .before strong { color: var(--text); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
