/* ferge website. Plain CSS, no build step. */

/* ---------- fonts (self-hosted, SIL Open Font License, see assets/fonts) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-opsz-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fira-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fira-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fira-sans-latin-600.woff2") format("woff2");
}

/* ---------- theme tokens: dark is the default ---------- */
:root {
  --bg: #06080a;
  --surface: #0e1215;
  --surface2: #161b1f;
  --text: #f2f5f4;
  --muted: #8f9aa0;
  --border: #1f262b;
  --accent: #49e0bd;
  --accent-fg: #04110d;
  --accent-soft: #0f3a31;
  --track: #1f262b;
  --amber: #ffbe5c;
  --amber-soft: #33240a;
  --amber-border: #7d5a1a;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 40px 120px rgba(0, 0, 0, .7);
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface2: #e9ebe7;
  --text: #0b0e0f;
  --muted: #50595c;
  --border: #d5d9d4;
  --accent: #006b55;
  --accent-fg: #ffffff;
  --accent-soft: #cfeee4;
  --track: #dde0db;
  --amber: #8a4208;
  --amber-soft: #fbecc9;
  --amber-border: #e3b866;
  --shadow: 0 1px 2px rgba(16, 24, 28, .06), 0 40px 120px rgba(16, 24, 28, .16);
  color-scheme: light;
}

/* ---------- base ---------- */
/* Keeps whatever is scrolled to or focused clear of the floating header. */
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.page { overflow-x: clip; }
[hidden] { display: none !important; }

a { color: var(--accent); }
a:hover { color: var(--text); }
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--accent-soft); }
code { font-family: var(--mono); }
p code { font-size: .9em; color: var(--text); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  font-weight: 600;
  transition: transform .15s, filter .15s;
}
.btn-primary, .btn-primary:hover { color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border);
  font-weight: 500;
  transition: background .15s, transform .15s;
}
.btn-ghost, .btn-ghost:hover { color: var(--text); }
.btn-ghost:hover { background: var(--surface2); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- key caps ---------- */
.k {
  font-family: var(--mono);
  font-size: 13px;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
}
.k.lit {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-right: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark { flex: none; }
.brand-mark .mark-gap { stroke: var(--surface); }
.brand-mark .mark-wave { stroke: var(--accent); }
.brand-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 11px 12px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.theme-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface2); }
.site-header .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  white-space: nowrap;
}
.site-header .btn-primary:hover { transform: none; }
@media (max-width: 640px) {
  .nav-link { display: none; }
}

/* ---------- first scene: hero, then the window ---------- */
.scene-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 88px 24px 0;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  min-height: 80svh;
}
.badge {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(6rem, 27vw, 24rem);
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.065em;
  padding-right: .06em;
}
.wordmark span { display: inline-block; }
.hero-wave {
  display: block;
  width: 100%;
  height: 24px;
  max-width: min(70vw, 900px);
  margin-top: clamp(4px, 1.5vw, 20px);
  color: var(--accent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.claim {
  margin: clamp(16px, 2.4vw, 32px) 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.02em;
  max-width: 18em;
  padding: 0 24px;
}
.subline {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 38em;
  padding: 0 24px;
}
.hero .btn-row { justify-content: center; margin-top: 28px; }
.hero-hint {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.demo-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.demo-step { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.demo-caption {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.025em;
}
.demo-keys { display: flex; align-items: center; gap: 8px; }
.winwrap { width: 100%; max-width: 1080px; }

/* ---------- the app window: the app's own dark UI in both themes ---------- */
.win {
  background: #0a0a0a;
  color: #fafafa;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: "Fira Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  color-scheme: dark;
}
.win svg { flex: none; }
.win ::selection { background: #1e3a5f; }

.win-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid #262626;
  color: #a3a3a3;
}
.tb-group {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 8px;
  background: #1b1b1b;
  min-width: 0;
}
.tb-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-btn.is-on { border-radius: 6px; background: #393939; color: #fafafa; }
.tb-btn.is-off { color: #555555; }
.tb-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #393939;
  color: #fafafa;
  white-space: nowrap;
}
.tb-space { flex: 1 1 20px; }
.tb-filter {
  flex: 0 1 250px;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 11px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #1b1b1b;
  color: #8a8a8a;
  white-space: nowrap;
  overflow: hidden;
}
.tb-filter svg { color: #fafafa; }
.tb-pct {
  min-width: 34px;
  padding: 0 5px;
  text-align: center;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.win-panes { display: flex; flex-wrap: wrap; }
.pane {
  flex: 1 1 380px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.pane-local { border-right: 1px solid #262626; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  color: #a3a3a3;
  white-space: nowrap;
  overflow: hidden;
}
.crumbs .crumb-ic { margin-left: 10px; }
.crumbs .sep { color: #5c5c5c; }
.crumbs .here { font-weight: 600; color: #fafafa; }
.pane-local .crumbs .here { color: #60a5fa; }
.crumbs .end { margin-left: auto; }
.crumbs .end + svg { margin-left: 8px; }

.cols, .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 124px;
  gap: 10px;
  align-items: center;
}
.cols {
  height: 26px;
  padding: 0 13px 0 43px;
  color: #a3a3a3;
  font-size: 12px;
}
.cols .r, .row-size { text-align: right; }
.row {
  height: 28px;
  margin: 0 5px;
  padding: 0 8px;
  border-radius: 6px;
}
.pane-remote .row { transition: opacity .3s, background .6s; }
.row.is-sel { background: #0e152b; }
.row.is-cursor { background: #1d1d1d; }
.row.is-out { opacity: 0; }
.row-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-size, .row-date { font-size: 12.5px; color: #a3a3a3; white-space: nowrap; }
.row-date { font-variant-numeric: tabular-nums; }
.ic-dir { color: #5b9ae8; }
.ic-grey { color: #a3a3a3; }
.ic-green { color: #3db468; }
.ic-red { color: #c85c5c; }
.ic-yellow { color: #caa513; }
.ic-purple { color: #9c6ed2; }
.pane-foot { margin-top: auto; padding-top: 8px; }
.pane-status {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-top: 1px solid #262626;
  font-size: 12.5px;
  color: #a3a3a3;
}

.xfers { padding: 10px 12px 12px; border-top: 1px solid #262626; }
.xfers-head { display: flex; align-items: baseline; gap: 9px; padding: 0 4px 9px; }
.xfers-title { font-size: 15px; font-weight: 600; }
.xfers-sum { font-size: 12.5px; color: #a3a3a3; }
.xfers-list {
  border: 1px solid #262626;
  border-radius: 10px;
  background: #111111;
  overflow: hidden;
}
.xfer { padding: 10px 12px 9px; transition: opacity .3s; }
.xfer + .xfer { border-top: 1px solid #262626; }
.xfer.is-out { opacity: 0; }
.xfer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  color: #fafafa;
}
.xfer-line svg { color: #a3a3a3; }
.xfer-line .xfer-act { margin-left: 6px; }
.xfer-name { white-space: nowrap; }
.xfer-route, .xfer-stat { font-size: 12.5px; color: #a3a3a3; white-space: nowrap; }
.xfer-route { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 160px; }
.xfer-stat { font-variant-numeric: tabular-nums; }
.xfer-bar {
  margin-top: 9px;
  height: 3px;
  border-radius: 2px;
  background: #212f40;
  overflow: hidden;
}
.xfer-bar span { display: block; height: 100%; border-radius: 2px; background: #60a5fa; }
#demo-b-bar { transition: width .25s linear; }
/* Below the design's 390 px the status would push the cancel icon onto a line
   of its own; let the status shorten instead. */
@media (max-width: 389px) {
  .xfer-stat { flex: 1 1 calc(100% - 64px); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- sections ---------- */
.section {
  padding: clamp(120px, 18vw, 260px) 24px 0;
  scroll-margin-top: -24px; /* with the scroll padding below: 60px above a section */
}
.wrap { max-width: 1320px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.section-title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: .94;
  font-weight: 700;
  letter-spacing: -.045em;
  max-width: 11em;
}
.lead {
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
}

/* why */
#why .section-title { margin-bottom: clamp(48px, 8vw, 120px); }
.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 48px;
  padding: clamp(20px, 3vw, 40px) 0;
  border-top: 1px solid var(--border);
}
.stat:last-child { border-bottom: 1px solid var(--border); }
.stat-num {
  font-family: var(--display);
  font-size: clamp(3.6rem, 14vw, 13rem);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.stat-unit {
  font-size: .32em;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-left: .2em;
}
.stat-text { flex: 0 1 380px; margin: 0; font-size: 1.125rem; color: var(--muted); }

/* features */
#features .section-title { margin-bottom: clamp(32px, 5vw, 72px); }
.feature {
  padding: clamp(56px, 9vw, 130px) 0;
  border-top: 1px solid var(--border);
}
.feature-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 96px;
}
.feature-reverse { flex-direction: row-reverse; }
.feature-text { flex: 1 1 380px; min-width: 0; }
.feature-no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.feature-no.is-amber { color: var(--amber); }
.feature-title {
  margin: 12px 0 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
}
.feature-body { margin: 0; font-size: 1.125rem; color: var(--muted); max-width: 30em; }

.feature-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 96px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.feature-head-title { flex: 1 1 420px; min-width: 0; }
.feature-head .feature-title { margin-bottom: 0; }
.feature-head .feature-body { flex: 1 1 380px; }
/* The screenshots carry a transparent margin with their own window border and
   shadow; pulling them out by 1.9 % lines the window edge up with the text. */
.shot {
  display: block;
  width: 103.8%;
  max-width: none;
  height: auto;
  aspect-ratio: 2992 / 1912;
  margin: 0 -1.9%;
}

.mock {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
}
.diagram { padding: 28px 24px; display: flex; flex-direction: column; gap: 22px; }
.diagram-line { display: flex; align-items: center; }
.host {
  flex: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}
.host-name { font-weight: 600; }
.host-path { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lane { flex: 1; min-width: 40px; position: relative; height: 24px; overflow: hidden; }
.lane-line { position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--accent); }
.boat {
  position: absolute;
  top: 6px;
  left: calc(50% - 5px);
  width: 10px;
  height: 12px;
  box-sizing: border-box;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
}
.diagram-note { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.diagram-self {
  align-self: center;
  padding: 10px 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.queue { padding: 8px; }
.queue-list { display: flex; flex-direction: column; gap: 4px; }
.queue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 8px;
  border-radius: 6px;
  background: var(--surface2);
}
.queue-name { flex: 0 0 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.queue-bar span { display: block; height: 100%; background: var(--accent); transition: width .25s linear; }
.queue-pct { flex: 0 0 40px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.conflict { margin-top: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.conflict-title { font-weight: 600; margin-bottom: 4px; }
.conflict-where { color: var(--muted); margin-bottom: 12px; }
.conflict-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.conflict-actions span { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); }
.conflict-actions .is-default { background: var(--accent-soft); border-color: var(--accent); }

.feature-more { padding-bottom: 0; }
.feature-more .feature-title { margin: 0 0 clamp(28px, 4vw, 48px); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.card p { margin: 0; color: var(--muted); }

/* tabs (shortcuts and install) */
.tablist { display: none; flex-wrap: wrap; gap: 4px; }
.js .tablist { display: flex; }
.tab {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}
.tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
/* Without JavaScript every panel is shown, each under its own label. */
.panel-label { margin: 0 0 8px; font-weight: 500; }
.js .panel-label { display: none; }

/* keyboard */
.kb { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.kb-shot {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 680px;
  width: 100%;
  height: auto;
  aspect-ratio: 1228 / 836;
}
.kb-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.keys-list { display: flex; flex-direction: column; margin: 0; }
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  border-top: 1px solid var(--border);
}
.key-row dd { display: flex; gap: 6px; flex: none; margin: 0; }
.more-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; }

/* install */
#install .lead { max-width: 36em; }
.install { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.install-panel { display: flex; flex-direction: column; gap: 16px; }
.install-panel .panel-label { margin: 0 0 -8px; }
.cmd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cmd pre {
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 5px 0;
}
.copy {
  display: none;
  flex: none;
  min-width: 76px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.js .copy { display: inline-block; }
.copy:hover { background: var(--surface2); }
.install-note { margin: 0; color: var(--muted); max-width: 46em; }
.install .btn-row { margin-top: 8px; }

.usage { margin-top: clamp(56px, 8vw, 104px); max-width: 980px; }
.usage h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
}
.terminal {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
}
.terminal:focus-visible { border-radius: 10px; }
.terminal pre { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.terminal .c { color: var(--muted); }

/* roadmap */
#roadmap { padding-bottom: clamp(96px, 14vw, 200px); }
#roadmap .lead { margin-bottom: clamp(48px, 7vw, 96px); }
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px 56px;
}
.roadmap h3 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.roadmap .is-now h3 { color: var(--accent); }
.roadmap .is-done h3 { color: var(--text); }
.roadmap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.035em;
}
.roadmap .is-later ul { color: var(--muted); }
.roadmap p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); overflow: hidden; }
.footer-bar {
  padding: 28px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-id { font-family: var(--mono); font-size: 13px; }
.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(7rem, 34vw, 34rem);
  line-height: .74;
  font-weight: 700;
  letter-spacing: -.065em;
  text-align: center;
  color: var(--surface2);
  margin-bottom: -.08em;
  user-select: none;
  /* The tall glyphs reach up over the links above; clicks must pass through. */
  pointer-events: none;
}

/* ---------- motion ---------- */
@keyframes fg-rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes fg-drift { to { transform: translateX(-120px); } }
@keyframes fg-cross { from { left: -12px; } to { left: 100%; } }
@keyframes fg-bob { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: fg-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .wordmark .rise:nth-child(1) { animation-delay: .05s; }
  .wordmark .rise:nth-child(2) { animation-delay: .12s; }
  .wordmark .rise:nth-child(3) { animation-delay: .19s; }
  .wordmark .rise:nth-child(4) { animation-delay: .26s; }
  .wordmark .rise:nth-child(5) { animation-delay: .33s; }
  .hero-wave.rise { animation-delay: .5s; }
  .claim.rise { animation-delay: .6s; }
  .subline.rise { animation-delay: .7s; }
  .btn-row.rise { animation-delay: .8s; }
  .hero-wave g { animation: fg-drift 6s linear infinite; }
  .boat { animation: fg-cross 1.1s linear infinite; }
  .hero-hint { animation: fg-bob 1.8s ease-in-out infinite; }

  /* Reveal on scroll. main.js adds .anim, so without it nothing is hidden. */
  .anim .rv {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  }
  .anim .rv.in { opacity: 1; transform: none; }
  .anim .rv.d1 { transition-delay: .1s; }
  .anim .rv.d2 { transition-delay: .2s; }
  .anim .rv.d3 { transition-delay: .3s; }
  .anim .rv.d4 { transition-delay: .4s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
