@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* The desktop (wallpaper, menu bar, dock) follows the system theme like macOS does.
   The terminal stays dark in both, matching the recordings inside it. */
:root {
  --wall-a: #4048be; --wall-b: #9646aa; --wall-c: #e6785a; --wall-d: #288cb4; --wall-base: #161830;
  --bar-bg: rgb(28 28 40 / .55); --bar-fg: #f2f1f7; --bar-line: rgb(255 255 255 / .08);
  --dock-bg: rgb(40 40 56 / .45); --dock-line: rgb(255 255 255 / .16);
  --foot-fg: rgb(255 255 255 / .78);

  --term-bg: #1e1e2e; --term-bar: #2a2a3c; --term-line: rgb(255 255 255 / .07);
  --fg: #cdd6f4; --muted: #9399b2; --dim: #7f849c;
  --accent: #89dceb;  /* the one accent: Catppuccin sky, as in the prompt */
  --ok: #a6e3a1;
  --surface: #181825; --surface-2: #313244;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 12px; --r-s: 8px;
}
@media (prefers-color-scheme: light) {
  :root {
    --wall-a: #8f9cf0; --wall-b: #d9a6e6; --wall-c: #f7c2a6; --wall-d: #8fd3ea; --wall-base: #ece9f4;
    --bar-bg: rgb(246 246 250 / .6); --bar-fg: #1c1c24; --bar-line: rgb(0 0 0 / .06);
    --dock-bg: rgb(255 255 255 / .42); --dock-line: rgb(255 255 255 / .6);
    --foot-fg: rgb(28 28 36 / .78);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100dvh; color: var(--fg); font: 16px/1.6 var(--sans);
  background: var(--wall-base);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 12% 18%, var(--wall-a), transparent 60%),
    radial-gradient(55vmax 55vmax at 88% 12%, var(--wall-b), transparent 60%),
    radial-gradient(65vmax 65vmax at 72% 100%, var(--wall-c), transparent 60%),
    radial-gradient(50vmax 50vmax at 6% 96%, var(--wall-d), transparent 60%),
    var(--wall-base);
}
a { color: inherit; }
code, pre, .term { font-family: var(--mono); }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: #fff; color: #111; padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Menu bar */
.menubar {
  position: sticky; top: 0; z-index: 20; height: 30px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13.5px; color: var(--bar-fg); background: var(--bar-bg);
  border-bottom: 1px solid var(--bar-line);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
}
.menubar-left, .menubar-right, .menubar nav { display: flex; align-items: center; gap: 18px; }
.menubar a { text-decoration: none; opacity: .9; }
.menubar a:hover { opacity: 1; }
.menubar-mark { font-size: 16px; }
.menubar time { font-variant-numeric: tabular-nums; }
.menubar .ph { font-size: 16px; }

/* Terminal window */
main { padding: 28px 16px 120px; }
.window {
  max-width: 1180px; margin: 0 auto; border-radius: var(--r); overflow: hidden;
  background: var(--term-bg);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .06), 0 30px 80px -20px rgb(10 8 40 / .55);
}
.titlebar {
  position: relative; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--term-bar); border-bottom: 1px solid rgb(0 0 0 / .3);
  font-size: 13px; color: var(--muted);
}
.lights { position: absolute; left: 14px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.term { padding: 22px clamp(16px, 3vw, 36px) 28px; font-size: 14.5px; line-height: 1.6; }
.term p { margin: 0; }
.sys { color: var(--dim); }
.ps { color: var(--dim); white-space: nowrap; }
.cmd { color: var(--fg); }
.line { margin-top: 2px; }

/* Hero: copy left, recording right; the recording leads on phones */
.hero { padding-top: clamp(4px, 1vw, 12px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.hero-copy { order: -1; padding-top: clamp(8px, 2vw, 28px); }
.hero-media { margin: 0; border-radius: var(--r-s); overflow: hidden; background: var(--term-bg); box-shadow: 0 0 0 1px var(--term-line); }
.hero-media video { display: block; width: 100%; height: auto; aspect-ratio: 820 / 640; }
h1 {
  margin: 0 0 16px; font: 600 clamp(30px, 3.3vw, 46px)/1.08 var(--sans); letter-spacing: -.03em; color: #f5f5fa;
}
h2 { margin: 18px 0 8px; font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--sans); letter-spacing: -.02em; color: #f5f5fa; }
h3 { margin: 0 0 10px; font: 600 15px/1.4 var(--sans); color: #f5f5fa; }
h1 span { display: block; }
@media (min-width: 861px) { h1 span { white-space: nowrap; } }
.lede { margin: 0 0 22px !important; font: 400 17.5px/1.55 var(--sans); color: var(--muted); max-width: 44ch; }
.lede.small { font-size: 16.5px; }

.install-line {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; margin-bottom: 14px;
  background: var(--surface); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--term-line);
}
.install-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; color: var(--fg); scrollbar-width: none; }
.install-line .ps { margin-right: 6px; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  padding: 7px 12px; border: 0; border-radius: 6px; font: 600 13px var(--sans);
  background: var(--accent); color: #11111b; transition: transform .15s ease, filter .15s ease;
}
.copy:hover { filter: brightness(1.08); }
.copy:active { transform: scale(.97); }
.copy.done { background: var(--ok); }

.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-s);
  font: 600 14.5px var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ph { font-size: 17px; }
.btn.ghost { color: var(--fg); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.btn.ghost:hover { background: rgb(255 255 255 / .06); }
.btn.sponsor { background: #f5c2e7; color: #11111b; }
.btn.coffee { background: #f9e2af; color: #11111b; }
.btn.sponsor:hover, .btn.coffee:hover { filter: brightness(1.05); }

/* Sections inside the terminal, each one a command and its output */
.block { margin-top: clamp(48px, 7vw, 80px); }
.block > .line { margin-bottom: 18px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; margin: 0; }
.features div { padding-left: 16px; border-left: 2px solid var(--surface-2); }
.features dt { display: flex; align-items: center; gap: 8px; font: 600 16px/1.4 var(--sans); color: #f5f5fa; }
.features dt .ph { color: var(--accent); font-size: 18px; }
.features dd { margin: 4px 0 0; font: 400 15.5px/1.55 var(--sans); color: var(--muted); max-width: 52ch; }
.features code, .note code, figcaption code { font-size: .9em; color: var(--fg); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

.tabs { display: flex; gap: 2px; padding: 3px; width: fit-content; max-width: 100%; overflow-x: auto; background: var(--surface); border-radius: var(--r-s); margin-bottom: 14px; }
.tabs button {
  border: 0; background: none; color: var(--muted); font: 600 13.5px var(--sans); padding: 7px 14px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--surface-2); color: #f5f5fa; }
.shots { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.shots .tabs { flex-direction: column; width: auto; margin: 0; }
.shots .tabs button { text-align: left; padding: 10px 14px; }
.panels { position: relative; }
.panels figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.panels a { display: block; border-radius: var(--r-s); }
.panels img { display: block; width: 100%; height: auto; border-radius: var(--r-s); }
.panels figcaption { margin-top: 12px; font: 400 14.5px var(--sans); color: var(--muted); }

.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; }
.steps, .hero-copy, .panels { min-width: 0; }
.steps h3:not(:first-child) { margin-top: 22px; }
.code { position: relative; background: var(--surface); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--term-line); margin-bottom: 10px; }
.code pre { margin: 0; padding: 12px 52px 12px 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.code .c { color: var(--dim); }
.code .copy { position: absolute; top: 8px; right: 8px; padding: 6px 8px; background: var(--surface-2); color: var(--fg); }
.code .copy.done { background: var(--ok); color: #11111b; }
.note { margin-top: 14px !important; font: 400 15px/1.55 var(--sans); color: var(--muted); }
.note a { color: var(--accent); }

.last { margin-top: clamp(40px, 6vw, 64px); }
#support + .last { margin-top: 36px; }
.cursor { display: inline-block; width: .6em; height: 1.15em; vertical-align: text-bottom; background: var(--fg); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Typed commands: text stays in the HTML; the reveal is cosmetic */
.cmd.typing { border-right: .6em solid var(--fg); }

.foot { max-width: 1180px; margin: 18px auto 0; text-align: center; font-size: 13.5px; color: var(--foot-fg); }
.foot p { margin: 0; }

/* Dock */
.dock {
  position: fixed; left: 50%; bottom: 12px; z-index: 20; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 8px; padding: 7px 9px;
  background: var(--dock-bg); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--dock-line), 0 10px 30px rgb(10 8 40 / .25);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
}
.dock a {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(180deg, #34344a, #1f1f2e); color: #f2f1f7; font-size: 24px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
.dock a:nth-of-type(4) { background: linear-gradient(180deg, #f7cbe9, #e59fd0); color: #4b1840; }
.dock a:nth-of-type(5) { background: linear-gradient(180deg, #fbe6b5, #f0c766); color: #4a3200; }
.dock a:hover, .dock a:focus-visible { transform: translateY(-8px) scale(1.18); }
.dock .sep { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--dock-line); }
.dock .tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  padding: 3px 9px; border-radius: 6px; font: 500 12.5px var(--sans); white-space: nowrap;
  background: rgb(30 30 42 / .9); color: #f2f1f7; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dock a:hover .tip, .dock a:focus-visible .tip { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .dock a, .btn, .copy { transition: none; }
  .dock a:hover, .dock a:focus-visible { transform: none; }
  .cursor { animation: none; }
}

/* Tablet and phone */
@media (max-width: 860px) {
  .menubar nav { display: none; }
  main { padding: 16px 10px 104px; }
  .term { font-size: 13px; padding: 16px 14px 22px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { order: 0; }
  .features, .install-grid, .shots { grid-template-columns: minmax(0, 1fr); }
  .shots { gap: 12px; }
  .shots .tabs { flex-direction: row; width: fit-content; }
  .shots .tabs button { padding: 7px 12px; }
  .features { gap: 22px; }
  .lede { font-size: 16.5px; }
  .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .dock { gap: 6px; padding: 6px 8px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .dock a { width: 42px; height: 42px; font-size: 22px; }
  .dock a:hover, .dock a:focus-visible { transform: none; }
  .dock .tip { display: none; }
}
@media (max-width: 420px) {
  .titlebar .title { font-size: 12px; }
  .install-line { padding-left: 10px; gap: 6px; }
  .install-line code { font-size: 11.5px; }
  .install-line .ps { margin-right: 4px; }
  .copy span { display: none; }
}
