/* Tokens are the desktop app's (cmd/qv-desktop/frontend/index.html): deep navy, violet, cyan, green. Dark first; light follows the OS. */
:root {
  color-scheme: dark;
  --bg: #0b1126; --glow-a: rgba(124,92,255,.24); --glow-b: rgba(34,211,238,.12); --dots: rgba(255,255,255,.05);
  --surface: rgba(255,255,255,.045); --surface-2: rgba(255,255,255,.08); --surface-3: rgba(255,255,255,.13);
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.17); --field: rgba(8,13,28,.55);
  --text: #eef1ff; --muted: #9aa5d1; --faint: #6e79a8;
  --accent: #7c5cff; --accent-2: #a78bfa; --cyan: #22d3ee; --ok: #34d399; --warn: #fbbf24; --bad: #fb7185;
  --av-l: 76%; --shadow: 0 30px 80px -20px rgba(0,0,0,.7); --win: #0e1530;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: light) { :root {
  color-scheme: light;
  --bg: #f4f5fc; --glow-a: rgba(124,92,255,.16); --glow-b: rgba(34,211,238,.14); --dots: rgba(20,26,58,.06);
  --surface: rgba(20,26,58,.04); --surface-2: rgba(20,26,58,.07); --surface-3: rgba(20,26,58,.11);
  --line: rgba(20,26,58,.1); --line-2: rgba(20,26,58,.2); --field: #fff;
  --text: #141a3a; --muted: #5a6490; --faint: #8b94b8;
  --accent: #6a45f0; --accent-2: #5b3bd6; --ok: #0f9f6e; --warn: #b7791f; --bad: #dc3f5a;
  --av-l: 34%; --shadow: 0 30px 70px -24px rgba(40,50,110,.35); --win: #fbfbff;
} }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); -webkit-font-smoothing: antialiased;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1000px 640px at 0% -5%, var(--glow-a), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, var(--glow-b), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::before { /* dot grid from the banner, faded out toward the bottom */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%);
}
::selection { background: rgba(124,92,255,.4); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.logo { width: 30px; height: 30px; flex: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); background: var(--surface); white-space: nowrap; }
code, .mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--surface-3); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c5cff, #5f7bff); box-shadow: 0 10px 28px -10px rgba(124,92,255,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.lg { padding: 14px 24px; font-size: 17px; border-radius: 13px; }
.btn small { font-weight: 500; opacity: .75; font-size: .82em; }
.btn[aria-disabled=true] { opacity: .45; pointer-events: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav nav a { color: var(--muted); font-weight: 550; } .nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 7px 14px; font-size: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 84px 0 70px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
h1 { margin: 20px 0 18px; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 30px; max-width: 34em; font-size: 19px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin: 18px 0 0; font-size: 13.5px; color: var(--faint); }
.meta code { color: var(--muted); }

/* the app, redrawn in CSS (decorative) */
.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: -8% -6%; background: radial-gradient(closest-side, rgba(124,92,255,.35), transparent); filter: blur(30px); z-index: -1; }
.win { border-radius: 18px; border: 1px solid var(--line-2); background: var(--win); box-shadow: var(--shadow); overflow: hidden; font-size: 12px; line-height: 1.4; animation: float 9s ease-in-out infinite; }
.win .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.win .bar i:nth-child(1) { background: #fb7185; } .win .bar i:nth-child(2) { background: #fbbf24; } .win .bar i:nth-child(3) { background: #34d399; }
.win .bar b { margin: 0 auto; font-weight: 600; color: var(--faint); font-size: 11.5px; transform: translateX(-24px); }
.win .body { display: grid; grid-template-columns: 188px 1fr; min-height: 340px; position: relative; }
.win aside { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.win .sb { margin: 10px 10px 6px; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 9px; background: var(--field); border: 1px solid var(--line); color: var(--faint); }
.win .sb .ico { width: 13px; height: 13px; }
.win .sb span { flex: 1; } .win .sb kbd { font-size: 9.5px; padding: 0 4px; }
.win .rows { padding: 4px 6px; display: grid; gap: 1px; }
.win .r { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 6px 7px; border-radius: 9px; }
.win .r b { display: block; font-weight: 600; font-size: 12px; white-space: nowrap; } .win .r small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .r.hi { background: var(--surface-2); }
.win .r.hi::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2.5px; border-radius: 3px; background: linear-gradient(var(--accent-2), var(--cyan)); }
.av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: hsl(var(--h) 85% var(--av-l)); background: hsl(var(--h) 70% 60% / .17); border: 1px solid hsl(var(--h) 70% 60% / .3); }
.av.lg { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; }
.h1 { --h: 262; } .h2 { --h: 190; } .h3 { --h: 152; } .h4 { --h: 36; } .h5 { --h: 340; }
.win .foot { margin-top: auto; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; display: flex; align-items: center; gap: 7px; }
.win .foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.win .pane { padding: 18px 20px; }
.win .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.win .ph b { display: block; font-size: 18px; letter-spacing: -.02em; } .win .ph small { color: var(--muted); }
.win .card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.win .f { display: grid; grid-template-columns: 66px 1fr; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.win .f:last-child { border-bottom: 0; }
.win .f label { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.win .f .mono { letter-spacing: .1em; }
.win .meter { display: flex; gap: 3px; margin-top: 5px; } .win .meter i { width: 18px; height: 3px; border-radius: 3px; background: var(--ok); }
.win h6 { margin: 16px 0 8px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.win .ver { display: flex; gap: 9px; align-items: center; padding: 3px 0; color: var(--muted); font-size: 11px; }
.win .ver i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--faint); } .win .ver.cur i { border-color: var(--accent-2); background: var(--accent-2); }
.win .ver em { font-style: normal; padding: 0 7px; border-radius: 99px; background: rgba(124,92,255,.2); color: var(--accent-2); font-size: 10px; }
.mock-toast { position: absolute; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 12px; background: #161e45; color: #eef1ff; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); opacity: 0; animation: toast 7s ease-in-out infinite 1.2s; }
.mock-toast .ico { color: var(--ok); width: 16px; height: 16px; } .mock-toast b { display: block; font-size: 12px; } .mock-toast small { color: #9aa5d1; font-size: 10.5px; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 8%, 62% { opacity: 1; transform: none; } 72%, 100% { opacity: 0; transform: translateY(6px); } }

/* sections */
section { padding: 72px 0; }
.eyebrow { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.sub { margin: 0 0 40px; max-width: 40em; color: var(--muted); font-size: 17.5px; }
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

.loop { padding: 8px 0 24px; }
.loop ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.loop li { padding: 24px 28px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.loop li:first-child { border-left: 0; }
.loop .keys { display: flex; gap: 6px; align-items: center; min-height: 28px; color: var(--muted); font-size: 13px; }
.loop kbd { font-size: 13px; padding: 2px 9px; }
.loop b { font-size: 17px; letter-spacing: -.01em; } .loop p { margin: 0; color: var(--muted); font-size: 14.5px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 24px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat .tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.feat .tile .ico { width: 22px; height: 22px; }
.feat h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; } .feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.c-violet { --c: var(--accent-2); } .c-cyan { --c: var(--cyan); } .c-green { --c: var(--ok); } .c-amber { --c: var(--warn); }

/* downloads */
.dl-group { margin-top: 44px; }
.dl-group > h3 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card.os { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card.os.rec { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 24px 60px -30px rgba(124,92,255,.6); }
.card.os.rec::after { content: "Recommended for you"; position: absolute; top: -11px; right: 18px; padding: 2px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7c5cff, #5f7bff); }
.head { display: flex; align-items: center; gap: 14px; }
.head .tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-2); background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.32); }
.head .tile .ico { width: 24px; height: 24px; }
.head h4 { margin: 0; font-size: 19px; letter-spacing: -.01em; } .req { margin: 0; color: var(--muted); font-size: 13.5px; }
.item { display: grid; gap: 7px; }
.item .btn { width: 100%; justify-content: space-between; }
.sha { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--faint); font: 11.5px var(--mono); cursor: pointer; text-align: left; }
.sha:hover { color: var(--muted); border-color: var(--line-2); } .sha span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sha .ico { width: 13px; height: 13px; }
.sha.done { color: var(--ok); border-color: var(--ok); }
.alt { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.alt .item { flex: 1; }
.alt .btn { padding: 7px 12px; font-size: 13px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.card.pk { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; } .steps li::marker { color: var(--accent-2); font-weight: 700; }
.pre { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); font: 13px/1.6 var(--mono); color: var(--muted); overflow-x: auto; white-space: pre; }
.pre b { color: var(--text); font-weight: 600; } .pre i { color: var(--faint); font-style: normal; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: middle; }
tr:first-child td { border-top: 0; }
td.n { color: var(--text); font-weight: 600; } td.n small { display: block; color: var(--faint); font-weight: 400; font-size: 12.5px; }
td.a { text-align: right; white-space: nowrap; }
td .item { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
td .btn { padding: 6px 12px; font-size: 13.5px; }
td .sha { width: auto; max-width: 128px; }

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.note { padding: 22px; font-size: 14.5px; color: var(--muted); } .note h4 { margin: 0 0 8px; color: var(--text); font-size: 16px; }
.note p { margin: 0 0 10px; } .note p:last-child { margin: 0; } .note .pre { font-size: 12px; padding: 10px 12px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .brand { font-size: 15px; color: var(--muted); } footer .logo { width: 24px; height: 24px; }
footer p { margin: 0; } footer .r { margin-left: auto; }

.rise { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .grid4, .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .two { grid-template-columns: minmax(0, 1fr); }
  .loop ol { grid-template-columns: 1fr; } .loop li { border-left: 0; border-top: 1px solid var(--line); } .loop li:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; } .nav nav { margin-left: auto; }
  .grid4, .notes { grid-template-columns: minmax(0, 1fr); }
  .win .body { grid-template-columns: 1fr; } .win aside { display: none; } .win .bar b { transform: none; }
  section { padding: 52px 0; } .lead { font-size: 17px; }
  td .sha { display: none; }
  footer .r { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .mock-toast { opacity: 1; } }
[hidden] { display: none !important; }
