/* Palette lifted from the app icon: warm near-black ground, coral particles.
   Coral is the only accent on the site — everything else stays quiet. */
:root {
  --bg: #0d0a0b;
  --surface: #171012;
  --surface-2: #201618;
  --surface-3: #2b1e20;
  --border: #2e2124;
  --text: #f3ece9;
  --muted: #a89c97;
  --accent: #eb5447;
  --accent-bright: #f07269;
  --accent-ink: #230a08;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --content: 1020px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
  font-weight: 650;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.1em 0.45em;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.container {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 24px;
}

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

/* ---- header ---- */

.site-header {
  padding-block: 22px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav .gh {
  display: inline-flex;
}

.site-nav .gh svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
  transition: fill 150ms ease;
}

.site-nav .gh:hover svg {
  fill: var(--text);
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-bright);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.btn-block {
  width: 100%;
}

/* ---- landing ---- */

/* First viewport = header + hero only; the demo starts below the fold. */
.hero {
  min-height: calc(100svh - 92px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 2rem 3rem;
}

.hero-icon {
  width: 112px;
  border-radius: 26px;
  margin-bottom: 2.2rem;
}

.hero .lead {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 1.8rem;
}

.cta-alt {
  margin-top: 1rem;
  color: var(--muted);
}

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88svh;
  padding-block: 3rem;
}

.shot img {
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
}

.demo {
  position: relative;
  width: min(880px, 100%);
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.demo video {
  display: block;
  width: 100%;
}

.demo-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(13, 10, 11, 0.68);
  color: var(--text);
  font: inherit;
}

.demo-cover[hidden] {
  display: none;
}

.demo-title {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
  transition: background-color 150ms ease;
}

.demo-cover:hover .demo-pill {
  background: rgba(255, 255, 255, 0.2);
}

.demo-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 4rem;
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.feature-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--text);
  margin-bottom: 1rem;
}

.features h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.features p {
  color: var(--muted);
  margin: 0;
}

/* ---- download ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dl-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4.5rem;
  align-items: start;
  max-width: 920px;
  padding-block: 4rem 4.5rem;
}

.dl-icon {
  width: 100%;
  max-width: 250px;
  border-radius: 56px;
}

.dl-sec {
  margin-bottom: 2.8rem;
}

.dl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dl-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.dl-head a {
  color: var(--muted);
  font-size: 0.95rem;
}

.dl-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.85rem 0 0;
}

.dl-meta .version {
  font-family: var(--font-mono);
}

.dl-sec h3 {
  margin: 1.7rem 0 0.6rem;
  font-size: 1rem;
}

.dl-sec pre {
  margin: 0;
}

/* ---- setup / install steps ---- */

.setup {
  max-width: 1000px;
  padding-block: 3.2rem 4.5rem;
  text-align: center;
}

.setup h1 {
  margin-bottom: 0.6rem;
}

.h1-sub {
  color: var(--muted);
}

.setup .lead {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 3.2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 650;
  margin-bottom: 1.2rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.3rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.step-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.step-card text {
  font-family: var(--font-sans);
}

/* Flat colors for the macOS-UI mockups inside the step cards. The blues are
   deliberate: they depict real macOS chrome (selection, folders), not brand. */
.mock-panel {
  fill: var(--surface-2);
  stroke: var(--border);
}

.mock-pill {
  fill: var(--surface-3);
  stroke: var(--border);
}

.mock-divider {
  stroke: var(--border);
}

.mock-title {
  fill: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.mock-dim {
  fill: var(--muted);
  font-size: 10.5px;
}

.mock-row {
  fill: var(--muted);
  font-size: 11.5px;
}

.mock-stroke {
  stroke: var(--muted);
}

.steps > li > p {
  margin: 0;
  color: var(--muted);
}

.steps strong {
  color: var(--text);
  font-weight: 600;
}

.after-install {
  font-size: 1.15rem;
}

/* ---- docs ---- */

.docs-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 3.5rem;
  padding-block: 2.5rem 4.5rem;
}

.docs-nav {
  position: sticky;
  top: 2rem;
  align-self: start;
  font-size: 0.95rem;
}

.docs-nav h2 {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 1.6rem 0 0.5rem;
}

.docs-nav h2:first-child {
  margin-top: 0;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav a {
  display: block;
  padding: 0.22rem 0;
  color: var(--muted);
}

.docs-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.docs-body {
  max-width: 680px;
  min-width: 0;
}

.docs-body section {
  margin-bottom: 3rem;
}

.docs-body h2 {
  padding-top: 0.5rem;
}

.docs-body h3 {
  margin-top: 2rem;
}

.docs-body [id] {
  scroll-margin-top: 1.5rem;
}

.docs-body p,
.docs-body li {
  color: var(--muted);
}

.docs-body strong {
  color: var(--text);
  font-weight: 600;
}

iframe.video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.2rem 0 1.8rem;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 0.55rem 1rem 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text);
  font-weight: 600;
}

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

/* ---- about / prose ---- */

.prose {
  max-width: 680px;
  padding-block: 2.5rem 4.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h2 {
  margin-top: 2.6rem;
}

.prose ol,
.prose ul {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.2rem 3rem;
  margin-top: 1rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.3rem;
}

.footer-links a {
  color: var(--muted);
}

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

/* ---- responsive ---- */

@media (max-width: 760px) {
  .hero-icon {
    width: 88px;
    border-radius: 20px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .dl-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dl-icon {
    max-width: 140px;
    border-radius: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-nav {
    position: static;
  }

  .site-nav {
    gap: 1rem;
  }
}

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

  * {
    transition: none !important;
  }
}
