:root {
  --bg: #0b0b12;
  --bg-2: #11111b;
  --surface: #161622;
  --surface-2: #1d1d2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ececf4;
  --text-2: #a6a6bd;
  --text-3: #74748c;
  --purple: #8b7dff;
  --purple-2: #6b5cf0;
  --teal: #33d6a6;
  --pink: #ff77a8;
  --yellow: #fbf236;
  --grad: linear-gradient(120deg, #9d90ff 0%, #6fb6ff 45%, #33d6a6 100%);
  --radius: 16px;
  --max: 1180px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.88em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.pixelated { image-rendering: pixelated; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(11, 11, 18, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); text-decoration: none; }
.nav .btn { margin-left: 4px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 650; font-size: 0.98rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; background: #262638; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #8b7dff, #6b5cf0); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 108, 255, 0.7); }
.btn.primary:hover { box-shadow: 0 14px 36px -10px rgba(124, 108, 255, 0.85); }
.btn.big { height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .meta { font-weight: 500; opacity: 0.75; font-size: 0.85em; }

/* ------------------------------------------------ hero */
.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 50% 0%, rgba(124, 108, 255, 0.28), transparent 70%),
  radial-gradient(40% 40% at 85% 30%, rgba(51, 214, 166, 0.14), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(139, 125, 255, 0.12); border: 1px solid rgba(139, 125, 255, 0.35); color: #cfc9ff; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero h1 { max-width: 940px; margin: 0 auto 20px; }
.hero .lede { max-width: 760px; margin: 0 auto 32px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-2); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 14px; font-size: 0.88rem; color: var(--text-3); }
.platforms { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 0.85rem; background: rgba(255, 255, 255, 0.02); }
.pill svg { width: 14px; height: 14px; }

/* window frame for screenshots */
.shot { position: relative; border-radius: 14px; background: #1b1b22; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4); overflow: hidden; }
.shot .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #24242d; border-bottom: 1px solid rgba(0, 0, 0, 0.5); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot .bar i:nth-child(2) { background: #febc2e; }
.shot .bar i:nth-child(3) { background: #28c840; }
.shot .bar span { margin: 0 auto; transform: translateX(-24px); color: #8b8b9c; font-size: 12.5px; font-weight: 600; }
.shot img { width: 100%; }
.hero-shot { margin: 56px auto 0; max-width: 1120px; position: relative; }
.hero-shot .shot { transform: perspective(2200px) rotateX(6deg); transform-origin: 50% 0; }
.float-gif { position: absolute; right: -18px; bottom: -34px; width: min(30%, 300px); border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9); image-rendering: pixelated; }
.float-label { position: absolute; right: 0; bottom: -62px; font-size: 0.8rem; color: var(--text-3); }
@media (max-width: 700px) { .float-gif, .float-label { display: none; } .hero-shot .shot { transform: none; } }

/* ------------------------------------------------ sections */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.12rem; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: flex; gap: 14px 40px; justify-content: center; flex-wrap: wrap; color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 18px; height: 18px; color: var(--teal); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: rgba(139, 125, 255, 0.4); transform: translateY(-2px); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(139, 125, 255, 0.14); color: #b9b0ff; }
.icon.teal { background: rgba(51, 214, 166, 0.14); color: var(--teal); }
.icon.pink { background: rgba(255, 119, 168, 0.14); color: var(--pink); }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); }
.checks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: rgba(51, 214, 166, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333d6a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks b { color: var(--text); font-weight: 650; }

.code { background: #0e0e16; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; margin: 22px 0 0; }
.code .code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font: 600 12px var(--mono); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.65; color: #d7d4ff; }
.code .k { color: #7fd6ff; } .code .s { color: #a6f0c6; } .code .c { color: #6c6c84; }
.copy { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 7px; padding: 3px 9px; font: 600 11.5px var(--font); cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--purple); }

.vision { margin-top: 18px; border-radius: 12px; border: 1px solid var(--line-2); image-rendering: pixelated; }
.caption { margin-top: 10px; color: var(--text-3); font-size: 0.85rem; text-align: center; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery figure .shot { box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9); transition: transform 0.2s ease; }
.gallery figure:hover .shot { transform: translateY(-3px); }
.gallery figcaption { margin-top: 10px; color: var(--text-2); font-size: 0.92rem; }
.gallery figcaption b { color: var(--text); font-weight: 650; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 560px) { .gallery .wide { grid-column: auto; } }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; background: rgba(5, 5, 10, 0.92); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 12px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8); }

/* comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.97rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.compare td:first-child { color: var(--text-2); width: 34%; }
.compare .yes { color: var(--teal); font-weight: 650; }
.compare .no { color: var(--text-3); }
.compare th:nth-child(2), .compare td:nth-child(2) { background: rgba(139, 125, 255, 0.06); }
.table-scroll { overflow-x: auto; }

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr; } }
.dl { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dl.recommended { border-color: rgba(139, 125, 255, 0.6); box-shadow: 0 0 0 1px rgba(139, 125, 255, 0.25), 0 24px 60px -30px rgba(124, 108, 255, 0.7); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head svg { width: 34px; height: 34px; }
.dl-head h2, .dl-head h3 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.dl-head .badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(139, 125, 255, 0.18); color: #cfc9ff; display: none; }
.dl.recommended .badge { display: inline-block; }
.dl .files { display: grid; gap: 10px; }
.dl .file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.dl .file:hover { border-color: var(--purple); text-decoration: none; }
.dl .file b { font-weight: 650; }
.dl .file small { color: var(--text-3); display: block; font-size: 0.8rem; }
.dl .file svg { width: 20px; height: 20px; color: var(--purple); flex: none; }
.dl .note { color: var(--text-3); font-size: 0.86rem; margin: 0; }
.checksums { margin-top: 26px; }
.checksums summary { cursor: pointer; color: var(--text-2); font-weight: 600; }
.checksums pre { background: #0e0e16; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 12px; overflow-x: auto; color: var(--text-2); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* final cta */
.final { text-align: center; padding: 110px 0; background: radial-gradient(50% 70% at 50% 100%, rgba(124, 108, 255, 0.25), transparent 70%); }
.final img { width: 96px; height: 96px; margin: 0 auto 24px; image-rendering: pixelated; border-radius: 22px; box-shadow: 0 20px 60px -10px rgba(124, 108, 255, 0.6); }

/* page header (inner pages) */
.page-head { padding: 80px 0 40px; text-align: center; position: relative; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(124, 108, 255, 0.22), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head p { max-width: 760px; margin: 0 auto; color: var(--text-2); font-size: 1.15rem; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 56px; font-size: 1.9rem; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.tools-table td:first-child { white-space: nowrap; }
.tools-table code { color: #d7d4ff; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--text-3); font-size: 0.9rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
footer a { color: var(--text-2); display: block; margin-bottom: 8px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
