/* Polyptych — visual system
   Near-black canvas, hairline borders, one typeface at restrained weights,
   product UI as the illustration, colour used only where it carries meaning. */

@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JB Mono";
  src: url("/assets/fonts/jbmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #08090a;
  --bg-2: #0d0e10;
  --card: #111214;
  --card-2: #16171a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f7f8f8;
  --text-2: #d0d3d8;
  --muted: #8a8f98;
  --faint: #5c6068;
  --gold: #f2b54b;
  --c1: #f2706a;
  --c2: #3ccfb4;
  --c3: #9d8cff;
  --c4: #f2b54b;
  --blue: #6b8cff;
  --maxw: 1120px;
  --sans: "Inter Var", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JB Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 560; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.028em; }
h3 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.012em; }
.dim { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  font: 500 11px var(--sans); color: var(--text-2);
  background: linear-gradient(180deg, #202126, #17181b);
  border: 1px solid var(--line-2); border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
code { font: 0.86em var(--mono); color: var(--text-2); background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------------- nav: floating capsule ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav-bar {
  width: min(var(--maxw), 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  height: 52px; padding: 0 8px 0 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(14, 15, 17, 0.72);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
@media (max-width: 820px) { .nav { display: none; } .nav-bar .btn { margin-left: auto; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  font: 500 14px var(--sans); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #ffffff, #e6e7ea); color: #08090a; border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 20px -8px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background: #fff; border-color: transparent; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:not(.btn-primary):hover { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn .sub { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.btn-primary .sub { color: #5c6068; }
.soon { font: 500 10.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line-2); }
.btn-primary .soon { color: #6b6f77; border-left-color: rgba(0, 0, 0, 0.12); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.link-arrow:hover { color: var(--text); }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.15s; }
.link-arrow:hover svg { transform: translateX(2px); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 500 11px var(--sans); color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.tag-preview { color: var(--c3); background: rgba(157, 140, 255, 0.08); border-color: rgba(157, 140, 255, 0.2); }
.tag-here { color: var(--gold); background: rgba(242, 181, 75, 0.08); border-color: rgba(242, 181, 75, 0.22); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 112px 0 0; }
.hero-glow { position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; overflow: hidden; }
.hero-glow::before {
  content: ""; position: absolute; left: 50%; top: -380px; width: 1300px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(107, 140, 255, 0.13), transparent 70%);
}
.hero-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero h1 { max-width: 820px; }
.hero-sub { margin: 22px 0 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.hero-aside { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding-bottom: 8px; }
.hero-aside b { color: var(--text); font-weight: 500; }
.cta { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-meta { margin: 0; font: 400 12px var(--mono); color: var(--faint); letter-spacing: 0.01em; }
.cta-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cta-meta a:hover { color: var(--text); }
.center .cta { align-items: center; }
@media (max-width: 760px) { .hero-top { grid-template-columns: 1fr; } .hero-aside { display: none; } }

/* ---------------- app window mock ---------------- */
.stage { position: relative; margin-top: 72px; }
.stage::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -2px; height: 220px; background: linear-gradient(180deg, transparent, var(--bg) 85%); pointer-events: none; }
.app {
  position: relative;
  display: grid; grid-template-columns: 232px 1fr;
  border-radius: 14px; overflow: hidden;
  background: #0e0f11;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 -20px 80px -40px rgba(107, 140, 255, 0.25);
  font-size: 12.5px; color: var(--text-2);
  user-select: none;
}
.app-side { border-right: 1px solid var(--line); background: #0b0c0d; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.lights { display: flex; gap: 7px; padding: 4px 6px 14px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3b3f; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.search { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; margin-bottom: 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--faint); }
.search kbd { margin-left: auto; height: 18px; min-width: 18px; font-size: 10px; }
.side-label { padding: 12px 8px 6px; font-size: 11px; color: var(--faint); font-weight: 500; }
.host { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--text-2); }
.host svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.host .meta { margin-left: auto; font-size: 10.5px; color: var(--faint); }
.host.active { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.host.active svg { color: var(--text); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 3px rgba(60, 207, 180, 0.15); }
.dot.off { background: var(--faint); box-shadow: none; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.toolbar .title { color: var(--text); font-weight: 500; }
.toolbar .title small { color: var(--faint); font-weight: 400; margin-left: 6px; font-size: 11.5px; }
.toolbar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.live { color: var(--c2); border-color: rgba(60, 207, 180, 0.22); background: rgba(60, 207, 180, 0.06); }
.pill.rec { color: var(--c1); }
.pill.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c1); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.avatars { display: flex; }
.avatars b { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; border: 2px solid #0e0f11; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #0b0c0d; }
.tb-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); }
.tb-btn svg { width: 15px; height: 15px; }
.tb-btn:hover { background: rgba(255, 255, 255, 0.05); }

/* the remote desktop inside the window */
.remote { position: relative; flex: 1; aspect-ratio: 16 / 9.4; margin: 12px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(80, 98, 190, 0.55), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(170, 96, 40, 0.5), transparent 60%),
    linear-gradient(160deg, #182046, #24163a 60%, #2b1a22);
}
.r-menubar { display: flex; gap: 14px; align-items: center; height: 22px; padding: 0 12px; background: rgba(8, 9, 12, 0.5); backdrop-filter: blur(8px); font-size: 10.5px; color: rgba(255, 255, 255, 0.85); }
.r-menubar b { font-weight: 600; }
.r-menubar span:last-child { margin-left: auto; color: rgba(255, 255, 255, 0.6); }
.r-win { position: absolute; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); }
.r-win .bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; }
.r-win .bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.r-win .bar span { margin-left: 8px; font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.r-editor { left: 5%; top: 12%; width: 58%; height: 70%; background: #121318; }
.r-editor .bar { background: #17181e; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.code { padding: 10px 0; font: 10.5px/1.75 var(--mono); color: #9aa0ab; }
.code div { padding: 0 12px; white-space: nowrap; overflow: hidden; }
.code div.hl { background: rgba(107, 140, 255, 0.1); box-shadow: inset 2px 0 0 var(--blue); }
.code .n { display: inline-block; width: 22px; color: #4a4e57; }
.k { color: #c89bff; } .s { color: #8fd6a8; } .f { color: #7cb3ff; } .c { color: #5c616b; } .t { color: #f2c27a; }
.r-term { right: 4%; top: 30%; width: 38%; height: 54%; background: rgba(12, 13, 16, 0.92); }
.r-term .bar { background: rgba(255, 255, 255, 0.04); }
.term { padding: 9px 11px; font: 10px/1.7 var(--mono); color: #9aa0ab; }
.term .ok { color: var(--c2); } .term .p { color: var(--gold); }
.r-dock { position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 7px; border-radius: 11px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); }
.r-dock i { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(180deg, #e9ebf0, #b9bdc7); }
.r-dock i:nth-child(2) { background: linear-gradient(180deg, #6b8cff, #3c5bd6); }
.r-dock i:nth-child(3) { background: linear-gradient(180deg, #3a3d46, #1c1e24); }
.r-dock i:nth-child(4) { background: linear-gradient(180deg, #ffcf7a, #e0952c); }
.r-dock i:nth-child(5) { background: linear-gradient(180deg, #5fe0c6, #23a58e); }

.cursor { position: absolute; z-index: 5; display: flex; align-items: flex-start; pointer-events: none; will-change: transform; }
.cursor svg { width: 16px; height: 16px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
.cursor span { margin: 13px 0 0 -2px; padding: 2px 6px; border-radius: 5px; font: 600 10px/1.4 var(--sans); color: #0b0c0d; white-space: nowrap; }
.cursor.c1 path { fill: var(--c1); } .cursor.c1 span { background: var(--c1); }
.cursor.c2 path { fill: var(--c2); } .cursor.c2 span { background: var(--c2); }
.cursor.c3 path { fill: var(--c3); } .cursor.c3 span { background: var(--c3); }
.cursor.c4 path { fill: var(--c4); } .cursor.c4 span { background: var(--c4); }
.m1 { animation: m1 11s ease-in-out infinite; }
.m2 { animation: m2 13s ease-in-out infinite; }
.m3 { animation: m3 12s ease-in-out infinite; }
@keyframes m1 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(70px, 26px); } 55% { transform: translate(30px, 70px); } 80% { transform: translate(-20px, 30px); } }
@keyframes m2 { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-90px, -30px); } 65% { transform: translate(-40px, 40px); } }
@keyframes m3 { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(60px, -60px); } 70% { transform: translate(120px, -10px); } }

.stats { position: absolute; right: 12px; top: 32px; z-index: 6; width: 168px; padding: 9px 10px; border-radius: 9px; background: rgba(10, 11, 13, 0.82); border: 1px solid var(--line-2); backdrop-filter: blur(12px); font: 10px/1.6 var(--mono); color: var(--muted); }
.stats div { display: flex; justify-content: space-between; }
.stats b { color: var(--text); font-weight: 400; }
.stats svg { margin-top: 6px; width: 100%; height: 26px; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .toolbar .hide-sm { display: none; }
  .stats { display: none; }
}

/* ---------------- platform row ---------------- */
.platforms-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding: 44px 0 20px; color: var(--muted); }
.platforms-row span { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 550; letter-spacing: -0.015em; color: #c2c6cd; }
.platforms-row svg { width: 20px; height: 20px; }
.row-caption { font: 11px var(--mono); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------------- sections ---------------- */
section { padding: 128px 0; position: relative; }
.rule { border-top: 1px solid var(--line); }
.statement { font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.18; letter-spacing: -0.026em; font-weight: 520; max-width: 960px; margin: 0; }
.statement .dim { color: #6b7079; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split p { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 480px; margin: 6px 0 18px; }
.split p strong { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }
.label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 11.5px var(--mono); color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent, var(--gold)); }

/* three pillars with line figures */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.pillar { padding: 24px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.fig-label { font: 10.5px var(--mono); color: var(--faint); letter-spacing: 0.08em; }
.fig { height: 220px; display: grid; place-items: center; margin: 12px 0 28px; }
.fig svg { width: 210px; height: 200px; overflow: visible; }
.fig svg * { vector-effect: non-scaling-stroke; }
.pillar h3 { color: var(--text); margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 300px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* feature blocks */
.feature { padding: 120px 0 0; }
.feature-head { margin-bottom: 56px; }
.panel {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #101113, #0b0c0d);
}
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent, #6b8cff) 14%, transparent), transparent 70%); }
.panel-grid { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 420px; }
.panel-grid > * { position: relative; }
.panel-art { padding: 36px; display: grid; place-items: center; border-right: 1px solid var(--line); }
.panel-notes { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.note h4 { font-size: 14px; font-weight: 550; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.note p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.how { margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.how .mono { color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.how p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } .panel-art { border-right: 0; border-bottom: 1px solid var(--line); } }

/* art: multiplayer canvas */
.canvas { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px, #0c0d0f; overflow: hidden; }
.who { position: absolute; top: 12px; right: 12px; width: 180px; padding: 6px; border-radius: 10px; background: rgba(17, 18, 20, 0.92); border: 1px solid var(--line-2); font-size: 11.5px; }
.who-h { display: flex; justify-content: space-between; padding: 4px 6px 6px; color: var(--faint); font-size: 10.5px; }
.who-r { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; color: var(--text-2); }
.who-r i { width: 8px; height: 8px; border-radius: 50%; }
.who-r small { margin-left: auto; color: var(--faint); font-size: 10px; }
.shape { position: absolute; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.shape.sel { border-color: var(--c2); box-shadow: 0 0 0 3px rgba(60, 207, 180, 0.12); }
.shape.sel::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: var(--c2); border-radius: 2px; }

/* art: performance graph */
.perf { width: 100%; max-width: 540px; }
.perf-top { display: flex; gap: 28px; margin-bottom: 22px; }
.perf-top div { display: flex; flex-direction: column; }
.perf-top b { font-size: 32px; font-weight: 520; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.perf-top span { font: 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.perf-chart { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perf-chart svg { width: 100%; height: 200px; }
.perf-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.perf-legend span { display: inline-flex; align-items: center; gap: 7px; }
.perf-legend i { width: 14px; height: 2px; border-radius: 2px; }

/* art: trust sheet */
.sheet { width: 100%; max-width: 380px; border-radius: 14px; border: 1px solid var(--line-2); background: #131416; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); overflow: hidden; }
.sheet-h { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.sheet-h .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(60, 207, 180, 0.08); border: 1px solid rgba(60, 207, 180, 0.2); color: var(--c2); }
.sheet-h .ico svg { width: 18px; height: 18px; }
.sheet-h b { display: block; color: var(--text); font-weight: 550; font-size: 13.5px; }
.sheet-h small { color: var(--muted); font-size: 12px; }
.kv { padding: 6px 16px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.kv div:last-child { border-bottom: 0; }
.kv b { color: var(--text-2); font-weight: 450; text-align: right; }
.kv .fp { font: 10.5px var(--mono); color: var(--c2); }
.sheet-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.sheet-f span { height: 28px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 12px; border: 1px solid var(--line-2); color: var(--text-2); }
.sheet-f span.ok { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 500; }

/* art: phone in landscape */
.phone { position: relative; width: 100%; max-width: 560px; aspect-ratio: 2.05 / 1; border-radius: 34px; padding: 10px; background: linear-gradient(145deg, #2a2b2f, #141518); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.phone-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background:
  radial-gradient(70% 90% at 15% 0%, rgba(80, 98, 190, 0.55), transparent 60%),
  radial-gradient(60% 80% at 100% 100%, rgba(170, 96, 40, 0.5), transparent 60%), linear-gradient(160deg, #182046, #24163a); }
.phone-screen .r-win { left: 8%; top: 12%; width: 50%; height: 50%; background: #121318; }
.keyrow { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 5px; justify-content: center; padding: 8px; background: rgba(20, 21, 24, 0.88); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.keyrow kbd { height: 24px; font-size: 10.5px; min-width: 26px; }
.keyrow kbd.on { color: var(--gold); border-color: rgba(242, 181, 75, 0.45); background: rgba(242, 181, 75, 0.1); }
.floatbar { position: absolute; top: 14%; right: 6%; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(20, 21, 24, 0.85); border: 1px solid var(--line-2); }
.floatbar i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); }
.floatbar i svg { width: 14px; height: 14px; }
.floatbar i.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.touch { position: absolute; left: 30%; top: 38%; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); border: 2px solid rgba(255, 255, 255, 0.85); animation: tap 2.8s ease-in-out infinite; }
@keyframes tap { 0%, 55%, 100% { transform: scale(0.5); opacity: 0; } 65% { transform: scale(1); opacity: 1; } 85% { transform: scale(1.5); opacity: 0; } }

/* art: library list */
.lib { width: 100%; max-width: 440px; border-radius: 12px; border: 1px solid var(--line-2); background: #111214; overflow: hidden; }
.lib-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.lib-tabs span { padding: 4px 10px; border-radius: 7px; font-size: 11.5px; color: var(--muted); }
.lib-tabs span.on { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lib-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.lib-row:last-child { border-bottom: 0; }
.thumb { position: relative; width: 64px; aspect-ratio: 16 / 10; border-radius: 6px; flex: none; border: 1px solid var(--line); background: radial-gradient(70% 90% at 15% 0%, rgba(80, 98, 190, 0.7), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(170, 96, 40, 0.6), transparent 60%), #1a1d3a; }
.thumb.vid::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.lib-row b { display: block; color: var(--text); font-weight: 500; }
.lib-row small { color: var(--faint); font-size: 11px; }
.lib-row .right { margin-left: auto; color: var(--faint); font: 10.5px var(--mono); }

/* ---------------- tinted feature cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 248px;
  padding: 20px; border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint, #6b8cff) 10%, #111214), #0d0e10 70%);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint, #6b8cff) 22%, transparent), transparent); pointer-events: none; }
.card .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: auto; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 25%, transparent); }
.card .ico svg { width: 17px; height: 17px; }
.card h3 { margin-top: 40px; color: var(--text); font-size: 15px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------------- compatibility ---------------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.matrix th, .matrix td { height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix thead th { height: 44px; font: 400 11px var(--mono); color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; }
.matrix tbody th { font-weight: 500; color: var(--text); }
.matrix tbody th svg { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 9px; color: var(--muted); }
.matrix tr:last-child > * { border-bottom: 0; }
.yes { color: var(--text-2); }
.yes::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 4px; background: rgba(60, 207, 180, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%233ccfb4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.no { color: var(--faint); }
.matrix-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 15px; font-weight: 500; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.faq details p { margin: -4px 0 20px; color: var(--muted); font-size: 14.5px; max-width: 620px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------- final CTA ---------------- */
.final { text-align: center; padding: 160px 0 140px; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(242, 181, 75, 0.12), transparent 70%); pointer-events: none; }
.app-icon { position: relative; width: 108px; height: 108px; margin: 0 auto 36px; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(180deg, #1a1b1f, #0e0f11); border: 1px solid var(--line-2); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.015), 0 30px 80px -20px rgba(242, 181, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.app-icon img { width: 64px; height: 64px; }
.final h2 { margin-bottom: 14px; }
.final p.sub { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 520px; }
.final .cta { align-items: center; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 13.5px; }
.foot { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); transition: color 0.15s; }
.foot a:hover { color: var(--text); }
.foot .small { color: var(--faint); margin-top: 14px; font-size: 12.5px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------------- download page ---------------- */
.dl-hero { padding: 104px 0 24px; }
.dl-hero h1 { max-width: 760px; }
.detected { margin-top: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #121316, #0d0e10); position: relative; overflow: hidden; }
.detected::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 0% 0%, rgba(107, 140, 255, 0.12), transparent 70%); pointer-events: none; }
.detected > * { position: relative; }
.detected .det-head { display: flex; gap: 16px; align-items: center; }
.os-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); flex: none; }
.os-icon svg { width: 24px; height: 24px; }
.detected h2 { font-size: 22px; letter-spacing: -0.02em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detected .req { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.detected .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.detected .note { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.detected .note a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (max-width: 760px) { .detected { grid-template-columns: 1fr; } .detected .actions { justify-content: flex-start; } }

.plat-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.plat { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.plat:last-child { border-bottom: 0; }
.plat.is-current { background: rgba(255, 255, 255, 0.02); }
.plat-head { display: flex; align-items: center; gap: 12px; }
.plat-head svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.plat-head h3 { font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plat .req { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.plat .note { margin: 0; color: var(--muted); font-size: 13.5px; }
.plat .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.plat .actions .btn { height: 36px; font-size: 13px; padding: 0 12px; }
@media (max-width: 900px) { .plat { grid-template-columns: 1fr; gap: 12px; } .plat .actions { justify-content: flex-start; } }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.guide { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.guide-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.guide-h svg { width: 18px; height: 18px; color: var(--muted); }
.guide-h h3 { font-size: 14.5px; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.guide li { counter-increment: s; position: relative; padding-left: 30px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.guide li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 10.5px var(--mono); color: var(--text-2); background: var(--card-2); border: 1px solid var(--line-2); }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr; } }

/* ---------------- motion ---------------- */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.8s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }
.dim-h { color: #6b7079; }
@media (max-width: 760px) {
  .stage { margin-top: 48px; }
  .stage::after { height: 70px; }
  .remote { margin: 8px; }
  section { padding: 96px 0; }
  .feature { padding-top: 88px; }
  .panel-art, .panel-notes { padding: 22px; }
}
/* bring the product window above the fold on laptop screens */
.hero { padding-top: 84px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); max-width: 760px; }
.stage { margin-top: 56px; }
.app-icon-img { width: 112px; height: 112px; margin: 0 auto 36px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px -20px rgba(157, 140, 255, 0.45); }

/* ---------- hero: Polyptych for Mac session window, rebuilt from the app's code ---------- */
.mwin { border-radius: 12px; overflow: hidden; background: #1e1f22; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 50px 120px -30px rgba(0,0,0,0.9), 0 -20px 80px -40px rgba(107,140,255,0.25); }
.mwin-bar { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px 0 16px; background: linear-gradient(180deg, #2c2d31, #26272b); border-bottom: 1px solid rgba(0,0,0,0.6); }
.mwin-bar .lights { padding: 0 14px 0 0; }
.mwin-title { font-size: 14px; font-weight: 600; color: #e9eaee; letter-spacing: -0.01em; }
.mwin-bar .spacer { flex: 1; }
.mwin-bar .tb { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #c8cad0; }
.mwin-bar .tb svg { width: 17px; height: 17px; }
.mwin-bar .tb.on { background: rgba(255,255,255,0.12); color: #fff; }
.mwin-screen { position: relative; background: #000; line-height: 0; }
.mwin-screen img { width: 100%; height: auto; display: block; }
/* other people's cursors, drawn like PresenceCursors.swift: coloured arrow with a white edge, name tag below-right */
.pcur { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; will-change: transform; line-height: 1; }
.pcur svg { position: absolute; left: -2px; top: -2px; width: 17px; height: 25px; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); transform-origin: 2px 2px; }
.pcur path { stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.pcur span { position: absolute; left: 12px; top: 18px; padding: 3px 7px; border-radius: 6px; font: 600 11px/14px -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans); color: #fff; white-space: nowrap; }
.p-pink path { fill: #ff456b; } .p-pink span { background: #ff456b; }
.p-blue path { fill: #3378ff; } .p-blue span { background: #3378ff; }
.p-green path { fill: #29bf6b; } .p-green span { background: #29bf6b; }
.a1 { animation: c1 12s ease-in-out infinite; }
.a2 { animation: c2 14s ease-in-out infinite; }
.a3 { animation: c3 13s ease-in-out infinite; }
.a1 svg { animation: press 12s infinite; } .a2 svg { animation: press 14s infinite 3s; } .a3 svg { animation: press 13s infinite 6s; }
@keyframes c1 { 0%,100% { transform: translate(0,0); } 20% { transform: translate(120px,-40px); } 45% { transform: translate(60px,60px); } 70% { transform: translate(-40px,20px); } }
@keyframes c2 { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-90px,80px); } 55% { transform: translate(40px,140px); } 80% { transform: translate(80px,30px); } }
@keyframes c3 { 0%,100% { transform: translate(0,0); } 30% { transform: translate(150px,-30px); } 60% { transform: translate(60px,-110px); } 85% { transform: translate(-60px,-40px); } }
@keyframes press { 0%, 18%, 23%, 100% { transform: scale(1); } 20% { transform: scale(0.82); } }
.presence { position: absolute; left: 8px; bottom: 8px; z-index: 4; display: flex; gap: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.6); color: #fff; font: 400 11px/1 -apple-system, BlinkMacSystemFont, var(--sans); line-height: 1; }
.presence span { display: inline-flex; align-items: center; gap: 5px; }
.presence i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 760px) { .mwin-bar .tb:nth-child(n+6) { display: none; } .mwin-bar { height: 40px; } .pcur span { font-size: 10px; } }

/* real screenshots in feature panels */
.panel-art.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.panel-art.shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8); }
.panel-art.shot img.light { background: #fff; }
.panel-art.shot figcaption { font: 11px var(--mono); color: var(--faint); letter-spacing: 0.02em; }
.facts { display: grid; gap: 0; width: 100%; max-width: 460px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts b { font-size: 30px; font-weight: 520; letter-spacing: -0.03em; color: var(--text); }
.facts span { color: var(--muted); font-size: 14px; }
.stage::after { display: none; }
.pcur svg { max-width: none; }
