:root {
  --bg: #06070a;
  --bg-2: #0a0c12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #14161e;
  --border: rgba(232, 236, 248, 0.09);
  --border-strong: rgba(232, 236, 248, 0.18);
  --hairline: rgba(255, 255, 255, 0.07);
  --text: #f2f3f8;
  --muted: #9aa3b8;
  --faint: #6d758c;
  --accent: #0a84ff;
  --accent-2: #64b4ff;
  --accent-dim: rgba(10, 132, 255, 0.16);
  --glow: rgba(10, 132, 255, 0.3);
  --on-accent: #ffffff;
  --danger: #ff453a;
  --ok: #32d74b;
  --warn: #f5c16c;
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-control: 11px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 30px 90px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(10, 132, 255, 0.2), transparent 60%),
    radial-gradient(760px 420px at -6% 14%, rgba(100, 90, 255, 0.09), transparent 55%),
    radial-gradient(900px 500px at 60% 115%, rgba(10, 132, 255, 0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.16);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.26);
  background-clip: padding-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

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

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  letter-spacing: -0.035em;
  font-weight: 650;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.hero h1,
.page-head h1 {
  background: linear-gradient(180deg, #ffffff 25%, #cbdaf7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap,
.wrap-wide {
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
}

.wrap {
  max-width: 1120px;
}

.wrap-wide {
  max-width: 1220px;
}

.skip {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  z-index: 90;
}

.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  background: rgba(8, 9, 14, 0.66);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

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

.brand img {
  display: block;
  width: 52px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(10, 132, 255, 0.35));
}

.brand .mac {
  color: var(--accent-2);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

#site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

#site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

#site-nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 3px rgba(0, 0, 0, 0.3);
}

#site-nav a.cta {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  font-weight: 600;
  padding: 8px 15px;
  margin-left: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 16px rgba(10, 132, 255, 0.35);
}

#site-nav a.cta:hover,
#site-nav a.cta.is-active {
  color: var(--on-accent);
  filter: brightness(1.08);
}

.promo-strip {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.18), rgba(10, 132, 255, 0.05));
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.promo-strip .wrap {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 9px 0;
  font-size: 0.88rem;
}

.promo-strip .tag {
  flex-shrink: 0;
}

.promo-strip p {
  margin: 0;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 220px;
}

.promo-strip a {
  flex-shrink: 0;
  font-weight: 600;
  text-decoration: none;
}

.promo-strip a:hover {
  color: #fff;
}

/* Hero / page heads */

.hero,
.page-head {
  padding: 72px 0 28px;
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 10px 0 0 var(--dot-yellow), 20px 0 0 var(--dot-green);
  margin-right: 20px;
}

.hero p.lede,
.page-head p.lede {
  font-size: 1.18rem;
  max-width: 42rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 26px rgba(10, 132, 255, 0.38);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 14px 32px rgba(10, 132, 255, 0.46);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: var(--faint);
  font-size: 0.88rem;
  margin-top: 18px;
}

/* Screenshots / lightbox triggers */

.shot {
  margin: 0;
  position: relative;
}

.shot a {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--border);
  background: #000;
  text-decoration: none;
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.shot a:hover {
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-strong);
}

.shot img {
  width: 100%;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.shot a:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

.shot-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(6, 8, 14, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shot a:hover .shot-hint,
.shot a:focus-visible .shot-hint {
  opacity: 1;
  transform: none;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero-shot {
  margin: 48px auto 8px;
  position: relative;
  z-index: 2;
}

.hero-shot .shot,
.hero-shot .shot a {
  display: block;
  width: 100%;
}

.hero-shot .shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-shot .shot a {
  border-radius: 22px;
}

/* Grids */

.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.card {
  position: relative;
  padding: 46px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 38px, var(--hairline) 39px, var(--hairline) 40px, transparent 40px),
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 16px 0 0 var(--dot-yellow), 32px 0 0 var(--dot-green);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

section {
  padding: 28px 0 56px;
  position: relative;
  z-index: 2;
}

.section-label {
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0 64px;
}

.split.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.split.reverse .copy {
  order: 2;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Feature catalog */

.catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}

.catalog article {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%), var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.catalog article:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2) 0%, rgba(255, 255, 255, 0.02) 100%), var(--surface-solid);
}

.catalog h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feat-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.feat-icon:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 18px rgba(10, 132, 255, 0.4);
}

.feat-icon:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.catalog p {
  margin: 0;
  font-size: 0.92rem;
}

#help-finder,
#help-terminal,
#help-embedded-terminal,
#help-bookmark,
#help-edit,
#help-delete,
#help-pane-header {
  scroll-margin-top: 88px;
}

#catalog,
#panes,
#git,
#bookmarks,
#remote,
#ftp-log,
#finder-terminal,
#terminal-follows,
#compare,
#bulk,
#files,
#find,
#preview,
#help,
#also-included,
#about {
  scroll-margin-top: 88px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 22px;
}

.gallery .shot:last-child {
  display: grid;
  gap: 16px;
}

kbd,
.key {
  font-family: var(--mono);
  font-size: 0.78em;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

/* Download / steps */

.dl-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 44px, var(--hairline) 45px, var(--hairline) 46px, transparent 46px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px 32px 32px;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  margin: 28px 0 56px;
}

.dl-panel::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green);
}

.dl-panel h2 {
  margin-bottom: 8px;
}

.req-list,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.req-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.req-list li:last-child {
  border-bottom: 0;
}

.req-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.req-list p {
  margin: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.steps li:last-child {
  border-bottom: 0;
}

.dl-panel .shot a,
.contact-card .shot a,
.logo-shot a {
  background: #f4f5f7;
  box-shadow: none;
  padding: 28px;
}

.dl-panel .shot img,
.contact-card .shot img,
.logo-shot img {
  max-height: 260px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.step-n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.callout strong {
  color: var(--text);
}

.warn {
  border-left-color: var(--warn);
}

/* Releases */

.timeline {
  border-left: 1px solid var(--border-strong);
  margin: 12px 0 0 12px;
  padding-left: 28px;
}

.release {
  position: relative;
  padding-bottom: 48px;
}

.release::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: baseline;
  margin-bottom: 8px;
}

.release-head time {
  color: var(--faint);
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--accent-2);
}

.release ul {
  color: var(--muted);
  padding-left: 1.1em;
}

.release li {
  margin: 6px 0;
}

/* Contact */

.contact-card {
  position: relative;
  max-width: 560px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 44px, var(--hairline) 45px, var(--hairline) 46px, transparent 46px),
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 36px 36px;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green);
}

.contact-card dl {
  margin: 22px 0 0;
}

.contact-card dt {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 18px;
}

.contact-card dd {
  margin: 4px 0 0;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.contact-card a:hover {
  color: var(--accent-2);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.band {
  margin: 12px 0 64px;
  padding: 36px;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 90% 0%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.band p {
  margin: 8px 0 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 4, 8, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #d5d9e6;
  margin: 0;
  font-size: 0.92rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(16, 18, 28, 0.8);
  color: #fff;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 50%;
  background: var(--dot-red);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease;
}

.lightbox-close::before {
  content: "\2715";
  font-size: 9px;
  line-height: 1;
  color: rgba(76, 0, 2, 0.7);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lightbox-close:hover {
  filter: brightness(1.08);
}

.lightbox-close:hover::before {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
}

body.lb-open {
  overflow: hidden;
}

/* Utilities */

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.fine {
  font-size: 0.88rem;
  color: var(--faint);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 8px 0 40px;
}

@media (max-width: 960px) {
  .grid-3,
  .cards,
  .catalog,
  .grid-2,
  .split,
  .split.reverse,
  .dl-panel,
  .gallery,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .split.reverse .copy {
    order: 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    background: var(--surface-solid);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  #site-nav.is-open {
    display: flex;
  }

  #site-nav a {
    padding: 12px 13px;
  }

  #site-nav a.cta {
    margin: 8px 0 0;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero,
  .page-head {
    padding-top: 40px;
  }

  .dl-panel,
  .band,
  .contact-card {
    padding: 22px;
    padding-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .shot img,
  .shot-hint,
  .card,
  .catalog article {
    transition: none;
  }
}

/* Home feature accordion */

.accordion {
  display: grid;
  gap: 12px;
  margin: 28px 0 8px;
}

.acc-item {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%), var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.acc-item:hover,
.acc-item[open] {
  border-color: var(--border-strong);
}

.acc-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.acc-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.acc-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.acc-title {
  flex: 1;
}

.acc-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}

.acc-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 2px;
}

.acc-item[open] .acc-chevron {
  transform: rotate(-135deg);
}

.acc-list {
  list-style: none;
  margin: 0;
  padding: 0 20px 18px 70px;
  display: grid;
  gap: 2px;
}

.acc-list a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}

.acc-list li:last-child a {
  border-bottom: none;
}

.acc-list a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .acc-list {
    padding-left: 20px;
  }
}

/* Docs */

.docs-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 48px;
}

.docs-toc {
  position: sticky;
  top: 84px;
}

.docs-toc p {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 960px) {
  .docs-toc p {
    flex: 1 0 100%;
    margin: 12px 0 0;
  }
}

.docs-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.9rem;
}

.docs-toc a:hover {
  color: var(--text);
}

.docs-toc .toc-gap {
  height: 14px;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
}

.sym {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: -3px;
}

.sym-lg {
  width: 22px;
  height: 22px;
}

.sym-gold {
  filter: sepia(1) saturate(8) hue-rotate(8deg) brightness(1.15);
}

h2.help-h,
h3.help-h,
h4.help-h {
  display: flex;
  align-items: center;
  gap: 10px;
}

h4.help-sub {
  font-size: 1rem;
  color: var(--muted);
  margin: 28px 0 8px;
  scroll-margin-top: 88px;
}

.help-block,
.docs-layout section {
  scroll-margin-top: 88px;
}

.help-block {
  margin-bottom: 44px;
}

.help-block p,
.help-block li {
  max-width: 46rem;
}

.help-block ul {
  color: var(--muted);
  padding-left: 1.15em;
}

.help-block li {
  margin: 6px 0;
}

.tb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
  align-items: stretch;
}

.tb-group {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tb-group .tb-item {
  border: none;
  background: transparent;
  border-radius: 0;
  min-width: 56px;
  padding: 8px 8px 6px;
}

.tb-group .tb-item + .tb-item {
  border-left: 1px solid var(--border);
}

.tb-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 64px;
  max-width: 76px;
  padding: 10px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tb-sep {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 48px;
  margin: 4px 10px;
  background: var(--border);
}

.tb-item img {
  width: 22px;
  height: 22px;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 36px;
}

.shortcut-table th {
  text-align: left;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 10px 10px 0;
  border-bottom: 1px solid var(--border-strong);
}

.shortcut-table td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.shortcut-table td:first-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.shortcut-table .keys {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.note {
  font-size: 0.92rem;
  color: var(--faint);
}

/* macOS-style fancy bulleted list */

.mac-list {
  list-style: none;
  margin: 16px 0 10px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mac-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  scroll-margin-top: 88px;
}

.mac-list li + li {
  border-top: 1px solid var(--border);
}

.mac-list li::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.mac-list li.has-icon {
  padding-left: 10px;
}

.mac-list li.has-icon::before {
  content: none;
}

.mac-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.mac-list li:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.mac-toc .mac-list {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .mac-toc {
    display: block;
  }

  .mac-toc .mac-list {
    margin-bottom: 12px;
  }
}

.dl-form-wrap {
  margin: 1em 0;
}

.dl-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dl-email {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
}

.dl-email::placeholder {
  color: var(--faint);
}

.dl-email:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.dl-error {
  color: var(--danger);
}

/* Action bar tour (Features page) */

.actionbar-tour {
  padding: 28px 0 8px;
}

.actionbar-tour .lede {
  max-width: 42rem;
  color: var(--muted);
}

.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.ab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ab-item img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.ab-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--text);
}

.ab-item:hover img {
  opacity: 1;
}

.ab-item.is-focused {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow);
}

.ab-item.is-focused img {
  opacity: 1;
}

.ab-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 42px, var(--hairline) 43px, var(--hairline) 44px, transparent 44px),
    var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: max-height 0.28s ease, opacity 0.22s ease, margin 0.28s ease;
}

.ab-panel.is-open {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
  margin: 4px 0 32px;
}

.ab-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.ab-panel-close {
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  background: var(--dot-red);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s ease;
}

.ab-panel-close::before {
  content: "\2715";
  font-size: 8px;
  line-height: 1;
  color: rgba(76, 0, 2, 0.7);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ab-panel-close:hover {
  filter: brightness(1.08);
}

.ab-panel-close:hover::before {
  opacity: 1;
}

.ab-panel-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ab-panel-dot-y {
  background: var(--dot-yellow);
}

.ab-panel-dot-g {
  background: var(--dot-green);
}

.ab-panel-icon {
  width: 18px;
  height: 18px;
  margin-left: 10px;
}

.ab-panel-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.ab-panel-desc {
  margin: 0;
  padding: 18px 20px 22px;
  color: var(--muted);
  max-width: 46rem;
}
