:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #0f0f0f;
  --surface-raised: #141414;
  --ink: #ededed;
  --muted: #a1a1a1;
  --faint: #666666;
  --line: #1f1f1f;
  --line-strong: #2e2e2e;
  --green: #4ade80;
  --blue: #8ab4f8;
  --radius: 12px;
  --text: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --wrap: 1080px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(237, 237, 237, 0.2);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p,
figure,
pre {
  margin: 0;
}

code {
  font-family: var(--mono);
}

p code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.88em;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-left: auto;
  margin-right: auto;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.site-footer a {
  transition: color 0.15s ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

a:focus-visible,
.copy:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}

h1 {
  max-width: 820px;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.lede {
  max-width: 580px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.download:hover {
  background: #ffffff;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.install:hover {
  border-color: var(--faint);
}

.install-prompt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 14px;
}

.install code {
  font-size: 14px;
  white-space: nowrap;
}

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

.copy .icon-check {
  display: none;
  color: var(--green);
}

.copy.copied .icon-copy {
  display: none;
}

.copy.copied .icon-check {
  display: block;
}

.fine {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}

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

/* ---------- app and CLI ---------- */

.showcase {
  position: relative;
  padding-bottom: 56px;
}

/* The screenshot is the window itself, with its own rounded corners and
   edge. The shadow follows its transparent corners. */
.app {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

.term {
  position: absolute;
  right: -32px;
  bottom: 0;
  width: min(480px, 46%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(15, 15, 15, 0.94);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.term pre {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.t-prompt {
  color: var(--faint);
}

.t-cmd,
.t-hl {
  color: var(--ink);
  font-weight: 500;
}

.t-ok {
  color: var(--green);
}

.t-inf {
  color: var(--blue);
}

/* ---------- points ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 104px);
}

.points h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.points p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

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

/* ---------- small screens ---------- */

@media (max-width: 1160px) {
  .term {
    right: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .showcase {
    padding-bottom: 0;
  }

  .term {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .term pre {
    font-size: 11px;
  }

  .points {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .actions,
  .download,
  .install {
    width: 100%;
  }

  .download {
    justify-content: center;
  }

  .install {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
