/* xPartition site v2. Colours mirror the native app palette. */
:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #0e0f12;
  --glass: #ffffff05;
  --glass-hi: #efc6860a;
  --edge: #ffffff12;
  --edge-soft: #ffffff0d;
  --edge-strong: #ffffff26;
  --ink: #ecf1f5;
  --text: #c5cbd2;
  --quiet: #abbac9;
  --muted: #8a94a0;
  --accent: #efc686;
  --accent-hi: #f6d7a6;
  --accent-ink: #17140f;
  --accent-edge: #efc68655;
  --success: #76d5aa;
  --danger: #f39b8e;
  --caution: #f3c476;
  --info: #80c6ff;
  --mono: 'Geist Mono', Consolas, monospace;
  --sans: Geist, 'Segoe UI', system-ui, sans-serif;
  --content: 1160px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; line-height: 1.5; }
a { color: var(--quiet); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: .92em; }
kbd { display: inline-block; padding: 0 7px; border: 1px solid var(--edge-strong); border-bottom-width: 2px; border-radius: 5px; background: #ffffff08; color: var(--ink); font-size: 12px; line-height: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 5px; font-weight: 600; }
.skip-link:focus { top: 8px; color: var(--accent-ink); }

/* Atmosphere: fog canvas (fx.js) behind everything */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fx-vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 100%, transparent, var(--bg) 80%); }
#site { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: #050506b3; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff0f; }
.topbar-inner { max-width: var(--content); margin: 0 auto; height: var(--topbar-h); padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.3px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.mark { display: inline-flex; gap: 3px; height: 17px; }
.mark i { display: block; width: 3px; background: var(--accent); border-radius: 1px; }
.mark i:nth-child(2) { width: 6px; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; min-width: 0; }
.nav a { color: var(--quiet); font-size: 14px; padding: 7px 11px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: #ffffff0a; }
.nav a[aria-current="page"] { color: var(--ink); }
.version-pill { font: 12px var(--mono); color: var(--accent); border: 1px solid #efc68640; border-radius: 999px; padding: 5px 11px; flex-shrink: 0; }
.version-pill:hover { background: #efc68614; color: var(--accent); }

/* Shared */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main { flex: 1; width: 100%; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; font-weight: 500; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; font-size: clamp(28px, 3.8vw, 44px); }
.lede { margin: 0; color: var(--quiet); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.glass { border: 1px solid var(--edge); border-radius: 12px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip-button { font: 12px var(--mono); color: var(--quiet); background: #ffffff08; border: 1px solid #ffffff1a; border-radius: 5px; padding: 2px 9px; flex-shrink: 0; transition: color .2s, border-color .2s; }
.chip-button:hover { color: var(--accent); border-color: var(--accent-edge); }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 8px; box-shadow: 0 0 0 1px var(--accent), 0 10px 40px -8px #efc68688; transition: transform .2s var(--ease), box-shadow .2s; }
.cta:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent-hi), 0 14px 50px -6px #efc686aa; }
.cta svg { flex-shrink: 0; }
.cta-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.cta-text small { font: 500 11.5px var(--mono); letter-spacing: .02em; color: #17140fa6; margin-top: 2px; }
.ghost { padding: 13px 18px; border-radius: 8px; color: var(--ink); border: 1px solid #ffffff1f; background: #ffffff06; }
.ghost:hover { background: #ffffff0f; color: var(--ink); }
.section { max-width: var(--content); margin: 0 auto; padding: clamp(80px, 12vw, 150px) 24px 0; }

/* Hero */
.hero { max-width: var(--content); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.kicker { margin: 0; font: 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(38px, 6.2vw, 68px); line-height: 1.03; font-weight: 500; letter-spacing: -.035em; max-width: 900px; text-wrap: balance; color: var(--ink); background: linear-gradient(180deg, #fff, var(--ink) 50%, var(--muted)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.hero .lede { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; max-width: 600px; }

/* Download */
.download { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; width: 100%; scroll-margin-top: calc(var(--topbar-h) + 24px); }
.formats { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--edge); border-radius: 10px; background: #ffffff05; flex-wrap: wrap; justify-content: center; min-height: 40px; }
.formats button { font: 13px var(--sans, inherit); color: var(--quiet); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 6px 12px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.formats button small { font: 11px var(--mono); color: var(--muted); margin-left: 3px; }
.formats button:hover { color: var(--ink); }
.formats button[aria-pressed="true"] { color: var(--ink); background: #ffffff0d; border-color: var(--edge-strong); }
.format-hint { margin: 0; font-size: 13px; color: var(--quiet); min-height: 20px; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cta-meta, .checksum { margin: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; align-items: center; font: 12px var(--mono); color: var(--muted); }
.cta-meta a { color: var(--quiet); }
.cta-meta a:hover { color: var(--accent); }
.checksum { gap: 10px; min-height: 22px; } /* room for the Copy chip, so release data arriving late never shifts the demo */
.checksum code { color: var(--text); }

/* Demo */
.demo { margin: 34px 0 0; width: 100%; max-width: 868px; display: flex; flex-direction: column; gap: 14px; }
.demo-float { position: relative; }
.demo-glow { position: absolute; inset: -8% -14%; background: radial-gradient(ellipse at 50% 40%, #efc68624, transparent 65%); filter: blur(24px); pointer-events: none; }
.demo-outer { position: relative; width: 100%; }
.demo-sizer { position: relative; width: 100%; aspect-ratio: 868 / 500; }
.demo-stage { position: absolute; left: 0; top: 0; width: 868px; height: 500px; transform-origin: 0 0; border-radius: 8px; box-shadow: 0 60px 140px -30px #000, 0 0 0 1px #ffffff14; }
.demo-stage iframe { display: block; width: 868px; height: 500px; border: 0; border-radius: 8px; background: transparent; pointer-events: none; }
.demo-cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transform: translate(780px, 470px); transition: transform 600ms cubic-bezier(.45, .05, .25, 1), opacity .3s; z-index: 5; }
.demo-ripple { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #64caff; box-shadow: 0 0 8px #168eff; opacity: 0; transform: translate(-50%, -50%); }
.demo-cursor svg { position: absolute; left: -1px; top: -1px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.demo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 12px var(--mono); color: var(--muted); text-align: left; }
.demo-caption { display: flex; align-items: center; gap: 10px; min-width: 0; }
.demo-caption .n { color: var(--accent); flex-shrink: 0; }
.demo-caption .t { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Previous versions */
.previous { width: 100%; max-width: 760px; text-align: left; margin-top: 10px; }
.previous > summary { padding: 13px 18px; font-size: 14px; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
.previous > summary::after { content: '+'; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .25s; }
.previous[open] > summary::after { transform: rotate(45deg); color: var(--accent); }
/* Previous versions: a deliberately muted table; rows brighten on hover. */
.previous-scroll { overflow-x: auto; padding: 0 18px 10px; }
.previous-table { width: 100%; border-collapse: collapse; font: 12.5px var(--mono); color: var(--muted); }
.previous-table th, .previous-table td { text-align: left; font-weight: 400; padding: 9px 14px 9px 0; border-top: 1px solid var(--edge-soft); vertical-align: middle; white-space: nowrap; }
.previous-table thead th { border-top: 0; padding-top: 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.previous-table tbody { background: #ffffff03; }
.release-row { transition: color .2s, background .2s; }
.release-row:hover, .release-row:focus-within { color: var(--text); background: #ffffff06; }
.release-row:hover a, .release-row:focus-within a, .release-row:hover .ver, .release-row:focus-within .ver { color: var(--text); }
.release-row .ver { color: var(--muted); }
.release-row .files { display: flex; gap: 14px; flex-wrap: wrap; white-space: normal; }
.release-row a { color: var(--muted); }
.release-row a:hover { color: var(--accent); }
.release-row .files a { white-space: nowrap; }
.release-row .files small { color: var(--muted); margin-left: 2px; }
.release-row .notes { text-align: right; padding-right: 0; }
.release-empty td { color: var(--muted); }

/* Why */
.why { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(64px, 9vw, 110px); }
.why-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px 56px; align-items: end; }
.why-head > div { display: flex; flex-direction: column; gap: 12px; }
.why-head .h2 { font-size: clamp(24px, 3vw, 34px); }
.why-head .lede { font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, background .3s; }
.feature:hover { border-color: #efc68640; background: var(--glass-hi); }
.feature h3 { margin: 0; font-size: 15px; font-weight: 500; }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--quiet); }
.art { height: 44px; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.art-bars { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.art-bars div { display: flex; gap: 3px; height: 9px; }
.art-bars i { border-radius: 2px; background: #ffffff26; }
.art-bars i.e { background: #ffffff12; }
.art-bars i.on { background: var(--accent); box-shadow: 0 0 12px #efc68666; }
.art-bars i.half { background: #efc68680; }
.art .node { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid #ffffff40; }
.art .node.on { border: 0; background: var(--accent); box-shadow: 0 0 12px #efc68688; }
.art .wire { flex: 1; height: 1px; background: #ffffff26; }
.art .file { display: flex; align-items: flex-end; justify-content: center; width: 30px; height: 38px; padding-bottom: 5px; border: 1px solid #efc68680; border-radius: 3px 9px 3px 3px; font: 9px var(--mono); color: var(--accent); }
.art .size { font: 11px var(--mono); color: var(--muted); margin-left: 6px; }
.art .key { font: 10.5px var(--mono); color: var(--text); border: 1px solid var(--edge-strong); border-bottom-width: 2px; border-radius: 4px; padding: 2px 7px; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; background: #08090bcc; }
.terminal { margin: 0; min-width: 0; }
.terminal figcaption { display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--edge-soft); font: 12px var(--mono); color: var(--muted); }
.terminal pre { margin: 0; padding: 14px 18px; font: 12.5px/1.65 var(--mono); color: var(--text); overflow-x: auto; }
.terminal .p { color: var(--muted); }
.terminal .n { color: var(--info); }
.terminal .d { color: var(--danger); }
.way { padding: 18px 24px; background: linear-gradient(160deg, #efc68614, transparent 70%); box-shadow: inset 1px 0 0 #efc68626; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.way h3 { margin: 0; font-size: 15px; font-weight: 500; }
.way ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink); counter-reset: way; }
.way li { display: flex; gap: 14px; counter-increment: way; }
.way li::before { content: '0' counter(way); font: 12px var(--mono); color: var(--accent); padding-top: 3px; }
.way a { color: var(--accent); font-size: 14px; }

/* Safety */
.safety-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 72px; align-items: center; }
.safety-wrap > div:last-child { display: flex; flex-direction: column; gap: 16px; }
.rings-holder { display: flex; justify-content: center; }
.rings { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.rings-glow { position: absolute; inset: -12%; background: radial-gradient(circle, #efc6861f, transparent 62%); filter: blur(10px); }
.ring { position: absolute; border-radius: 50%; border: 1px solid #ffffff24; transition: border-color .5s, box-shadow .5s; }
.ring:nth-child(2) { inset: 0; } .ring:nth-child(3) { inset: 9%; } .ring:nth-child(4) { inset: 18%; } .ring:nth-child(5) { inset: 27%; } .ring:nth-child(6) { inset: 36%; }
.ring > span { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 7px; background: var(--bg); font: 11px var(--mono); color: #ffffff40; transition: color .5s; }
.ring > b { position: absolute; inset: 0; animation: orbit 16s linear infinite; }
.ring:nth-child(3) > b { animation-duration: 22s; animation-direction: reverse; }
.ring:nth-child(4) > b { animation-duration: 28s; }
.ring:nth-child(5) > b { animation-duration: 34s; animation-direction: reverse; }
.ring:nth-child(6) > b { animation-duration: 40s; }
.ring > b::after { content: ''; position: absolute; bottom: -3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ring.on { border-color: var(--accent); box-shadow: 0 0 34px #efc68640, inset 0 0 34px #efc68626; }
.ring.on > span { color: var(--accent); }
.core { position: absolute; inset: 43%; display: flex; align-items: stretch; justify-content: center; gap: 9%; filter: drop-shadow(0 0 14px #efc686aa); animation: breathe 2.6s ease-in-out infinite alternate; }
.core i { width: 16%; background: var(--accent); border-radius: 2px; }
.core i:nth-child(2) { width: 32%; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
.safety { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--edge); counter-reset: safe; }
.safety li { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid var(--edge); font-size: 15px; line-height: 1.55; color: var(--quiet); counter-increment: safe; }
.safety li::before { content: '0' counter(safe); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 11px var(--mono); border: 1px solid var(--accent-edge); color: var(--accent); transition: background .4s, color .4s; }
.safety li.on::before { background: var(--accent); color: var(--accent-ink); }
.safety strong { color: var(--ink); font-weight: 500; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 72px; align-items: start; }
.faq-head { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 220px; }
.faq-head > * { position: relative; }
.faq-mark { position: absolute !important; left: -12px; top: -70px; font: 500 340px/1 var(--mono); color: transparent; -webkit-text-stroke: 1px #efc68640; filter: drop-shadow(0 0 30px #efc68633); pointer-events: none; user-select: none; }
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--edge); counter-reset: faq; min-width: 0; }
.faq details { border-top: 1px solid var(--edge); counter-increment: faq; }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 18px 0; font-size: 17px; color: var(--ink); }
.faq summary::before { content: '0' counter(faq); font: 11px var(--mono); color: var(--accent); width: 20px; flex-shrink: 0; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 300; line-height: 1; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0; padding: 0 36px 20px; font-size: 15px; line-height: 1.6; color: var(--quiet); max-width: 620px; }
.faq strong, .faq code { color: var(--ink); }

/* Footer */
.site-footer { margin-top: clamp(80px, 12vw, 150px); border-top: 1px solid #ffffff0f; background: #050506b3; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; }
.footer-brand { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-brand .mark { height: 15px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal { margin: 0; width: 100%; font-size: 12.5px; color: var(--muted); }

/* Document pages */
.page-head { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; color: var(--ink); background: linear-gradient(180deg, #fff, var(--ink) 55%, var(--muted)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.page-head .lede { font-size: 17px; max-width: 620px; }
.doc { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; padding: 12px 0 40px; }
.toc { position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; max-height: calc(100svh - var(--topbar-h) - 48px); overflow: auto; scrollbar-width: none; padding: 18px 10px 18px 0; }
.toc::-webkit-scrollbar { display: none; }
.toc p { margin: 0 0 12px 14px; font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .18em; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; counter-reset: toc; position: relative; }
.toc ol::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--edge); }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: flex; gap: 10px; padding: 6px 12px 6px 14px; color: var(--quiet); font-size: 13.5px; line-height: 1.35; border-radius: 0 6px 6px 0; transition: color .2s, background .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 11px/1.6 var(--mono); color: var(--muted); flex-shrink: 0; transition: color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); background: linear-gradient(90deg, #efc68614, transparent); }
.toc a[aria-current="true"]::before { color: var(--accent); }
.toc a[aria-current="true"]::after { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.toc-select { display: none; }
.prose { max-width: 74ch; color: var(--text); font-size: 15.5px; line-height: 1.7; }
.prose > section { padding: 8px 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--edge); }
.prose > section:last-child { border-bottom: 0; }
.prose h2 { color: var(--ink); font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.025em; margin: 0 0 16px; line-height: 1.2; display: flex; align-items: baseline; gap: 14px; }
.prose h2 .num { font: 500 12px var(--mono); color: var(--accent); padding: 3px 8px; border: 1px solid var(--accent-edge); border-radius: 999px; transform: translateY(-4px); }
.prose h3 { color: var(--ink); font-size: 17px; font-weight: 500; margin: 30px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { color: var(--ink); background: #ffffff0c; padding: 1px 6px; border-radius: 4px; }
.prose :is(p, li, td, dd, figcaption, .callout) a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #abbac966; }
.prose :is(p, li, td, dd) a:hover { text-decoration-color: var(--accent); }
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 10px; margin: 0 0 18px !important; }
.steps > li { counter-increment: step; position: relative; padding: 16px 18px 16px 60px; border: 1px solid var(--edge); border-radius: 12px; background: var(--glass); backdrop-filter: blur(8px); margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--mono); box-shadow: 0 0 16px #efc68655; }
.steps > li > strong:first-child { display: block; margin-bottom: 2px; }
.callout { position: relative; border: 1px solid var(--edge); border-radius: 12px; padding: 14px 18px 14px 46px; margin: 18px 0; background: var(--glass); font-size: 14.5px; }
.callout::before { content: ''; position: absolute; left: 18px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--info); box-shadow: 0 0 12px currentColor; color: var(--info); }
.callout > strong:first-child { display: block; margin-bottom: 4px; }
.callout.tip::before { background: var(--success); color: var(--success); }
.callout.warn { border-color: #f3c47633; background: #f3c4760a; }
.callout.warn::before { background: var(--caution); color: var(--caution); }
.def { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 0 22px; margin: 0 0 14px; border-top: 1px solid var(--edge-soft); }
.def dt, .def dd { padding: 11px 0; border-bottom: 1px solid var(--edge-soft); }
.def dt { color: var(--ink); font-weight: 500; }
.def dd { margin: 0; }
.keys { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14.5px; }
.keys td { padding: 9px 10px; border-bottom: 1px solid var(--edge-soft); vertical-align: top; }
.keys td:first-child { white-space: nowrap; width: 1%; padding-left: 0; }

/* Screenshots and live demos */
.shot { margin: 22px 0 26px; }
.shot-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--edge-strong); background: #0b0c0e; box-shadow: 0 40px 90px -40px #000; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.shot figcaption strong { color: var(--quiet); }
.pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--mono); box-shadow: 0 0 0 3px #050506cc, 0 0 18px #efc68688; pointer-events: none; }
.legend { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 18px; margin: 12px 0 0 !important; font-size: 13.5px; }
.legend li { display: flex; gap: 10px; align-items: baseline; margin: 0 !important; }
.legend b, .inline-pin { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: #efc6861a; color: var(--accent); font: 700 11px var(--mono); border: 1px solid var(--accent-edge); transform: translateY(3px); }
.inline-pin { transform: translateY(-1px); }
.shot-placeholder .shot-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; border-style: dashed; background: repeating-linear-gradient(135deg, #ffffff05 0 12px, transparent 12px 24px), #0b0c0ecc; }
.placeholder-label { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
.placeholder-label b { display: block; color: var(--quiet); font-size: 14px; margin-bottom: 4px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px; border: 1px solid var(--edge); border-radius: 8px; background: #ffffff05; }
.shot-tabs button { font: 12px var(--mono); color: var(--quiet); background: none; border: 0; border-radius: 5px; padding: 5px 12px; }
.shot-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.live { position: relative; }
.live-glow { position: absolute; inset: -6% -8%; background: radial-gradient(ellipse at 50% 40%, #efc6861c, transparent 65%); filter: blur(20px); pointer-events: none; }
.live-sizer { position: relative; width: 100%; aspect-ratio: 868 / 500; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 90px -40px #000, 0 0 0 1px #ffffff1a; background: #0b0c0e; }
.live-stage { position: absolute; left: 0; top: 0; width: 868px; height: 500px; transform-origin: 0 0; }
.live-stage iframe { display: block; width: 868px; height: 500px; border: 0; pointer-events: none; background: transparent; }
.live-cap { position: relative; margin: 10px 0 0 !important; display: flex; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--ink); min-height: 18px; }
.live-cap::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex-shrink: 0; }
.live-cap .tag { color: var(--muted); }

/* Changelog timeline */
.version-index { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; min-height: 32px; padding-bottom: 4px; } /* one row: release data arriving late never pushes the timeline down */
.version-index > * { flex-shrink: 0; }
.version-index a { font: 12.5px var(--mono); padding: 5px 11px; border: 1px solid var(--edge-strong); border-radius: 999px; color: var(--quiet); background: #ffffff05; }
.version-index a:hover { color: var(--accent); border-color: var(--accent-edge); }
.version-index a:first-child { color: var(--accent); border-color: var(--accent-edge); }
.releases { position: relative; display: grid; gap: 28px; padding: 30px 0 40px 64px; max-width: 900px; min-height: 100svh; align-content: start; }
.releases::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(var(--accent) 0, #efc68655 120px, var(--edge) 340px, var(--edge) calc(100% - 80px), transparent); }
.release-card { position: relative; padding: 24px 26px; scroll-margin-top: calc(var(--topbar-h) + 20px); transition: border-color .3s; }
.release-card:hover, .release-card:target { border-color: #efc68640; }
.release-card .node { position: absolute; left: -51px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid #ffffff55; }
.release-card.is-latest .node { border: 0; background: var(--accent); box-shadow: 0 0 0 5px #efc68622, 0 0 22px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.release-card:target .node { border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px #efc68610, 0 0 30px var(--accent); } }
.release-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release-card h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; font-family: var(--mono); }
.release-card h2 a { color: inherit; }
.release-card .rdate { font: 12.5px var(--mono); color: var(--muted); }
.badge { font: 600 11px var(--mono); color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 2px 9px; box-shadow: 0 0 16px #efc68666; }
.release-card .rtitle { margin: 10px 0 4px; font-size: 17px; color: var(--ink); font-weight: 500; }
.release-card .rsummary { margin: 0 0 6px; color: var(--quiet); font-size: 14.5px; line-height: 1.6; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 4px 28px; }
.group { margin: 16px 0 0; }
.group h3 { margin: 0 0 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 8px; }
.group h3::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.group.Added h3 { color: var(--success); }
.group.Changed h3 { color: var(--info); }
.group.Fixed h3 { color: var(--accent); }
.group.Security h3 { color: var(--danger); }
.group ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.55; display: grid; gap: 6px; }
.technical { margin-top: 18px; border-top: 1px solid var(--edge-soft); padding-top: 12px; }
.technical summary { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.technical summary::before { content: '+'; color: var(--accent); transition: transform .25s; }
.technical[open] summary::before { transform: rotate(45deg); }
.technical ul { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.release-downloads { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.release-downloads a { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink); border: 1px solid var(--edge-strong); background: #ffffff06; border-radius: 7px; padding: 7px 12px; }
.release-downloads a:hover { border-color: var(--accent-edge); color: var(--accent); }
.release-card.is-latest .release-downloads a:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.release-card.is-latest .release-downloads a:first-child small { color: #17140fb3; }
.release-downloads small { font-family: var(--mono); color: var(--muted); }

/* 404 */
.notfound { min-height: 62svh; display: grid; place-items: center; padding: 60px 24px; }
.nf { width: min(640px, 100%); display: flex; flex-direction: column; gap: 18px; }
.nf h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.nf > p { margin: 0; color: var(--quiet); font-size: 16px; }
.nf-disk { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.nf-disk-head { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); }
.nf-disk-head b { color: var(--ink); font-weight: 500; }
.nf-bar { display: flex; gap: 3px; height: 30px; }
.nf-bar i { border-radius: 3px; background: #ffffff1f; }
.nf-bar i:nth-child(1) { flex: 1; } .nf-bar i:nth-child(2) { flex: 5; background: #ffffff2e; } .nf-bar i:nth-child(3) { flex: 2; }
.nf-bar .gap { flex: 3; border: 1px dashed var(--accent); background: repeating-linear-gradient(135deg, #efc68614 0 6px, transparent 6px 12px); display: grid; place-items: center; font: 10.5px var(--mono); color: var(--accent); box-shadow: 0 0 24px #efc68633; animation: breathe 2.6s ease-in-out infinite alternate; }
.nf-log { margin: 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--edge); background: #08090bcc; font: 13px/1.8 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.nf-log .p { color: var(--muted); }
.nf-log .e { color: var(--danger); }
.nf-log a { color: var(--accent); }
.nf-log .caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Motion */
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero > *, .page-head > *, .nf > * { animation: arrive .6s var(--ease) both; }
.hero > :nth-child(2), .page-head > :nth-child(2), .nf > :nth-child(2) { animation-delay: .06s; }
.hero > :nth-child(3), .page-head > :nth-child(3), .nf > :nth-child(3) { animation-delay: .12s; }
.hero > :nth-child(4), .page-head > :nth-child(4), .nf > :nth-child(4) { animation-delay: .18s; }
.hero > :nth-child(5), .nf > :nth-child(5) { animation-delay: .24s; }

/* Responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-head { min-height: 0; }
  .faq-mark { font-size: 200px; top: -40px; left: auto; right: 0; }
}
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 18px; }
  .toc { display: none; }
  .toc-select { display: block; width: 100%; padding: 10px 12px; background: #0e0f12; color: var(--ink); border: 1px solid var(--edge-strong); border-radius: 8px; font: 14px var(--sans); margin-bottom: 22px; position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 5; }
}
@media (max-width: 640px) {
  
  :root { --topbar-h: 52px; }
  .topbar-inner { padding: 0 12px; gap: 12px; }
  .brand .wordmark { display: none; }
  .nav { overflow-x: auto; scrollbar-width: none; gap: 0; justify-content: flex-start; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13px; padding: 7px 9px; }
  .version-pill { display: none; }
  .wrap, .hero, .section { padding-left: 16px; padding-right: 16px; }
  .features { grid-template-columns: 1fr; }
  .rings { width: min(78%, 300px); }
  .demo figcaption { font-size: 10.5px; }
  .shot-pair { grid-template-columns: 1fr; }
  .def { grid-template-columns: 1fr; }
  .def dt { border-bottom: 0; padding-bottom: 0; }
  .releases { padding-left: 34px; }
  .releases::before { left: 9px; }
  .release-card { padding: 20px 18px; }
  .release-card .node { left: -31px; }
  .faq details p { padding: 0 0 18px 36px; }
}
