/* Mixpoint landing page. Colors come from the app's timeline
   (src/timeline/render/worker.ts, waveform.ts). */

/* Geist and Geist Mono (variable, SIL OFL 1.1, from Fontsource), served
   from this site: no request goes to a font service. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --panel-2: #181818;
  --line: #262626;
  --text: #ededed;
  --muted: #9a9a9a;
  --low: #2f6bff;
  --mid: #f2a33a;
  --high: #f5f5f5;
  --tempo: #e879f9;
  --vocal: #f472b6;
  --good: #22c55e;
  --clash: #ef4444;
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.draft-bar {
  background: #2a1d05; color: var(--mid);
  font: 500 13px/1 'Geist Mono', monospace;
  text-align: center; padding: 8px 16px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--mid); color: #160f02;
  font: 600 16px 'Geist', sans-serif; text-decoration: none; cursor: pointer;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.fine { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.play-link { color: var(--text); font-weight: 500; text-decoration: none; }
.play-link:hover { color: var(--mid); }
.eyebrow { color: var(--mid); font: 500 13px/1 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }

section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; scroll-margin-top: 40px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* 1. Hero */
.hero { padding-top: 64px; display: grid; gap: 48px; }
.hero-copy { max-width: 780px; }
.hero .lead { color: var(--muted); font-size: 20px; margin: 22px 0 30px; max-width: 640px; }
.hero .fine { margin-top: 14px; }
.hero-shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: 0 40px 120px -40px rgba(47, 107, 255, .35); }
.hero-shot canvas, .player canvas { display: block; width: 100%; height: auto; }

/* 2. Transition player */
.demo { padding-top: 48px; }
.player { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.play {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--mid); display: grid; place-items: center; flex: none;
}
.play svg { width: 24px; height: 24px; fill: #160f02; }
.play .i-pause, .play.playing .i-play { display: none; }
.play.playing .i-pause { display: inline; }
.toggle { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 15px 'Geist', sans-serif; padding: 9px 14px; border-radius: 7px;
}
.toggle button[aria-checked="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.toggle button[data-mode="on"][aria-checked="true"] { color: var(--mid); }
.player-note { color: var(--muted); font-size: 15px; flex: 1; min-width: 220px; }
.time { font: 500 14px 'Geist Mono', monospace; color: var(--muted); }
.demo > .fine { margin-top: 14px; }

/* 3. Workflow */
.flow { padding-top: 24px; padding-bottom: 24px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: step; }
.flow li { padding: 22px 20px; border-left: 1px solid var(--line); counter-increment: step; }
.flow li:first-child { border-left: 0; }
.flow li::before { content: "0" counter(step); display: block; font: 500 12px 'Geist Mono', monospace; color: var(--mid); margin-bottom: 10px; }
.flow b { display: block; font-size: 18px; font-weight: 600; }
.flow span { color: var(--muted); font-size: 14px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 18px; }
.feature-copy b { color: var(--text); font-weight: 600; }
.mock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; }
.mock-title { font-weight: 600; margin-bottom: 14px; }

.export ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.export li { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.export li b { font-weight: 500; font-size: 15px; }
.export li em { grid-column: 2; font-style: normal; color: var(--muted); font: 400 13px 'Geist Mono', monospace; }
.export .dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--good); }
.export li.off { opacity: .55; }
.export li.off .dot { background: var(--line); }
.mock-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: 14px; }

.lanes { display: grid; gap: 8px; }
.lane { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; }
.lane span { color: var(--muted); font: 500 13px 'Geist Mono', monospace; }
.lane svg { width: 100%; height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.lane path { fill: none; stroke: var(--low); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.lane:nth-child(2) path { stroke: var(--mid); }
.lane:nth-child(3) path { stroke: var(--high); }
.lane path.f { stroke: #38bdf8; }
.lane path.e { stroke: var(--tempo); }

/* 5. Cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid article { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; }
.grid article p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card-art { height: 110px; margin-bottom: 18px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; }
.camelot span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 14px 'Geist Mono', monospace; background: #0f2a17; color: var(--good); border: 1px solid #1f5130; }
.camelot span:nth-child(2) { background: #1d2a0d; color: #a3e635; border-color: #3d5a14; }
.energy { align-items: flex-end; }
.energy i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--mid), #7a4a0c); }
.vocals { flex-direction: column; align-items: stretch; gap: 10px; position: relative; }
.vocals i { height: 14px; border-radius: 4px; background: var(--vocal); opacity: .8; }
.vocals i:first-child { margin-right: 40%; }
.vocals i:nth-child(2) { margin-left: 45%; }
.vocals b { position: absolute; left: 45%; right: 40%; top: 12px; bottom: 12px; border: 2px solid var(--clash); border-radius: 6px; }
.next { flex-direction: column; align-items: stretch; gap: 6px; }
.next span { font: 500 13px 'Geist Mono', monospace; padding: 5px 10px; border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.next span:first-child { color: var(--text); box-shadow: inset 3px 0 0 var(--good); }

/* 7. Perform */
.decks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 28px; }
.deck { display: flex; align-items: center; gap: 22px; justify-content: center; }
.jog { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #1d1d1d 0 38%, #0d0d0d 39% 100%); border: 2px solid var(--line); position: relative; flex: none; }
.jog i { position: absolute; left: 50%; top: 8px; width: 3px; height: 26px; margin-left: -1.5px; background: var(--mid); border-radius: 2px; }
.jog.spin { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.deck-info { display: grid; gap: 6px; }
.deck-info span { color: var(--muted); font: 500 14px 'Geist Mono', monospace; }
.deck-info .sync { width: max-content; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.deck-info .sync.on { color: var(--mid); border-color: var(--mid); }
.mixer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-content: center; padding: 0 22px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.knobs { display: grid; gap: 12px; justify-items: center; }
.knobs i { width: 34px; height: 34px; border-radius: 50%; background: #1f1f1f; border: 1px solid #333; position: relative; transform: rotate(var(--r)); }
.knobs i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 11px; margin-left: -1px; background: var(--text); }
.knobs i.guide { box-shadow: 0 0 0 3px rgba(242, 163, 58, .35); }
.knobs i.guide::after { background: var(--mid); }
.xfader { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); position: relative; }
.xfader i { position: absolute; left: 58%; top: -7px; width: 14px; height: 22px; border-radius: 3px; background: #d4d4d4; }
.mixer p { grid-column: 1 / -1; color: var(--mid); font: 500 12px 'Geist Mono', monospace; text-align: center; max-width: 160px; }

/* 8. FAQ */
.faq > * { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 550; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 680px; }

/* 9. Closing */
.closing { text-align: center; display: grid; justify-items: center; gap: 18px; padding-bottom: 120px; }
.closing > p:not(.fine) { color: var(--muted); font-size: 18px; }

.footer { max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a[aria-current="page"] { color: var(--text); }

.faq details p a { color: var(--text); }
.nav nav a[aria-current="page"] { color: var(--text); }

/* Performance page */
.perf-hero { padding-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 48px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; display: grid; gap: 8px; align-content: start; }
.stat b { font-size: clamp(36px, 4vw, 52px); font-weight: 650; letter-spacing: -0.03em; line-height: 1; color: var(--mid); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }
.threads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.threads div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; display: grid; gap: 8px; align-content: start; }
.threads b { font-weight: 600; }
.threads b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--low); margin-right: 10px; vertical-align: 2px; }
.threads span { color: var(--muted); font-size: 15px; }
.metrics h3 { margin: 40px 0 12px; font-size: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.metrics table { width: 100%; border-collapse: collapse; font-size: 15px; }
.metrics th { text-align: left; font: 500 12px 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.metrics td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.metrics tr:last-child td { border-bottom: 0; }
.metrics td:nth-child(1) { width: 38%; }
.metrics td:nth-child(2) { width: 24%; font-family: 'Geist Mono', monospace; font-size: 14px; color: var(--text); }
.metrics td:nth-child(3) { color: var(--muted); }
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.limits li { padding: 16px 20px; border-left: 3px solid var(--mid); background: var(--panel); border-radius: 0 10px 10px 0; color: var(--muted); }
.limits li b { color: var(--text); font-weight: 600; }
.method { max-width: var(--max); }
.method > * { max-width: 820px; }
.method h2 { margin-bottom: 18px; }
.method p:not(.fine) { color: var(--muted); font-size: 17px; margin-bottom: 14px; }

/* Legal pages (privacy, imprint) */
.legal { max-width: 820px; padding-top: 64px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal b, .legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.legal dt { color: var(--text); font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
.legal .table-wrap { margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th { text-align: left; font: 500 12px 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.legal td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { color: var(--text); }
.notice { margin-bottom: 28px; padding: 16px 20px; border-left: 3px solid var(--mid); background: #2a1d05; border-radius: 0 10px 10px 0; color: var(--text); }
.todo { color: var(--mid); background: #2a1d05; border-radius: 4px; padding: 1px 6px; font: 500 0.9em 'Geist Mono', monospace; }

/* Narrow screens */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .decks { grid-template-columns: 1fr; }
  .mixer { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; justify-items: center; }
  .mixer p { max-width: none; }
  .stats, .threads { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 16px; }
  .nav { padding: 12px 16px; gap: 12px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 36px; gap: 32px; }
  .hero .lead { font-size: 18px; }
  .flow ol { grid-template-columns: 1fr; }
  .flow li { border-left: 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; }
  .flow li:first-child { border-top: 0; }
  .flow li::before { margin: 0; }
  .flow b { display: inline; font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .stats, .threads { grid-template-columns: 1fr; }
  .metrics table, .legal table { min-width: 560px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .jog { width: 110px; height: 110px; }
  .footer { flex-direction: column; padding: 24px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jog.spin { animation: none; }
}
