/* MixTeX website. A light, airy canvas: large light-weight type, black pill buttons, full-width rounded
   panels and a quiet particle field. The accent and product screenshots come from the app. */
:root {
  --ink: #121317;
  --ink-2: #45474e;
  --ink-3: #6f727b;
  --ink-4: #9a9da5;
  --line: rgba(18, 19, 23, 0.08);
  --line-2: rgba(18, 19, 23, 0.14);
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --pill: rgba(183, 191, 217, 0.2);
  --pill-hover: rgba(183, 191, 217, 0.34);
  --night: #07080b;
  --accent: #3b63fb;
  --violet: #8b5cf6;
  --positive: #0f9d58;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1280px;
  --gutter: 40px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code, kbd { font-family: var(--mono); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.display { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.08; letter-spacing: -0.025em; }
.display, .h2, .h3, .footer-tagline { text-wrap: balance; }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; }
.h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }
.eyebrow { font-size: 14px; color: var(--ink-3); letter-spacing: 0.01em; }
kbd.k { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; font: 500 13px/1 var(--font); color: var(--ink); vertical-align: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2c33; }
.btn-light { background: var(--pill); color: var(--ink); }
.btn-light:hover { background: var(--pill-hover); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e9ebf0; }
.btn-glass { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14.5px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.link .icon { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

/* ---------- announcement + navigation ---------- */
.announce { position: relative; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 56px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.announce-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; flex: none; }
.announce-tag .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.announce a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--ink); padding-left: 12px; border-left: 1px solid var(--line-2); flex: none; }
.announce a .icon { width: 14px; height: 14px; }
.announce-close { position: absolute; right: 16px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.announce-close:hover { background: var(--pill); color: var(--ink); }
.announce-close .icon { width: 16px; height: 16px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background-color 0.16s, color 0.16s; }
.nav-links a:hover { background: var(--pill); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--pill); }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 18px; height: 18px; }
.nav-menu { display: none; }
@media (max-width: 820px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: absolute; left: 0; right: 0; top: 64px; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.open .nav-menu { display: grid; }
  .nav-menu a:not(.btn) { padding: 16px 2px; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 20px; }
  .announce { padding: 0 44px 0 16px; justify-content: flex-start; }
  .announce .announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .announce a { display: none; }
}

/* ---------- particle field ---------- */
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100vh - 108px); min-height: calc(100svh - 108px); padding: 96px 0 120px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; text-align: center; }
.hero-brand { display: inline-flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.hero-brand img { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(18, 19, 23, 0.14)); }
.hero h1 { max-width: 1100px; }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hero-meta { font-size: 13.5px; color: var(--ink-3); }

/* ---------- hero in two columns: copy, and the product at work ---------- */
.hero-split { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.hero-copy { display: grid; justify-items: start; gap: 26px; text-align: left; }
.hero-copy .display { font-size: clamp(42px, 4.9vw, 74px); }
.hero-copy .hero-actions { justify-content: flex-start; }

.demo {
  position: relative; aspect-ratio: 1.08; border-radius: 28px; overflow: hidden; container-type: inline-size; isolation: isolate; user-select: none; --u: 1cqw;
  background: radial-gradient(110% 80% at 92% 0%, #c6d3ff 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #f0d6ff 0%, transparent 60%), linear-gradient(160deg, #eef2ff, #f8f4ff);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -36px rgba(40, 52, 130, 0.38);
}
.demo template { display: none; }
.demo-menubar { position: absolute; z-index: 1; inset: 0 0 auto 0; height: calc(5.4 * var(--u)); display: flex; align-items: center; gap: calc(2.6 * var(--u)); padding: 0 calc(3.2 * var(--u)); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: calc(1.8 * var(--u)); color: var(--ink-2); }
.demo-menubar svg { width: calc(2.6 * var(--u)); height: calc(2.6 * var(--u)); color: var(--ink); }
.demo-menubar b { margin-left: -calc(1.6 * var(--u)); font-weight: 600; color: var(--ink); }
.demo-menubar .spacer { flex: 1; }
.demo-live { width: calc(1.2 * var(--u)); height: calc(1.2 * var(--u)); border-radius: 50%; background: #1fbf6a; box-shadow: 0 0 0 calc(0.5 * var(--u)) rgba(31, 191, 106, 0.18); }
.demo-bar { display: flex; align-items: center; gap: calc(0.9 * var(--u)); height: calc(4.8 * var(--u)); padding: 0 calc(1.9 * var(--u)); border-bottom: 1px solid var(--line); background: #fafbfc; font-size: calc(1.65 * var(--u)); color: var(--ink-3); }
.demo-bar i { width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u)); border-radius: 50%; background: #ff5f57; }
.demo-bar i:nth-child(2) { background: #febc2e; }
.demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar span { margin-left: calc(1.2 * var(--u)); }
.demo-doc, .demo-editor, .demo-panel { position: absolute; overflow: hidden; background: #fff; border-radius: calc(1.9 * var(--u)); box-shadow: 0 0 0 1px var(--line), 0 calc(2.6 * var(--u)) calc(5.4 * var(--u)) -calc(2.2 * var(--u)) rgba(18, 19, 23, 0.28); }
.demo-doc { left: 5%; top: 12%; width: 60%; }
.demo-doc-body { display: grid; gap: calc(1.7 * var(--u)); padding: calc(3.4 * var(--u)) calc(3.8 * var(--u)) calc(4 * var(--u)); }
.demo-line { display: block; height: calc(1.15 * var(--u)); border-radius: calc(1 * var(--u)); background: #e7e9ee; }
.demo-source { display: flex; align-items: center; justify-content: center; min-height: calc(10 * var(--u)); padding: calc(1.4 * var(--u)) 0; font-size: calc(2.85 * var(--u)); color: #141414; }
.demo-editor { left: 9%; bottom: 5.5%; width: 55%; }
.demo-editor-body { display: grid; gap: calc(0.9 * var(--u)); padding: calc(2.3 * var(--u)) calc(2.7 * var(--u)) calc(2.9 * var(--u)); font: calc(1.75 * var(--u))/1.5 var(--mono); color: var(--ink-2); }
.de-muted { color: #8a8f99; }
.de-paste { display: flex; align-items: center; min-height: calc(2.7 * var(--u)); color: var(--ink); white-space: nowrap; }
.de-paste span { min-width: 0; overflow: hidden; text-overflow: ellipsis; border-radius: calc(0.5 * var(--u)); transition: background-color 1.2s var(--ease); }
.demo-editor.pasted .de-paste span { background: rgba(59, 99, 251, 0.14); transition: none; }
.de-caret { flex: none; width: calc(0.26 * var(--u)); height: calc(2.3 * var(--u)); margin-left: calc(0.3 * var(--u)); background: var(--accent); animation: blink 1.05s steps(1) infinite; }
.demo-select { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; border: 1px solid rgba(255, 255, 255, 0.95); outline: 1px solid rgba(18, 19, 23, 0.4); box-shadow: 0 0 0 200cqw rgba(18, 19, 23, 0.22); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.demo-select.show { opacity: 1; }
.demo.flash .demo-select { background: rgba(255, 255, 255, 0.75); }
.demo-cursor { position: absolute; z-index: 5; left: 0; top: 0; width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); margin: -calc(1.8 * var(--u)) 0 0 -calc(1.8 * var(--u)); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.demo-cursor.show { opacity: 1; }
.demo-cursor.glide { transition: opacity 0.2s, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.demo-keys { position: absolute; z-index: 6; right: 5%; bottom: 5.5%; display: flex; gap: calc(1 * var(--u)); padding: calc(1.4 * var(--u)); border-radius: calc(2.4 * var(--u)); background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 calc(1.8 * var(--u)) calc(3.8 * var(--u)) -calc(1.6 * var(--u)) rgba(18, 19, 23, 0.3); opacity: 0; transform: translateY(calc(1.6 * var(--u))); transition: opacity 0.25s, transform 0.4s var(--ease); }
.demo-keys.show { opacity: 1; transform: none; }
.demo-keys kbd { display: inline-flex; align-items: center; justify-content: center; min-width: calc(5.8 * var(--u)); height: calc(5.8 * var(--u)); padding: 0 calc(1.4 * var(--u)); border-radius: calc(1.3 * var(--u)); background: #fff; border: 1px solid var(--line-2); border-bottom-width: calc(0.45 * var(--u)); font: 500 calc(2.5 * var(--u))/1 var(--font); color: var(--ink); transition: transform 0.1s, border-color 0.1s, color 0.1s, background-color 0.1s; }
.demo-keys kbd.down { transform: translateY(calc(0.3 * var(--u))); border-bottom-width: 1px; border-color: var(--accent); color: var(--accent); background: #eef2ff; }
.demo-paste-keys { right: auto; left: 45%; bottom: 29%; }
.demo-panel { z-index: 7; right: 4.5%; top: 9%; width: 45%; opacity: 0; transform: translateY(-calc(2 * var(--u))) scale(0.97); transform-origin: top right; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); box-shadow: 0 0 0 1px var(--line), 0 calc(3.4 * var(--u)) calc(7 * var(--u)) -calc(2.6 * var(--u)) rgba(18, 19, 23, 0.38); }
.demo-panel.show { opacity: 1; transform: none; }
.dp-head { display: flex; align-items: center; gap: calc(1 * var(--u)); height: calc(5.6 * var(--u)); padding: 0 calc(2 * var(--u)); border-bottom: 1px solid var(--line); font-size: calc(1.8 * var(--u)); color: var(--ink-2); }
.dp-head svg { width: calc(2.5 * var(--u)); height: calc(2.5 * var(--u)); color: var(--ink); }
.dp-head b { margin-right: calc(0.6 * var(--u)); font-weight: 600; color: var(--ink); }
.dp-head .spacer { flex: 1; }
.dp-dot { width: calc(1.2 * var(--u)); height: calc(1.2 * var(--u)); border-radius: 50%; background: var(--accent); animation: dp-pulse 1s ease-in-out infinite; }
.dp-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dp-bar { height: calc(0.45 * var(--u)); overflow: hidden; background: var(--surface-2); }
.dp-bar i { display: block; width: 35%; height: 100%; background: var(--accent); animation: dp-indet 1.1s ease-in-out infinite; }
.dp-shot { display: flex; align-items: center; justify-content: center; min-height: calc(7.4 * var(--u)); margin: calc(2 * var(--u)) calc(2 * var(--u)) 0; padding: calc(1.4 * var(--u)); overflow: hidden; border-radius: calc(1.2 * var(--u)); box-shadow: inset 0 0 0 1px var(--line); font-size: calc(1.6 * var(--u)); color: #141414; }
.dp-code { min-height: calc(10 * var(--u)); margin: calc(1.6 * var(--u)) calc(2 * var(--u)) 0; padding: calc(1.4 * var(--u)) calc(1.7 * var(--u)); border-radius: calc(1.2 * var(--u)); background: var(--surface); font: calc(1.62 * var(--u))/1.65 var(--mono); color: var(--ink); word-break: break-all; }
.dp-code code { white-space: pre-wrap; font: inherit; }
.dp-caret { display: inline-block; width: calc(0.26 * var(--u)); height: calc(2 * var(--u)); margin-left: calc(0.2 * var(--u)); vertical-align: -calc(0.4 * var(--u)); background: var(--accent); animation: blink 1.05s steps(1) infinite; }
.dp-render { display: flex; align-items: center; justify-content: center; min-height: calc(8.6 * var(--u)); margin: calc(1.2 * var(--u)) calc(2 * var(--u)) 0; font-size: calc(1.85 * var(--u)); color: var(--ink); opacity: 0; transform: translateY(calc(0.8 * var(--u))); transition: opacity 0.4s, transform 0.5s var(--ease); }
.dp-render.show { opacity: 1; transform: none; }
.dp-foot { display: flex; align-items: center; gap: calc(0.8 * var(--u)); margin-top: calc(1.6 * var(--u)); padding: calc(1.7 * var(--u)) calc(2 * var(--u)); border-top: 1px solid var(--line); font-size: calc(1.7 * var(--u)); font-weight: 500; color: var(--positive); opacity: 0; transition: opacity 0.3s; }
.dp-foot .icon { width: calc(2.1 * var(--u)); height: calc(2.1 * var(--u)); stroke-width: 2.4; }
.demo-panel[data-state="done"] .dp-dot { background: #1fbf6a; animation: none; }
.demo-panel[data-state="done"] .dp-bar i { width: 100%; background: #1fbf6a; animation: none; }
.demo-panel[data-state="done"] .dp-caret { display: none; }
.demo-panel[data-state="done"] .dp-foot { opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dp-pulse { 50% { opacity: 0.35; } }
@keyframes dp-indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

@media (max-width: 600px) {
  .demo { aspect-ratio: 0.92; --u: 1.62cqw; border-radius: 22px; }
  .demo-menubar span:not(.spacer):not(:last-child), .demo-menubar .demo-live { display: none; }
  .demo-doc { left: 4%; top: 13%; width: 78%; }
  .demo-panel { right: 4%; top: 30%; width: 82%; }
  .demo-keys { right: 4%; bottom: 4%; }
  .demo-editor, .demo-paste-keys { display: none; }
}

/* ---------- full-width panels ---------- */
.panel { position: relative; margin: 0 12px; border-radius: 28px; overflow: hidden; }
.panel-night { background: var(--night); color: #fff; }
.panel-dots { background-color: #fbfbfc; background-image: radial-gradient(rgba(18, 19, 23, 0.11) 1px, transparent 1.2px); background-size: 16px 16px; }

.showcase { padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 80px) 0; }
.showcase-glow { position: absolute; left: 50%; top: 18%; width: 70%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(91, 124, 255, 0.45), rgba(139, 92, 246, 0.18) 55%, transparent 80%); filter: blur(30px); pointer-events: none; }
.showcase-window { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 -20px 80px rgba(59, 99, 251, 0.25); container-type: inline-size; }
.window-lights { position: absolute; z-index: 1; left: calc(18 / 1440 * 100cqw); top: calc(24 / 1440 * 100cqw); transform: translateY(-50%); display: flex; gap: calc(8 / 1440 * 100cqw); }
.window-lights i { width: calc(12 / 1440 * 100cqw); height: calc(12 / 1440 * 100cqw); border-radius: 50%; background: #ff5f57; }
.window-lights i:nth-child(2) { background: #febc2e; }
.window-lights i:nth-child(3) { background: #28c840; }

/* ---------- icon marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 56px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.marquee-item .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.marquee-item.math { font: italic 400 32px/1 "Times New Roman", "STIX Two Math", serif; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement (fills in while scrolling) ---------- */
.statement { padding: 72px 0 150px; }
.statement p { max-width: 1120px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.32; letter-spacing: -0.015em; color: var(--ink); }
.js .statement p .ch { color: rgba(18, 19, 23, 0.14); transition: color 0.25s linear; }
.js .statement p .ch.on { color: var(--ink); }

/* ---------- features: copy beside a large card ---------- */
.features { display: grid; gap: clamp(96px, 12vw, 160px); padding-bottom: 160px; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.feature-copy { display: grid; gap: 16px; align-content: start; max-width: 420px; }
.feature-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.feature-copy ul { display: grid; gap: 10px; margin-top: 8px; }
.feature-copy li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.feature-copy li .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--ink); stroke-width: 2; }

.card { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: var(--surface); isolation: isolate; }
.card-night { background: var(--night); }
.card-glow::before {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; top: 14%; height: 66%; border-radius: 40%;
  background: linear-gradient(100deg, #7aa2ff, #b490ff 35%, #ff9ec7 62%, #ffd27a 85%); filter: blur(46px); opacity: 0.55;
}
.card-inner { position: absolute; left: 8%; right: 8%; top: 12%; bottom: 0; border-radius: 18px 18px 0 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(18, 19, 23, 0.25); }
.card-inner img { width: 100%; }
.card-night .card-inner { background: #121318; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -20px rgba(59, 99, 251, 0.35); }
.card-crop img { width: 172%; max-width: none; transform: translate(-12.5%, -5.4%); }
.card-inner.fit { bottom: auto; border-radius: 18px; }

/* screenshot card: the result window in the corner, the shortcut below */
.scene-panel { position: absolute; right: 9%; top: 11%; width: 50%; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -18px rgba(18, 19, 23, 0.3); }
.scene-keys { position: absolute; left: 9%; bottom: 12%; display: flex; gap: 10px; }
.keycap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 56px; padding: 0 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line-2); border-bottom-width: 3px; font: 500 22px/1 var(--font); color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(18, 19, 23, 0.25); animation: key 4.2s var(--ease) infinite; animation-delay: calc(var(--i, 0) * 100ms + 1s);
}
@keyframes key { 0%, 10%, 26%, 100% { transform: none; border-bottom-width: 3px; } 14%, 22% { transform: translateY(2px); border-bottom-width: 1px; border-color: var(--accent); color: var(--accent); } }
.scene-chip { position: absolute; left: 9%; top: 13%; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 28px -14px rgba(18, 19, 23, 0.3); font-size: 14px; font-weight: 500; color: var(--positive); }
.scene-chip .icon { width: 16px; height: 16px; stroke-width: 2.4; }

/* editing card: two windows, one over the other */
.layer { position: absolute; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(18, 19, 23, 0.28); }
.layer-a { left: 7%; top: 10%; width: 72%; }
.layer-b { right: 6%; bottom: 8%; width: 66%; }

/* export card: the page with its picture, the formats around it */
.formats { position: absolute; left: 8%; right: 8%; bottom: 7%; display: flex; flex-wrap: wrap; gap: 10px; }
.format { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 28px -14px rgba(18, 19, 23, 0.3); font-size: 14px; font-weight: 500; }
.format b { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 26px; padding: 0 7px; border-radius: 999px; font: 600 11px/1 var(--mono); color: #fff; }
.format:nth-child(1) b { background: var(--accent); }
.format:nth-child(2) b { background: var(--ink); }
.format:nth-child(3) b { background: var(--violet); }

/* ---------- two-up panel ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.duo-item { position: relative; display: grid; align-content: center; justify-items: center; gap: 20px; padding: 72px 40px; text-align: center; }
.duo-item + .duo-item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.duo-item .h2 { max-width: 440px; }
.duo-item .h2 span { display: block; color: var(--ink-3); }

/* ---------- details rail ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--pill); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.16s, opacity 0.16s; }
.rail-nav button:hover { background: var(--pill-hover); }
.rail-nav button:disabled { opacity: 0.35; cursor: default; }
.rail-nav .icon { width: 18px; height: 18px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 72px) / 4)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.tile-art { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; isolation: isolate; }
.tile-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.tile-art span { position: relative; display: grid; justify-items: center; gap: 10px; font-size: 24px; letter-spacing: -0.01em; text-align: center; padding: 0 20px; line-height: 1.3; }
.tile-art .icon { width: 46px; height: 46px; stroke-width: 1.4; }
.art-blue { background: radial-gradient(80% 80% at 70% 20%, #8fb0ff, #3b63fb 60%, #2a46c9); }
.art-navy { background: radial-gradient(90% 80% at 30% 20%, #3a4fbf, #121a4a 70%); }
.art-night { background: radial-gradient(70% 70% at 50% 40%, #1d2a6b, #07080b 75%); }
.art-violet { background: radial-gradient(80% 80% at 70% 30%, #c4a8ff, #7c4ddb 65%, #4b2a9a); }
.art-teal { background: radial-gradient(80% 80% at 30% 30%, #7ae0d0, #0f8f86 65%, #0a5c62); }
.art-light { background: var(--surface); color: var(--ink); }
.tile h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.tile p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }
.tile kbd.k { height: 22px; min-width: 22px; font-size: 12px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font-size: 20px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--pill); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease), background-color 0.16s; }
.faq summary:hover i { background: var(--pill-hover); }
.faq summary .icon { width: 16px; height: 16px; stroke-width: 2; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .answer { padding: 0 60px 28px 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; }

/* ---------- final call to action ---------- */
.final { min-height: 560px; display: flex; align-items: flex-end; }
.final-inner { position: relative; z-index: 1; padding: clamp(40px, 6vw, 80px); display: grid; gap: 28px; }
.final .display { font-size: clamp(40px, 5vw, 72px); max-width: 900px; }
.final .hero-actions { justify-content: flex-start; }
.final .small { color: rgba(255, 255, 255, 0.55); }

/* ---------- footer ---------- */
.footer { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-tagline { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -0.015em; max-width: 420px; }
.footer h4 { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.footer li + li { margin-top: 12px; }
.footer li a { font-size: 15px; color: var(--ink); }
.footer li a:hover { color: var(--ink-3); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer-bottom .brand { font-size: 17px; }
.footer-bottom .brand svg { width: 26px; height: 26px; }

/* ---------- download page ---------- */
.dl-hero { position: relative; overflow: hidden; padding: 112px 0 104px; }
.dl-hero .hero-inner { gap: 22px; }
.dl-card {
  position: relative; z-index: 1; width: min(640px, 100%); margin-top: 20px; padding: 28px; border-radius: 28px; background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
}
.dl-card-head { display: flex; gap: 16px; align-items: flex-start; }
.os { width: 60px; height: 60px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.os .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.dl-card-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.dl-card-head p { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; }
.dl-card .hero-actions { justify-content: flex-start; margin: 0; }
.dl-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.hash { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; white-space: nowrap; }
.hash code { min-width: 0; font-size: 12px; color: var(--ink-2); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.copy-btn:hover { color: var(--ink); }
.copy-btn .icon { width: 14px; height: 14px; }
.copy-btn.done { color: var(--positive); }

.block { padding: 120px 0; }
.block-head { display: grid; gap: 12px; margin-bottom: 48px; max-width: 640px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .block-head { margin: 0; position: sticky; top: 120px; }

.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); }
.platform.current { box-shadow: inset 0 0 0 1.5px var(--ink); }
.platform .os { width: 56px; height: 56px; border-radius: 16px; }
.platform .os .icon { width: 28px; height: 28px; }
.platform > div { flex: 1; min-width: 0; }
.platform h3 { font-size: 17px; font-weight: 500; }
.platform p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.platform .soon { font-size: 13px; color: var(--ink-3); padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 32px 28px 36px; border-radius: 24px; background: var(--surface); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--ink-4); margin-bottom: 28px; }
.step h3 { font-size: 20px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.note-line { margin-top: 28px; display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-2); }
.note-line .icon { color: var(--ink); }

.spec { border-top: 1px solid var(--line); margin: 0; }
.spec-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec-row dt { color: var(--ink-3); }
.spec-row dd { margin: 0; }
.codeblock { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 24px; border-radius: 18px; background: var(--night); color: #e3e8ff; font: 14px/1.6 var(--mono); overflow-x: auto; }
.codeblock .copy-btn { background: rgba(255, 255, 255, 0.1); box-shadow: none; color: #cfd6f3; flex: none; }

.notes h3 { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; }
.notes h3:not(:first-child) { margin-top: 36px; }
.notes li { position: relative; padding: 0 0 0 22px; font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.notes li + li { margin-top: 8px; }
.notes li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.version-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; width: fit-content; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].shown { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  :root { --gutter: 28px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .hero-actions { justify-content: center; }
  .demo { max-width: 680px; width: 100%; margin: 0 auto; }
  .feature, .faq-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .feature-copy { max-width: 640px; }
  .split .block-head { position: static; }
  .rail { grid-auto-columns: minmax(260px, 42%); }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .panel { margin: 0 8px; border-radius: 22px; }
  .hero { padding: 72px 0 96px; min-height: 0; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-item + .duo-item::before { left: 18%; right: 18%; top: 0; bottom: auto; width: auto; height: 1px; }
  .platforms, .steps { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: 78%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 auto; }
  .card { aspect-ratio: 4 / 4.2; }
  .keycap { min-width: 44px; height: 44px; font-size: 18px; padding: 0 12px; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .faq .answer { padding-right: 0; }
  .final { min-height: 460px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dl-card { padding: 22px; }
  .hash code { max-width: 150px; }
  .dl-card .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement p .ch { color: var(--ink); }
}

/* license agreement page (license.html, generated from LICENSE.md by scripts/site-license.mjs) */
.legal { max-width: calc(760px + var(--gutter) * 2); padding-top: 72px; padding-bottom: 120px; color: var(--ink-2); line-height: 1.8; }
.legal h1 { margin: 0 0 12px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.legal h1 + p { margin-bottom: 32px; font-size: 14px; color: var(--ink-3); }
.legal h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.legal p, .legal ul, .legal blockquote { margin: 0 0 14px; }
.legal ul { padding-left: 1.3em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal strong { font-weight: 600; color: var(--ink); }
.legal blockquote { padding: 18px 22px; border-radius: 16px; background: var(--pill); }
.legal blockquote p { margin: 0; }
.dl-terms { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.dl-terms a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .legal { padding-top: 40px; padding-bottom: 80px; } }
