:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --bg-soft: #efebe3;
  --surface: #fffdf8;
  --surface-2: #f1ede5;
  --text: #1b1b1e;
  --muted: #6c6c73;
  --line: #e2ddd3;
  --line-strong: #d2ccc0;
  --accent: #2f6fed;
  --accent-soft: #e8efff;
  --amber: #e7a13c;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(40, 34, 24, .12);
  --shadow-soft: 0 10px 30px rgba(40, 34, 24, .07);
  --radius: 20px;
  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --bg-soft: #1a1a1d;
    --surface: #1c1c20;
    --surface-2: #242429;
    --text: #f5f3ee;
    --muted: #a2a2aa;
    --line: #303036;
    --line-strong: #414149;
    --accent: #79a6ff;
    --accent-soft: #1d2b49;
    --amber: #f0b45d;
    --shadow: 0 24px 60px rgba(0, 0, 0, .35);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .22);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 540px at 78% -8%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    radial-gradient(700px 500px at 4% 4%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 60%),
    var(--bg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
code, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.skip {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.skip:focus { top: 16px; }

.wrap { width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--wrap));
  margin: 14px auto 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 26px rgba(30, 26, 18, .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.topbar nav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.topbar nav a { padding: 8px 10px; border-radius: 9px; transition: background-color .16s, color .16s; }
.topbar nav a:hover { background: var(--surface-2); color: var(--text); }
.github-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  color: var(--muted);
  border-radius: 9px;
  transition: color .16s, background-color .16s;
}
.github-avatar:hover { color: var(--text); background: var(--surface-2); }
.github-avatar svg { width: 20px; height: 20px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(40px, 6vw, 78px);
  padding-block: clamp(64px, 9vw, 122px) clamp(48px, 6vw, 78px);
}
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(46px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 720;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 33em; margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform .16s, box-shadow .16s, background-color .16s, border-color .16s;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 30%, transparent); }
.button.quiet { background: transparent; }
.button.big { min-height: 54px; padding-inline: 24px; font-size: 15.5px; }
.version-pill {
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.meta { margin-top: 16px; color: var(--muted); font-size: 12.5px; letter-spacing: .01em; }

.hero-visual { position: relative; }
.window-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-2.2deg) rotateX(1.2deg);
  transform-origin: center;
}
.window-frame img { width: 100%; background: #fff; }
.float-card {
  position: absolute;
  left: -22px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.float-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.float-card span:last-child { display: grid; gap: 1px; }
.float-card b { font-size: 12.5px; }
.float-card small { color: var(--muted); font-size: 11px; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust > div { display: grid; gap: 3px; padding: 0 24px; border-left: 1px solid var(--line); }
.trust > div:first-child { border-left: 0; padding-left: 0; }
.trust b { font-size: 22px; letter-spacing: -.03em; }
.trust span { color: var(--muted); font-size: 12.5px; }

.section { padding-block: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 720px; }
.section-head h2, .workflow h2, .privacy h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 700;
}
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: none; }
.section-note { max-width: 330px; color: var(--muted); font-size: 14.5px; line-height: 1.75; padding-bottom: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  transition: transform .18s, border-color .18s, background-color .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-soft); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 17px; letter-spacing: -.015em; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.shot { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .35s; }
.shot:hover img { transform: scale(1.012); }
.shot .caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}
.caption b { font-size: 12.5px; }
.caption small { color: var(--muted); font-size: 11px; }

.workflow { display: grid; grid-template-columns: 1fr .9fr; gap: 54px; align-items: center; }
.workflow-copy p { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 32em; }
.text-link { display: inline-flex; gap: 6px; margin-top: 22px; color: var(--accent); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.shortcut-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.shortcut-card > div { display: flex; align-items: center; gap: 6px; min-height: 68px; padding: 14px 18px; background: var(--surface); }
.shortcut-card span { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 600;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 26px;
  background: #17181c;
  color: #f8f5ee;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.download-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,237,.45), transparent 68%);
  pointer-events: none;
}
.download-copy { position: relative; z-index: 1; }
.download-card .eyebrow { color: #a9a7b2; }
.download-card h2 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.05em; }
.download-lede { max-width: 34em; margin-top: 18px; color: #c9c6cf; font-size: 15.5px; line-height: 1.7; }
.download-card .button.quiet { background: transparent; border-color: #3d3e45; color: #f8f5ee; }
.download-card .meta { color: #9996a1; }
.checksum { margin-top: 24px; border-top: 1px solid #303138; padding-top: 16px; }
.checksum summary { cursor: pointer; color: #c9c6cf; font-size: 13px; }
.checksum p { margin-top: 12px; color: #9996a1; font-size: 12.5px; }
.hash-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hash-links a { color: #c9c6cf; text-decoration: underline; text-underline-offset: 3px; }
.hash-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid #303138; border-radius: 10px; background: #101115; }
.hash-row code { min-width: 0; overflow: auto; color: #c9c6cf; font-size: 11px; white-space: nowrap; }
.hash-row button { flex: none; padding: 5px 10px; border: 1px solid #3d3e45; border-radius: 7px; background: transparent; color: #f8f5ee; font-size: 11.5px; }
.hash-row button:hover { background: #24252b; }
.install-notes { display: grid; gap: 8px; margin-top: 14px; color: #9996a1; font-size: 12.5px; line-height: 1.6; }
.install-notes code { color: #c9c6cf; }

.download-side {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 26px;
  border: 1px solid #34353c;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
}
.download-side img { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 10px; }
.download-side strong { font-size: 20px; letter-spacing: -.02em; }
.side-version { color: #9996a1; font-size: 12px; }
.download-side dl { display: grid; gap: 10px; width: 100%; margin-top: 18px; }
.download-side dl div { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid #303138; font-size: 12.5px; }
.download-side dt { color: #9996a1; }
.download-side dd { color: #f8f5ee; }

.privacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.privacy-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.privacy-points p { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 65%, transparent); color: var(--muted); font-size: 13px; line-height: 1.7; }
.privacy-points b { display: block; margin-bottom: 5px; color: var(--text); font-size: 13.5px; }

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: clamp(72px, 9vw, 120px);
  padding-block: 26px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer nav { display: flex; gap: 16px; margin-left: auto; }
.footer nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer small { width: 100%; color: var(--muted); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 58px; }
  .hero-copy { max-width: 720px; }
  .window-frame { transform: none; }
  .float-card { left: 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot.wide { grid-column: span 2; grid-row: auto; }
  .workflow, .privacy { grid-template-columns: 1fr; gap: 34px; }
  .download-card { grid-template-columns: 1fr; }
  .download-side { grid-template-columns: auto 1fr; align-items: center; width: 100%; }
  .download-side img { grid-row: span 2; margin: 0 12px 0 0; }
  .download-side dl { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .download-side dl div { border-top: 0; padding-top: 0; }
  .section-head.split { display: block; }
  .section-note { margin-top: 18px; max-width: 42em; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { width: calc(100% - 20px); margin-top: 10px; padding-inline: 12px; }
  .topbar nav a:not(.github-avatar) { display: none; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 58px); }
  .float-card { display: none; }
  .trust { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .trust > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .feature-grid, .gallery, .privacy-points, .shortcut-card { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  .feature { min-height: 0; }
  .download-card { padding: 24px; border-radius: 20px; }
  .hash-row { align-items: stretch; flex-direction: column; }
  .hash-row button { align-self: flex-start; }
  .footer nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .button, .feature, .shot, .download-card, .shortcut-card { border: 1px solid CanvasText; }
}
