/* The download page — the Quanta family.
 *
 * Its own stylesheet, as before: someone arriving to install something should not wait on the
 * chat app's machinery. Quanta Geneva, the same tokens as app.css.
 *
 * Redesigned 2026-09-17 at the founder's request ("design this web page intelligently… a
 * carousel with depth… encasing all the apps"): a hero with the whole family on an orbit, then
 * the download cards, the one-account story, Quanta Sync in detail (carried over from the retired
 * quantacorelabs.ca/quantasync page), Elysium, Android, and release notes that fold to one line.
 */

@font-face {
  font-family: "Quanta Geneva";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/quanta-geneva.woff2") format("woff2");
}
@font-face {
  font-family: "Quanta Geneva Mono";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/quanta-geneva-mono.woff2") format("woff2");
}

:root {
  --bg: #05060a;
  --panel: rgba(14, 17, 29, .74);
  --raised: rgba(255, 255, 255, .045);
  --raised-hover: rgba(255, 255, 255, .085);
  --line: rgba(150, 160, 235, .14);
  --line-strong: rgba(150, 160, 235, .26);
  --text: #eef2f8;
  --text-bright: #ffffff;
  --muted: #9aa3bd;
  --faint: #737e95;
  --accent: #38bdf8;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --grad-text: linear-gradient(103deg, #22d3ee 0%, #8b5cf6 48%, #d946ef 94%);
  --wordmark: linear-gradient(100deg, #4338ca 0%, #22d3ee 30%, #e0f2fe 52%, #d946ef 78%, #f472b6 100%);
  --soon: #fbbf24;
  --good: #6ee7b7;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Quanta Geneva", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Quanta Geneva Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
body { min-height: 100dvh; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; }

/* ---------- sky ---------- */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aura { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aura::before, .aura::after, .aura i { content: ''; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .38; }
.aura::before { width: 620px; height: 620px; top: -220px; left: -160px; background: radial-gradient(circle, rgba(56,189,248,.5), transparent 68%); }
.aura::after  { width: 560px; height: 560px; top: 18%; right: -240px; background: radial-gradient(circle, rgba(168,85,247,.42), transparent 68%); }
.aura i       { width: 520px; height: 520px; bottom: -260px; left: 22%; background: radial-gradient(circle, rgba(99,102,241,.38), transparent 68%); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 3vw, 32px);
  background: rgba(5, 6, 10, .62); backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(150,160,235,.07);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(56,189,248,.45)); }
.wordmark {
  font-size: 15px; font-weight: 800; letter-spacing: .22em;
  background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bar-right { display: flex; align-items: center; gap: 4px; }
.bar-link { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 550; padding: 8px 12px; border-radius: 9px; }
.bar-link:hover { color: var(--text-bright); background: var(--raised); }
@media (max-width: 720px) { .bar-link { display: none; } }

/* ---------- shared type ---------- */
main { position: relative; z-index: 1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px) 72px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #a78bfa; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-weight: 500;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; flex: none; background: linear-gradient(90deg, #22d3ee, transparent); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 28px; height: 1px; flex: none; background: linear-gradient(270deg, #22d3ee, transparent); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.75; max-width: 64ch; margin: 14px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 18px; border-radius: 13px; font-size: 14.5px; font-weight: 650;
  border: 1px solid var(--line); background: var(--raised); color: var(--text);
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn:hover { background: var(--raised-hover); }
.btn.primary { background: var(--accent-gradient); border: none; color: #05070d; box-shadow: 0 10px 30px -8px rgba(56,189,248,.45); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(99,102,241,.6); }
.btn.ghost { background: rgba(255,255,255,.03); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: rgba(56,189,248,.5); transform: translateY(-2px); }
.bar .btn.ghost { padding: 8px 14px; font-size: 13.5px; margin-left: 6px; }
.btn.big { padding: 14px 24px; font-size: 15px; }
.btn.full { width: 100%; }

/* ================================================================== *
 * HERO + ORBIT
 * ================================================================== */
.hero {
  position: relative; text-align: center;
  padding: clamp(40px, 8vh, 84px) clamp(16px, 3vw, 28px) clamp(40px, 7vh, 72px);
  overflow: hidden;
}
.hero-copy { max-width: 820px; margin: 0 auto; }
.hero-copy .eyebrow { justify-content: center; }
.hero-copy .eyebrow::after { content: ''; width: 28px; height: 1px; flex: none; background: linear-gradient(270deg, #22d3ee, transparent); }
.hero h1 {
  font-size: clamp(38px, 6.6vw, 76px); font-weight: 760; line-height: 1.02; letter-spacing: -.035em;
  color: var(--text-bright); text-shadow: 0 0 70px rgba(139,92,246,.25);
}
.hero .lede { margin: 18px auto 0; text-align: center; max-width: 60ch; }

.orbit {
  position: relative; height: clamp(360px, 46vw, 520px); margin: clamp(18px, 3vw, 34px) auto 0;
  max-width: 1200px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.orbit.dragging { cursor: grabbing; }
/* A soft floor the orbit rests on: light pooled under the front card, fading to the back. */
.orbit-floor {
  position: absolute; left: 8%; right: 8%; bottom: 4%; height: 38%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 70%, rgba(56,189,248,.20), rgba(139,92,246,.10) 45%, transparent 72%);
  filter: blur(8px);
}
.orbit-stage { position: absolute; inset: 0; perspective: 1400px; }

.o-card {
  position: absolute; left: 50%; top: 46%;
  margin: 0; will-change: transform, filter, opacity;
  transform-origin: 50% 50%;
  border-radius: 18px; overflow: hidden;
  background: #070912; border: 1px solid rgba(160,175,255,.18);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  -webkit-box-reflect: below 10px linear-gradient(transparent 68%, rgba(255,255,255,.14));
}
.o-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.o-card.landscape { width: clamp(300px, 38vw, 540px); aspect-ratio: 16 / 10; }
.o-card.portrait  { width: clamp(150px, 15vw, 210px); aspect-ratio: 9 / 18.5; border-radius: 22px; }
.o-card.panel     { width: clamp(160px, 16vw, 220px); aspect-ratio: 520 / 900; }
.o-card.square    { width: clamp(190px, 20vw, 270px); aspect-ratio: 3 / 4; }
.o-card.art       { width: clamp(170px, 17vw, 236px); aspect-ratio: 720 / 1260; border-radius: 16px; }
/* the front card wears a thin light ring */
.o-card.is-front { border-color: rgba(125, 211, 252, .55); box-shadow: 0 34px 80px -24px rgba(0,0,0,.9), 0 0 42px -6px rgba(56,189,248,.35); }
.o-tag {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 9px;
  font: 600 11px/1 var(--font); letter-spacing: .02em; color: #e0f2fe;
  background: rgba(5,6,10,.72); border: 1px solid rgba(160,175,255,.2); backdrop-filter: blur(8px);
}

.orbit-caption { max-width: 640px; margin: 4px auto 0; min-height: 118px; }
.oc-kick { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #7dd3fc; }
.oc-name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 720; color: var(--text-bright); margin-top: 6px; letter-spacing: -.02em; }
.oc-line { color: var(--muted); margin: 8px auto 0; max-width: 54ch; font-size: 15px; }
.oc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.oc-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 99px; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); transition: width .35s var(--ease), background .35s;
}
.oc-dots button[aria-selected="true"] { width: 26px; background: var(--accent-gradient); }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-meta { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }

@media (max-width: 640px) {
  .orbit { height: 330px; }
  /* Every card was being painted twice — once for itself and once for its
     reflection — under a blur and a 3-D transform. That is the most expensive
     thing on this page and the least visible at this size. */
  /* `none` is REJECTED by the parser here and the declaration is dropped
     silently — measured in the page, not assumed. `unset` is what turns it off. */
  .o-card { -webkit-box-reflect: unset; }
  .o-card.landscape { width: 250px; }
  .o-card.portrait { width: 128px; }
  .o-card.panel { width: 138px; }
  .o-card.square { width: 160px; }
  .o-card.art { width: 140px; }
  .cta-row .btn { width: 100%; }
}

/* ================================================================== *
 * BANDS
 * ================================================================== */
.band { padding: clamp(46px, 7vw, 96px) 0 0; scroll-margin-top: 70px; }
.band-head { max-width: 760px; margin: 0 0 clamp(24px, 3.5vw, 40px); }
.band-head.center { margin-inline: auto; text-align: center; }
.band-head.center .lede { margin-inline: auto; }
.band h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 720; line-height: 1.08; color: var(--text-bright); }
.band h3 { font-size: 17px; font-weight: 680; color: var(--text-bright); letter-spacing: -.01em; }

/* ---------- download cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* An odd card out (five products since Quantalize, 2026-09-27) sits centred at a column's width, not stranded left. */
.grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
/* A section's own download button and its version line (Quantalize), centred like the hero's. */
.band > .cta-row + .hero-meta { text-align: center; }
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 13px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 22px 50px -18px rgba(0,0,0,.8); }
.card::before {
  content: ''; position: absolute; inset: -1px -1px auto -1px; height: 140px; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, rgba(56,189,248,.10), transparent 70%);
}
.head { display: flex; align-items: center; gap: 12px; }
.glyph {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--raised); border: 1px solid var(--line);
}
.glyph svg { width: 22px; height: 22px; }
.title { min-width: 0; flex: 1; }
.title h3 { font-size: 17px; }
.platform { font-size: 12px; color: var(--faint); margin-top: 2px; }
.pitch { color: var(--muted); font-size: 14px; margin: 0; }
.feats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.feats-list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--text); }
.feats-list li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-gradient); }
.action { margin-top: auto; padding-top: 6px; }
.action .btn { width: 100%; }
.btn.soon { background: rgba(251,191,36,.07); border-color: rgba(251,191,36,.34); color: var(--soon); cursor: default; }
.btn.soon:hover { background: rgba(251,191,36,.07); transform: none; }
.btn.testing { background: rgba(110,231,183,.07); border-color: rgba(110,231,183,.32); color: var(--good); cursor: default; }
.btn.testing:hover { transform: none; background: rgba(110,231,183,.07); }
.next, .meta { margin: 9px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.btn.second-dl { margin-top: 12px; }
.hero-meta a { color: var(--text-bright); text-decoration: underline; text-underline-offset: 3px; }
.btn.notes-link { margin-top: 10px; padding: 9px 14px; font-size: 13px; background: transparent; color: var(--muted); }
.btn.notes-link:hover { color: var(--text-bright); background: var(--raised); transform: none; }

/* ---------- one-account tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile, .tcard {
  background: linear-gradient(168deg, rgba(19,24,41,.75), rgba(9,11,19,.75));
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .35s var(--ease), border-color .3s;
}
.tile:hover, .tcard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile p, .tcard p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; line-height: 1.65; }
.tile-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.24);
}
.tile-ico svg { width: 20px; height: 20px; stroke: #7dd3fc; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- feature rows ---------- */
.feat {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3.5vw, 44px) 0;
}
.feat.flip .feat-media { order: 2; }
.feat-media {
  margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #070912;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.85), 0 0 60px -30px rgba(139,92,246,.45);
  transition: transform .6s var(--ease);
}
.feat:hover .feat-media { transform: translateY(-4px); }
.feat-media img { display: block; width: 100%; height: auto; }
.kick { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #a78bfa; margin: 0 0 10px; }
.feat-copy h3 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.2; margin-bottom: 12px; }
.feat-copy p { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0; }
.feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.feats li { position: relative; padding-left: 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.feats li::before {
  content: ''; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0b1020 38%, transparent 40%), var(--accent-gradient);
}
.feats b { color: var(--text); font-weight: 600; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(18px, 3vw, 30px); }

/* ---------- Elysium ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.gcell {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #070912;
  box-shadow: 0 26px 60px -26px rgba(0,0,0,.85);
}
.gcell img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gcell:hover img { transform: scale(1.03); }
.gcell.tall { grid-row: span 2; }
.gcell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; font-size: 13px; color: #e2e8f0;
  background: linear-gradient(0deg, rgba(5,6,10,.9), transparent);
}

/* ---------- Android rail ---------- */
.shot-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); background: #05060b; box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ---------- release notes ---------- */
.notes-list { display: grid; gap: 10px; }
.release {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  scroll-margin-top: 80px; transition: border-color .4s, box-shadow .4s;
}
.release[open] { border-color: var(--line-strong); }
.release.is-target { border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 3px rgba(56,189,248,.14); }
.release summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
}
.release summary::-webkit-details-marker { display: none; }
.release summary:hover { background: rgba(255,255,255,.025); }
.release-version {
  font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: 7px; flex: none;
  background: var(--raised); border: 1px solid var(--line); color: var(--text-bright);
}
.release-latest {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; flex: none;
  color: #bae6fd; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3);
}
.release-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 620; color: var(--text-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release[open] .release-title { white-space: normal; }
.release-date { font-size: 12.5px; color: var(--faint); flex: none; }
.release-chev { width: 16px; height: 16px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .3s var(--ease); }
.release[open] .release-chev { transform: rotate(180deg); }
.release-notes { margin: 0; padding: 2px 18px 16px 18px; list-style: none; display: grid; gap: 8px; }
.release-notes li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.release-notes li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gradient); }
.notes-more { margin: 14px auto 0; display: flex; }

.closing { text-align: center; }
.closing .lede { margin-inline: auto; }
.foot { text-align: center; margin: 44px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tiles, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .grid > .card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .feat { grid-template-columns: 1fr; }
  .feat.flip .feat-media { order: 0; }
}
@media (max-width: 560px) {
  .tiles, .trust { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gcell.tall { grid-row: auto; }
  .release summary { flex-wrap: wrap; row-gap: 6px; }
  .release-title { flex-basis: 100%; order: 5; white-space: normal; }
  .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .tile, .tcard, .feat-media, .gcell img, .btn { transition: none; }
}

/* Moving between the site's own pages cross-fades (see app.css). Not under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
