/* site.css v3 */
:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-alt: #0c1224;
  --panel: rgba(14, 20, 38, 0.78);
  --panel-strong: #10182f;
  --border: rgba(150, 168, 255, 0.14);
  --text: #e7ecff;
  --muted: #9ba8cf;
  --accent: #8ea2ff;
  --accent-strong: #6f88ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 136, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(102, 224, 196, 0.08), transparent 22%),
    linear-gradient(180deg, #050813 0%, #070b16 45%, #05070f 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-main a:not(.button):not(.brand-mark):not(.nav-links a):not(.shot-trigger) {
  text-decoration: underline;
  text-decoration-color: rgba(142, 162, 255, 0.35);
  text-underline-offset: 0.16em;
  transition: color 180ms ease, text-decoration-color 180ms ease, opacity 180ms ease;
}
.site-main a:not(.button):not(.brand-mark):not(.nav-links a):not(.shot-trigger):hover,
.site-main a:not(.button):not(.brand-mark):not(.nav-links a):not(.shot-trigger):focus-visible {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.site-main { display: block; }

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 28px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 0.98rem; }
.brand span { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(142, 162, 255, 0.95), rgba(102, 224, 196, 0.9));
  color: #070b16;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow);
}

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a,
.nav-toggle,
.button {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}
.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a:focus-visible,
.site-footer a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 42px 0 20px;
}

.section-label {
  margin: 0 0 12px;
  color: #a7b5e8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 0.95; letter-spacing: -0.05em; margin-bottom: 18px; max-width: 10ch; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 0; max-width: 14ch; }
h3 { font-size: 1.05rem; margin-bottom: 10px; }

.lede { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 58ch; }
.lede-secondary { margin-top: 10px; }

.hero-actions, .about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 46px;
  font-weight: 600;
  transition: box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, filter 180ms ease;
}
.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}
.button i.button-icon {
  width: auto;
  height: auto;
  font-size: 0.95rem;
}
.button > span { display: inline-block; vertical-align: middle; }
.button:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.nav-links a:hover, .nav-toggle:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07111f;
}
.button-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border);
}
.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255,255,255,0.07);
  border-color: rgba(142, 162, 255, 0.28);
}
.button-support {
  background: linear-gradient(135deg, #1eabb5, #2fd0a8);
  color: #061014;
}
.button-support .button-icon {
  color: currentColor;
}
.button:hover,
.button:focus-visible {
  filter: brightness(1.04) saturate(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.button-primary:hover,
.button-primary:focus-visible,
.button-support:hover,
.button-support:focus-visible {
  filter: brightness(1.06) saturate(1.08);
}

.hero-points, .checklist, .steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.glass-panel, .card, .site-footer, details.card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
}
.stat-grid div {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-grid span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.stat-grid strong { display: block; font-size: 1.1rem; line-height: 1.35; }

.section { padding: 28px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.features-heading {
  display: block;
  text-align: left;
}
.features-heading h2 {
  max-width: 16ch;
}
.screenshots-heading {
  display: block;
  text-align: left;
}
.screenshots-heading h2 {
  max-width: 16ch;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0 8px;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.card-grid, .screenshot-grid, .timeline, .faq-list {
  display: grid;
  gap: 16px;
}
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, details.card {
  border-radius: var(--radius);
  padding: 22px;
}
.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.card p, details.card p, .section p, .site-footer p { color: var(--muted); line-height: 1.75; }

.shot-trigger {
  all: unset;
  display: block;
  cursor: zoom-in;
}
.shot-trigger img { display: block; width: 100%; }

.release-card { padding: 24px; }
.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
}
.release-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(142, 162, 255, 0.14);
  color: var(--text);
  border: 1px solid rgba(142, 162, 255, 0.18);
  font-size: 0.84rem;
  font-weight: 700;
}
.release-body { 
  color: var(--muted);
  line-height: 1.85;
  white-space: normal;
}
.commits-grid .timeline-item small { color: #7f8bb3; }

.about-panel h2 { margin-bottom: 14px; }
.about-copy { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

details.card summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
details.card summary::-webkit-details-marker { display: none; }
details.card[open] summary { margin-bottom: 12px; }

.about-panel { display: grid; grid-template-columns: 1.1fr auto; gap: 20px; align-items: center; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  min-height: 76px;
  justify-content: center;
  text-align: center;
}
.site-footer p { margin: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.lightbox-dialog {
  position: relative;
  width: min(92vw, 1100px);
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 20, 0.96);
  box-shadow: var(--shadow);
  z-index: 1;
  overflow: visible;
}
.lightbox-dialog img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
}
.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.92);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.14) inset;
}
.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.92);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.14) inset;
}
.modal-prev { left: 24px; }
.modal-next { right: 24px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.floaty { animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero, .split, .about-panel, .section-heading, .site-footer, .download-panel {
    grid-template-columns: 1fr;
    display: grid;
  }
  .card-grid, .screenshot-grid, .timeline { grid-template-columns: 1fr 1fr; }
  .site-header { align-items: start; }
}

@media (max-width: 720px) {
  .page-shell { width: min(calc(100% - 20px), var(--max)); }
  .site-header { flex-wrap: wrap; align-items: center; }
  .brand { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.92rem;
  }
  .brand strong { font-size: 0.85rem; line-height: 1.2; }
  .brand span { font-size: 0.7rem; line-height: 1.2; }
  .nav-toggle { display: inline-flex; margin-left: 12px; flex-shrink: 0; }
  .download-actions { justify-content: flex-start; }
  .nav-links {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(9, 13, 25, 0.92);
  }
  .nav-links.open { display: flex; }
  h1 { max-width: none; }
  .hero, .section { padding-top: 24px; }
  .card-grid, .screenshot-grid, .timeline { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; }
  .lightbox-dialog { width: calc(100vw - 16px); }
  .modal-nav { width: 40px; height: 40px; }
  .modal-close { top: 16px; right: 16px; }
  .modal-prev { left: 16px; }
  .modal-next { right: 16px; }
}
