/* Remiqora landing page, in the style of docs/hero-poster.png: near-black page with soft purple / teal / magenta
   glows, a heavy tight Inter headline with one gradient word, pill labels, tilted window cards and a band of bars.
   Palette sampled from the poster. Contrast on --night: --paper 15.6:1, --soft 11.8:1, --mute 7.0:1, --violet 7.3:1,
   --edge (control borders) 3.9:1; dark button text on the brand gradient 4.9-5.3:1. Small muted text is never placed
   under the strongest glow (4.2:1 there), header links use --soft. */

/* Self-hosted variable Inter (SIL OFL, see fonts/OFL-Inter.txt): no requests to third-party servers. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --night: #0d0d13;
  --panel: #16161e;
  --panel-2: #1e1e28;
  --hairline: #2b2b38;   /* decorative dividers only */
  --edge: #6e6e84;       /* borders of controls and code blocks (3:1 or better) */
  --paper: #e6e6ee;
  --soft: #c9c9d6;
  --mute: #9a9aab;
  --violet: #c084fc;
  --violet-hi: #d8b4fe;
  --pink: #ec4899;
  --ok: #22c25d;
  --grad: linear-gradient(90deg, #b952e0, #de4bac);   /* the logo tile of the poster */
  /* stem colors: the same lane colors the editor uses */
  --vocals: #f97316;
  --drums: #ec4899;
  --bass: #06b6d4;
  --other: #a855f7;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --measure: 62ch;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; position: relative; isolation: isolate; overflow-x: clip; color: var(--paper); font: 400 1.0625rem/1.6 var(--body); }
/* the poster's glows: purple top right, teal bottom left, magenta under the cards */
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: min(1200px, 150vh); pointer-events: none;
  background:
    radial-gradient(60% 52% at 92% -6%, rgba(150, 82, 222, .36), transparent 70%),
    radial-gradient(40% 40% at -6% 58%, rgba(18, 150, 170, .15), transparent 72%),
    radial-gradient(46% 26% at 66% 70%, rgba(236, 72, 153, .16), transparent 76%); }
img, svg { max-width: 100%; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-hi); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 10; padding: 12px 18px; background: var(--violet); color: var(--night); font-weight: 600; border-radius: 0 0 8px 8px; text-decoration: none; }
.skip:focus { top: 0; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--paper); text-decoration: none; font: 700 1.4rem/1 var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 6px 24px rgba(185, 82, 224, .45); }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--soft); text-decoration: none; border-radius: 8px; }
.top nav a:hover { color: var(--paper); text-decoration: underline; }
.top nav a.lang { margin-left: 8px; color: var(--paper); border: 1px solid var(--edge); }

/* pills and dots */
.pills, .flow { list-style: none; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .045); color: var(--paper); font-size: .9375rem; font-weight: 500; line-height: 1.2; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #cfcfda; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 194, 93, .18); }
.dot--pink { background: var(--pink); box-shadow: 0 0 0 3px rgba(236, 72, 153, .2); }

/* hero */
.hero { position: relative; isolation: isolate; padding-top: clamp(8px, 1.5vw, 20px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero__grid { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
h1 { margin: 0; font: 800 clamp(2.5rem, 4.5vw, 4rem)/1 var(--display); letter-spacing: -.04em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .grad { background: none; color: CanvasText; } }
.lead { max-width: 44ch; margin: 24px 0 0; color: var(--soft); font-size: clamp(1.06rem, 1.5vw, 1.25rem); }
.nb { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--paper); font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--paper); color: var(--paper); }
.btn--primary { background: var(--grad); border-color: transparent; color: var(--night); box-shadow: 0 10px 34px -10px rgba(222, 75, 172, .7); }
.btn--primary:hover { border-color: transparent; color: var(--night); filter: brightness(1.1); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 36px; }
.flow li { position: relative; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; background: rgba(255, 255, 255, .045); font-size: .9375rem; font-weight: 500; }
.flow li:not(:last-child)::after { content: "\2192" / ""; position: absolute; right: -23px; top: 50%; transform: translateY(-52%); color: var(--violet); }
.tag { margin: 34px 0 0; color: var(--soft); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* hero cards: screenshots in window frames, tilted like the poster */
.hero__art { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(16px, 2.2vw, 30px) clamp(16px, 2.2vw, 28px); align-content: center; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; min-width: 0; perspective: 1800px; }
.card .win { width: 100%; transform: rotateY(-8deg) rotateX(2deg); transform-origin: 50% 50%; }
.card--daw { grid-column: 1 / -1; }
.card .pill { padding-block: 5px; }
.win { overflow: hidden; background: var(--panel); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; box-shadow: 0 46px 80px -34px rgba(112, 50, 196, .6), 0 20px 40px -24px rgba(0, 0, 0, .9); }
.win__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #12121a; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win__bar span { flex: 1; margin-right: 44px; text-align: center; color: var(--mute); font-size: .75rem; }
.win__body { position: relative; }
.win__body img.plain { display: block; width: 100%; height: auto; }
.crop { position: relative; }
.crop img { position: absolute; max-width: none; height: auto; display: block; }

/* the band of bars under the hero (real envelope of the demo track) */
.hero__bars { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(90px, 12vw, 180px); opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.hero__bars path { fill: none; stroke: url(#bars); stroke-width: 3.4; stroke-linecap: round; }

/* the board: one mixed signal splits into four stems (once, on load) */
.board { margin-top: clamp(-70px, -5vw, -24px); position: relative; }
.board__body { padding: 14px 16px 12px; }
.ruler { position: relative; height: 30px; margin-bottom: 12px; border-bottom: 1px solid var(--hairline); color: var(--mute); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tick { position: absolute; bottom: 8px; transform: translateX(-50%); white-space: nowrap; }
.tick::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 1px; height: 7px; background: var(--edge); }
.tick--start { transform: none; }
.tick--start::after { left: 0; }
.tick--end { transform: translateX(-100%); }
.tick--end::after { left: auto; right: 0; }
.lanes { --lh: 88px; --gap: 10px; display: flex; flex-direction: column; gap: var(--gap); }
.lane { --collapse: calc((1.5 - var(--i)) * (var(--lh) + var(--gap))); position: relative; height: var(--lh); overflow: hidden; background: rgba(255, 255, 255, .025); border: 1px solid var(--hairline); border-radius: 8px; }
.lane__wave { display: block; width: 100%; height: 100%; transition: opacity .25s ease; }
.lane__wave path { fill: none; stroke: var(--c); stroke-width: 3.6; stroke-linecap: round; }
.lane__label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; background: rgba(13, 13, 19, .86); border: 1px solid var(--edge); border-radius: 8px; color: var(--paper); font: 600 .9375rem/1 var(--body); cursor: pointer; }
.lane__label:hover { border-color: var(--paper); }
.lane__label[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
/* focusing one lane dims the other waveforms only; the label buttons stay fully legible */
.lanes.has-solo .lane:not(.is-solo) .lane__wave { opacity: .2; }
.board__cap { max-width: var(--measure); margin: 14px 0 0; color: var(--mute); font-size: .9375rem; }
@media (prefers-reduced-motion: no-preference) {
  /* fill-mode "backwards", not "both": a held end keyframe would override the dimming of unfocused lanes */
  .lane { animation: split 1.5s cubic-bezier(.16, .84, .3, 1) backwards; animation-delay: calc(.35s + var(--i) * 70ms); }
  @keyframes split { from { transform: translateY(var(--collapse)); opacity: .55; } to { transform: none; opacity: 1; } }
}

/* sections */
.section { position: relative; padding-top: clamp(48px, 6.5vw, 96px); }
h2 { margin: 0 0 28px; max-width: 22ch; font: 800 clamp(1.9rem, 3.8vw, 2.9rem)/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; }
h3 { margin: 0 0 8px; font: 700 1.2rem/1.25 var(--display); letter-spacing: -.01em; }
.section__lead { max-width: var(--measure); margin: -8px 0 32px; color: var(--soft); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.step { counter-increment: step; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0 clamp(12px, 2vw, 24px); align-content: start; padding-block: 28px 36px; border-top: 1px solid var(--hairline); }
.step__text { grid-column: 2; }
.step::before { content: counter(step); content: counter(step) / ""; width: fit-content; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 clamp(2.6rem, 4.4vw, 3.8rem)/1 var(--display); letter-spacing: -.04em; }
@media (forced-colors: active) { .step::before { background: none; color: CanvasText; } }
.step__text p { max-width: 44ch; margin: 0; color: var(--soft); }
.shot { margin: 0; }
.step .shot { grid-column: 1 / -1; margin-top: 24px; }
/* the editor step and the last one take the full width: text on the left, the wide shot (or a single line) on the right */
.step--wide, .step--last { grid-column: 1 / -1; grid-template-columns: 3.6rem minmax(0, .8fr) minmax(0, 1.6fr); }
.step--wide .shot { grid-column: 3; grid-row: 1; margin-top: 0; }
.step--last { align-items: baseline; padding-block: 24px; }
.step--last .step__text { display: contents; }
.step--last h3 { margin: 0; }
.frame { overflow: hidden; background: var(--panel); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; box-shadow: 0 36px 64px -36px rgba(112, 50, 196, .5); }
.plain { display: block; width: 100%; height: auto; }
figcaption { margin-top: 10px; color: var(--mute); font-size: .875rem; }
.card figcaption { margin-top: 0; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.editor__text p { max-width: 46ch; margin: 0; color: var(--soft); }
.editor__text h3 { margin-top: 36px; }
.desktop::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(40% 46% at 68% 40%, rgba(150, 82, 222, .16), transparent 70%); }
/* text on the left, the three facts on the right; the shots below */
.desktop__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.desktop__text > h2 { grid-column: 1 / -1; }
.desktop__text > p { grid-column: 1; }
.desktop__text > ul.plain { grid-column: 2; grid-row: 2 / span 5; }
.desktop__text p { max-width: 62ch; margin: 0; color: var(--soft); }
.desktop__text p + p, .desktop__text ul + p { margin-top: 20px; }
.desktop__text ul.plain { max-width: 62ch; margin: 0; }
.desktop__text .status { color: var(--mute); font-size: .9375rem; }
.desktop__text .actions { margin-top: 24px; }
.desktop__text .note { margin-top: 12px; color: var(--mute); font-size: .9375rem; }
.desktop__text .note a { display: inline-block; padding-block: 3px; }
.desktop__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 36px; }
.plain-list, ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 12px 0; border-top: 1px solid var(--hairline); color: var(--soft); }
ul.plain li:last-child { border-bottom: 1px solid var(--hairline); }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.code { min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 400 .9375rem/1.7 var(--mono); color: var(--paper); }
.copy { display: block; min-height: 44px; margin: 0 12px 12px auto; padding: 0 16px; background: var(--panel-2); border: 1px solid var(--edge); border-radius: 8px; color: var(--paper); font: 600 .9375rem/1 var(--body); cursor: pointer; }
.copy:hover { border-color: var(--paper); }
.note { margin: 12px 0 0; color: var(--mute); font-size: .9375rem; }
.more { margin: 24px 0 0; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

.foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6.5vw, 96px); padding-block: 32px 48px; color: var(--mute); }
.foot::before { content: ""; position: absolute; top: 0; left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); height: 1px; background: var(--hairline); }
.foot p { margin: 0; align-self: center; }
.foot p a { display: inline-block; padding-block: 3px; color: var(--paper); font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2.3rem, 9.6vw, 4.6rem); }
  .card .win { transform: none; }
  .board { margin-top: clamp(-40px, -4vw, -20px); }
}
@media (max-width: 860px) {
  .steps, .editor, .cols, .desktop__text, .desktop__shots { grid-template-columns: minmax(0, 1fr); }
  .step, .step--wide, .step--last { grid-template-columns: 3rem minmax(0, 1fr); }
  .desktop__text > ul.plain { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .step--wide .shot { grid-column: 1 / -1; grid-row: auto; margin-top: 20px; }
  .step--last { align-items: start; }
  .step--last .step__text { display: block; }
  .step--last h3 { margin: 0 0 8px; }
  .hero__art { grid-template-columns: minmax(0, 1fr); }
  .card--stems { display: none; }   /* the same panel comes right below, in step 2 */
  .lanes { --lh: 72px; }
  .lane__label { min-height: 44px; padding-inline: 12px; }
  .flow { gap: 12px 34px; }
  .flow li:not(:last-child)::after { right: -24px; }
}
