:root {
  --bg: #0b0f0e;
  --bg-elevated: #111816;
  --surface: #141a18;
  --surface-hover: #1a2320;
  --border: #24332c;
  --green: #0f3d2e;
  --green-light: #1a5a44;
  --green-glow: rgba(26, 90, 68, 0.35);
  --gold: #c9a227;
  --gold-soft: #e8c96a;
  --text: #f5f5f0;
  --muted: #9aa8a2;
  --muted-2: #6d7a74;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font-body);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 640px at 8% -12%, #163d2e 0%, transparent 58%),
    radial-gradient(900px 520px at 92% 0%, #2a2410 0%, transparent 52%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--bg);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 14, 0.82);
  border-bottom: 1px solid rgba(36, 51, 44, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-cta {
  color: var(--text) !important;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-visual { order: -1; }
  .nav { display: none; }
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: var(--text);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 8px 24px var(--green-glow);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-logo {
  width: min(300px, 72vw);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green) center/28px no-repeat;
}

.card-icon.android { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'%3E%3Cpath d='M17.6 9.48l1.84-3.18c.16-.27-.04-.62-.36-.62H4.92c-.32 0-.52.35-.36.62L6.4 9.48 12 4.5zM7.5 14.25c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm9 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM12 17.5c-2.5 0-4.65-1.58-5.5-3.8h11c-.85 2.22-3 3.8-5.5 3.8z'/%3E%3C/svg%3E"); }
.card-icon.windows { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'%3E%3Cpath d='M3 5.5L10.5 4.2v7.4H3V5.5zm8.5 0V12H21V3H11.5zm8.5 9.5H11.5v7.3L21 19.5V15zm-10 7.3V12H3v7.8l8.5 1.5z'/%3E%3C/svg%3E"); }
.card-icon.macos { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E"); }
.card-icon.linux { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'%3E%3Cpath d='M12.5 2c-.8 0-1.5.4-2 1-.3.4-.5.9-.6 1.4-.6-.1-1.2-.1-1.8 0-.1-.5-.3-1-.6-1.4-.5-.6-1.2-1-2-1-1.5 0-2.7 1.2-2.7 2.7 0 .5.1 1 .4 1.4-1.2.8-2 2.2-2 3.8v.1c0 .3.2.5.5.5h.1c-.1.4-.1.8-.1 1.2 0 2.5 1.5 4.6 3.6 5.5-.3.5-.5 1.1-.5 1.7 0 1.8 1.5 3.3 3.3 3.3.6 0 1.2-.2 1.7-.5.5.3 1.1.5 1.7.5 1.8 0 3.3-1.5 3.3-3.3 0-.6-.2-1.2-.5-1.7 2.1-.9 3.6-3 3.6-5.5 0-.4 0-.8-.1-1.2h.1c.3 0 .5-.2.5-.5v-.1c0-1.6-.8-3-2-3.8.3-.4.4-.9.4-1.4 0-1.5-1.2-2.7-2.7-2.7z'/%3E%3C/svg%3E"); }
.card-icon.ios { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a227'%3E%3Cpath d='M16.5 3c-1.2 0-2.6.8-3.5 1.9-.8 1-1.4 2.4-1.2 3.8 1.3.1 2.7-.7 3.5-1.8.8-1.1 1.4-2.5 1.2-3.9zM19.8 17.2c-.6 1.3-1.3 2.5-2.3 2.5-.9 0-1.2-.6-2.3-.6-1.1 0-1.4.6-2.3.6-1 0-2.1-1.2-2.7-2.4-1.5-2.6-2.1-6.4-.5-9.2.8-1.4 2.2-2.3 3.7-2.3.9 0 1.7.6 2.3.6.6 0 1.6-.7 2.7-.7 1.1 0 2.1.6 2.8 1.5-2.5 1.4-2.1 5 .4 6.2-.5 1.2-1.1 2.3-1.8 3.3z'/%3E%3C/svg%3E"); }

.card .btn { margin-top: 0.35rem; width: 100%; }
.meta { font-size: 0.75rem; color: var(--muted-2); }

.checksum-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.checksum-box code {
  font-size: 0.82rem;
  color: var(--gold-soft);
  background: var(--surface);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  word-break: break-all;
}

/* Two-column content */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 760px) { .split-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.panel h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.panel ul, .panel ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.panel li { margin: 0.35rem 0; }

details.install {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.65rem;
}
details.install summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details.install summary::-webkit-details-marker { display: none; }
details.install ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}
.link-chip:hover {
  border-color: var(--gold);
  text-decoration: none;
}
.link-chip svg { flex-shrink: 0; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin: 0.35rem 0; }

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
}

/* ── Changelog (minimal) ─────────────────────────────────── */
.changelog-body { --mono: "JetBrains Mono", ui-monospace, monospace; }

.cl-hero {
  padding: 2.25rem 0 0.5rem;
}
.cl-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
}
.cl-hero-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 40rem;
  margin: 0;
}
.cl-legend-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.cl-legend-inline .cl-dot { margin-right: 0.15rem; vertical-align: middle; }

.cl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cl-dot.critical { background: #ef4444; }
.cl-dot.important { background: #eab308; }
.cl-dot.medium { background: #f59e0b; }
.cl-dot.low { background: #22c55e; }

.cl-content { padding-bottom: 3rem; max-width: 720px; }

.cl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.cl-filters { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.cl-filter {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cl-filter:hover { color: var(--text); background: var(--surface); }
.cl-filter.active { color: var(--text); background: var(--surface); font-weight: 600; }
.cl-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.cl-root { display: flex; flex-direction: column; gap: 2.5rem; }

.cl-release {
  padding-top: 1.5rem;
}
.cl-release-head { margin-bottom: 1.25rem; }
.cl-release-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}
.cl-release-meta time { color: var(--gold-soft); font-weight: 500; }
.cl-version {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.cl-release-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.cl-release-summary {
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
}
.cl-release-count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cl-entry {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(36, 51, 44, 0.6);
}
.cl-entry:last-child { border-bottom: none; }
.cl-entry-marker { padding-top: 0.45rem; }
.cl-entry-meta {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.cl-entry--critical .cl-entry-meta { color: #f87171; }
.cl-entry--important .cl-entry-meta { color: #fbbf24; }
.cl-entry--medium .cl-entry-meta { color: #d97706; }
.cl-entry--low .cl-entry-meta { color: #4ade80; }
.cl-entry-plat { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.cl-entry-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}
.cl-entry-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.cl-release-foot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
}
.cl-foot-label { margin-right: 0.35rem; }
.cl-commit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold-soft);
  text-decoration: none;
  margin-right: 0.5rem;
}
.cl-commit:hover { text-decoration: underline; }

.cl-loading, .cl-empty, .cl-error {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 2rem 0;
}
