:root {
  --bg: #0d0e12;
  --surface: #15171d;
  --raised: #1b1e26;
  --border: #252933;
  --border-strong: #343947;
  --text: #eceef3;
  --dim: #a1a7b4;
  --faint: #808796;
  --rose: #d93f64;
  --rose-text: #e65a7d;
  --gold: #f2c14e;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 32px; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 10px; }
p { margin: 0 0 14px; }

code, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--raised); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; word-break: break-word; }

kbd {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
}

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

.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: var(--gold); color: #241a02; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 14, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.top nav a:hover { color: var(--text); background: var(--surface); }

/* Hero */
.hero { text-align: center; padding: 72px 0 24px; overflow: hidden; }
.hero-logo { margin: 0 auto 18px; }
.hero h1 { font-size: 56px; font-weight: 750; letter-spacing: -0.02em; }
.pitch { font-size: 21px; max-width: 34em; margin: 14px auto 0; line-height: 1.75; }
.fine { color: var(--faint); font-size: 14px; margin: 18px 0 0; }

.actions { display: flex; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 16px;
}
/* Placeholder until there is a release: not a link, visibly inactive. */
.btn-off { cursor: default; color: var(--dim); background: var(--surface); border: 1px solid var(--border-strong); }
.soon { font-size: 13px; font-weight: 500; color: var(--faint); padding-left: 10px; border-left: 1px solid var(--border-strong); }

/* The hotkey, drawn like the app's keycap with its pencil. */
.hk {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px;
  vertical-align: 1px;
  font: inherit; font-size: 17px; line-height: 1;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.hk kbd { font-size: 16px; }
.pen { width: 13px; height: 13px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
button.hk { cursor: pointer; transition: border-color 0.14s, background-color 0.14s; }
button.hk .pen { display: block; }
button.hk:hover { background: #232732; }
button.hk:hover .pen { stroke: var(--text); }
button.hk.on { border-color: var(--rose); background: rgba(217, 63, 100, 0.12); }
button.hk.on kbd { color: var(--rose-text); }
button.hk.on .pen { display: none; }

.shot { margin: 0; }
.shot a { display: block; border-radius: 12px; }
.shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.hero-shot { margin-top: 48px; }

/* Sections */
.section { padding: 96px 0 8px; }
.lead { color: var(--dim); margin-top: -18px; margin-bottom: 24px; }
.note { color: var(--dim); font-size: 14px; margin-top: 20px; }
.center { text-align: center; }
.nw { white-space: nowrap; }

/* Features: a piece of the real UI beside a title and a sentence, alternating sides. */
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.row:first-of-type { border-top: 0; padding-top: 0; }
.row:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row:nth-of-type(even) .row-text { order: 2; }
.row-text p { color: var(--dim); max-width: 30em; margin: 0; }
.row-img { display: flex; justify-content: center; }

.tag { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--faint); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; vertical-align: 2px; white-space: nowrap; }

.points {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 48px;
  color: var(--dim);
}
.points strong { color: var(--text); font-weight: 600; margin-right: 8px; }

/* Performance */
.perf { border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.perf th, .perf td { padding: 9px 28px 9px 0; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.perf thead th { color: var(--faint); font-weight: 500; font-size: 13px; }
.perf tbody th { font-weight: 500; color: var(--text); padding-right: 40px; }
.perf td { color: var(--dim); text-align: right; }
.perf thead th:not(:first-child) { text-align: right; }

/* Screenshots */
#screenshots .shot + .shot { margin-top: 48px; }
.shot-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
figcaption { color: var(--dim); font-size: 15px; margin-top: 12px; text-align: center; }

/* Footer */
.foot { margin-top: 96px; border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--dim); font-size: 15px; }
.foot p { margin: 0; }
.foot img { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.foot .fine { margin-top: 10px; max-width: 46em; }

@media (max-width: 860px) {
  .row, .row:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; }
  .row:nth-of-type(even) .row-text { order: 0; }
}

@media (max-width: 640px) {
  h2 { font-size: 25px; margin-bottom: 24px; }
  .brand span { display: none; }
  .top nav a { font-size: 14px; padding: 6px 8px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 42px; }
  .pitch { font-size: 18px; }
  .hk { height: 30px; font-size: 15px; }
  .hk kbd { font-size: 14px; }
  .hero-shot { margin-top: 36px; }
  .section { padding-top: 72px; }
  .row { padding: 36px 0; }
  .points { flex-direction: column; }

  .perf, .perf tbody, .perf tr, .perf th, .perf td { display: block; white-space: normal; }
  .perf thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .perf tbody tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .perf tbody tr:first-child { border-top: 1px solid var(--border); }
  .perf tbody th { border: 0; padding: 0 0 4px; }
  .perf td { border: 0; padding: 1px 0; display: flex; justify-content: space-between; gap: 16px; }
  .perf td::before { content: attr(data-label); color: var(--faint); }
}
