:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #444440;
  --ink-3: #555551;
  --line: #d4d4d0;
  --btn-bg: #1a1a1a;
  --btn-ink: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1d1d1b;
    --ink: #f2f2ef;
    --ink-2: #c4c4bf;
    --ink-3: #a3a39e;
    --line: #34342f;
    --btn-bg: #f2f2ef;
    --btn-ink: #141413;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--ink-3); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { color: var(--btn-ink); opacity: 0.85; }
.btn-lg { min-height: 56px; padding: 16px 24px; border-radius: 10px; font-size: 17px; }
.btn svg { flex: none; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.hero p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 480px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.hero-shot { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-shot img { width: 100%; max-width: 360px; height: auto; border-radius: 16px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.features h3 { margin: 0 0 8px; font-size: 18px; }
.features p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Install */
.install { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.install .wrap { padding-top: 96px; padding-bottom: 96px; }
.install h2 { margin: 0 0 40px; font-size: 36px; letter-spacing: -0.01em; }
.install-body { display: flex; flex-wrap: wrap; gap: 40px; }
.steps { flex: 2 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 24px; counter-reset: step; }
.steps li { display: flex; gap: 20px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.steps h3 { margin: 0; font-size: 18px; }
.steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.reqs {
  flex: 1 1 280px;
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); }
.reqs ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.8; }
.reqs .btn { min-height: 48px; border-radius: 10px; }
.reqs .all { font-size: 14px; text-align: center; }

/* Releases */
.releases { padding-top: 64px; padding-bottom: 96px; }
.releases h1 { margin: 0 0 32px; font-size: 48px; letter-spacing: -0.02em; }
.latest {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.latest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.latest-head > div { display: flex; align-items: baseline; gap: 12px; }
.latest h2 { margin: 0; font-size: 28px; }
.latest .btn { min-height: 48px; padding: 12px 20px; border-radius: 10px; }
.latest ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.history { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.history li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.history h2 { margin: 0; width: 64px; font-size: 20px; }
.history .what { flex: 1 1 280px; min-width: 0; font-size: 16px; }
.history a { font-size: 14px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--ink-3);
}
