:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #181823;
  --border: #262634;
  --text: #e9ebf1;
  --muted: #a0a6b8;
  --accent: #5ee7ff;
  --accent-ink: #04141a;
  --accent-deep: #1aa6c9;
  --danger: #ff6b6b;
  --radius: 12px;
  --max: 68rem;
  --measure: 44rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #9af1ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(10, 10, 15, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 0.4rem 0; display: inline-block; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* headings and prose */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.page { padding: 2.5rem 0 4rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--accent); font-weight: 700; margin-bottom: 0.8rem; }

/* hero */
.hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border); background: radial-gradient(60rem 28rem at 15% -10%, #12212b 0%, rgba(10, 10, 15, 0) 70%); }
.hero h1 { margin-bottom: 0.3em; }
.credit { border-left: 3px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); font-size: 1.12rem; margin: 1.4rem 0 1rem; }
.credit p { margin: 0; }
.credit-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.disclaimer { max-width: var(--measure); color: var(--muted); font-size: 0.95rem; }
.cta { margin: 1.6rem 0 0.4rem; }
.cta-note { color: var(--muted); font-size: 0.95rem; margin: 0.8rem 0 0; }
.cta-note span { white-space: nowrap; }

.btn { display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.85rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 1px solid var(--accent-deep); background: var(--surface-2); color: var(--text); }
.btn:hover { color: var(--text); border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #9af1ff; color: var(--accent-ink); }
.btn small { font-weight: 500; font-size: 0.8rem; opacity: 0.85; }

.soon { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; max-width: var(--measure); }
.soon h2, .soon h3 { margin-bottom: 0.3em; font-size: 1.2rem; }
.soon p { color: var(--muted); }
.soon .btn { margin-top: 0.3rem; }

/* sections and grids */
.section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin: 1.4rem 0 0; padding: 0; list-style: none; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.2rem 0.6rem; }
.tile h3 { color: var(--accent); }
.tile p { color: var(--muted); font-size: 1rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 0.6rem; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }
.reqs { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.5rem; max-width: var(--measure); }
.reqs li { padding-left: 1.6rem; position: relative; }
.reqs li::before { content: ""; position: absolute; left: 0.2rem; top: 0.7em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* screenshot placeholder */
.shot { margin: 2rem 0 0; }
.shot-box { aspect-ratio: 16 / 9; width: 100%; max-width: var(--max); display: grid; place-items: center; text-align: center; padding: 1rem; background: repeating-linear-gradient(135deg, #0f0f17 0 14px, #12121b 14px 28px); border: 1px dashed #3a3a4d; border-radius: var(--radius); color: var(--muted); }
.shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }

/* tables and download cards */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
td.mono, .mono { font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; word-break: break-all; }
.dl-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); margin: 1.2rem 0 2rem; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.dl-card h3 { margin-bottom: 0.2em; }
.dl-card .btn { margin: 0.8rem 0 0.5rem; }
.dl-card dl { margin: 0.8rem 0 0; }
.dl-card dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.7rem; }
.dl-card dd { margin: 0.1rem 0 0; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
.badge-pre { color: #ffd479; border-color: #6b5520; }
.pill-free { color: #7ef0a4; } .pill-paid { color: #ffb36b; } .pill-none { color: var(--muted); }

.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.9rem 1.1rem; margin: 1.2rem 0; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: #ffb36b; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 0.7rem; max-width: var(--measure); }
summary { cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--border); }
details .answer { padding: 0.9rem 1.1rem 0.3rem; color: var(--muted); }
details .answer a { color: var(--accent); }

/* licence */
.license { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; max-width: 52rem; }

/* changelog */
.release { border-top: 1px solid var(--border); padding: 1.6rem 0; max-width: var(--measure); }
.release:first-of-type { border-top: 0; }
.release h2 { margin-bottom: 0.2em; }
.release time { color: var(--muted); }
.release h3, .release h4, .release h5 { margin-top: 1.2em; font-size: 1.05rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
.foot-credit { max-width: var(--measure); color: var(--text); }
.foot-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
.foot-small { max-width: var(--measure); font-size: 0.88rem; margin: 0; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .hero { padding-top: 2.2rem; }
  .btn { width: 100%; }
  .section { padding: 2.2rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn-primary { border: 2px solid ButtonText; } }

/* screenshots gallery */
.shot picture, .shot img { display: block; width: 100%; max-width: var(--max); height: auto; }
.shot img { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.shots { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.shots .shot { margin: 0; }

/* contact form */
.contact-form { display: grid; gap: 1.1rem; max-width: var(--measure); margin: 1.5rem 0; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.75rem; width: 100%; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button.btn { align-self: start; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.1rem; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-hint { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.form-status { max-width: var(--measure); border-radius: var(--radius); padding: 0.9rem 1.1rem; border: 1px solid var(--border); background: var(--surface); }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: #2f7d4f; }
.form-status.err { border-color: var(--danger); color: var(--danger); }
