/* Shared by index.html and releases.html. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e6eb;
  --accent: #2f6fe4;
  --accent-text: #ffffff;
  --accent-soft: #e8f0fd;
  --shadow: 0 18px 50px rgba(20, 40, 80, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --bg-alt: #17191c;
    --card: #1d1f23;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2f34;
    --accent: #4d8bf5;
    --accent-soft: #1d2a40;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 12px; text-align: center; }
.lead { color: var(--muted); font-size: 1.15rem; text-align: center; max-width: 680px; margin: 0 auto 48px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
header nav { margin-left: auto; display: flex; gap: 24px; font-size: 0.95rem; white-space: nowrap; }
header nav a { color: var(--muted); }
header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); margin: 0 0 16px; }
.hero p.sub { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.version { color: var(--muted); font-size: 0.9rem; margin: 16px 0 0; }
.video {
  margin: 56px auto 0; max-width: 1040px;
  border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); border-bottom: 0;
  aspect-ratio: 16 / 10; background: var(--bg-alt);
}
.video video { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .glyph {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.feature .glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px; }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s ease; }
.shots a:hover img { transform: scale(1.02); }
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; text-align: center; }
.shots figcaption strong { color: var(--text); }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.dl.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dl .os { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.dl .os svg { width: 30px; height: 30px; fill: var(--text); }
.dl h3 { margin: 0; font-size: 1.35rem; }
.dl .badge { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; display: none; }
.dl.recommended .badge { display: inline-block; }
.dl .req { color: var(--muted); font-size: 0.93rem; margin: 0 0 20px; }
.dl .btn { justify-content: center; margin-bottom: 10px; }
.dl .size { font-weight: 400; opacity: 0.8; font-size: 0.9rem; }
.dl details { margin-top: auto; padding-top: 12px; font-size: 0.9rem; color: var(--muted); }
.dl summary { cursor: pointer; color: var(--text); font-weight: 500; }
.dl ol { padding-left: 20px; margin: 10px 0 0; }
.dl li { margin-bottom: 6px; }
code { font: 0.85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }

/* Release notes (releases.html). Each release is an <article class="release">, newest first. */
.page-head { padding: 64px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; }
.page-head .lead { margin-bottom: 24px; }
.releases { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.release { border-top: 1px solid var(--line); padding: 40px 0; }
.release:first-child { border-top: 0; padding-top: 16px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 16px; }
.release-head h2 { margin: 0; text-align: left; font-size: 1.6rem; }
.release-head h2 a { color: var(--text); }
.release-head time { color: var(--muted); font-size: 0.95rem; }
.tag { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
.release h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.release p { margin: 0 0 12px; }
.release ul { margin: 0; padding-left: 22px; }
.release li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

@media (max-width: 380px) { header nav a.hide-xs { display: none; } }
@media (max-width: 640px) {
  section { padding: 56px 0; }
  header nav { gap: 16px; }
  header nav a.hide-sm { display: none; }
  .shots { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
