:root {
  --bg: #0f1419;
  --bg-2: #16181c;
  --bg-3: #1c1f26;
  --border: #2f3336;
  --border-soft: #21262d;
  --text: #e7e9ea;
  --muted: #71767b;
  --muted-2: #8b93a1;
  --accent: #1d9bf0;
  --accent-warm: #f91880;
  --accent-good: #00ba7c;
  --accent-dim: rgba(29, 155, 240, 0.12);

  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --rhythm: clamp(1.25rem, 3.5vw, 2rem);
  --measure: 64ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(29, 155, 240, 0.06), transparent 70%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover { border-bottom-color: var(--accent); }

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

kbd {
  display: inline-block;
  padding: 0 .35em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-2);
  font-size: .85em;
  color: var(--text);
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 1.75rem) 3rem;
}

/* ─── hero ─────────────────────────────────── */

.hero {
  text-align: center;
  margin-bottom: calc(var(--rhythm) * 2);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.wordmark {
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
  line-height: 1;
  display: inline-block;
}

.wordmark::after {
  content: "▋";
  color: var(--accent);
  font-weight: 400;
  font-size: .55em;
  margin-left: .1em;
  vertical-align: 0.18em;
  animation: blink 1.1s steps(1, end) infinite;
}

.tagline {
  color: var(--muted-2);
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  margin: 0 auto var(--rhythm);
  max-width: 52ch;
  text-wrap: balance;
}

/* ─── install block ────────────────────────── */

.install {
  margin: 0 auto calc(var(--rhythm) * .8);
  text-align: center;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0;
  padding: .7rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  line-height: 1.4;
  white-space: nowrap;
  text-align: left;
  max-width: 100%;
  overflow-x: auto;
}

.cmd .prompt { color: var(--accent); user-select: none; margin-right: .4em; }
.cmd .url { color: var(--text); }

.copy {
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  padding: .2rem .45rem;
  cursor: pointer;
  transition: color 120ms, border-color 120ms, background 120ms;
}

.copy:hover { color: var(--text); border-color: var(--muted); }
.copy.ok { color: var(--accent-good); border-color: var(--accent-good); }

.sub {
  color: var(--muted);
  font-size: .8rem;
  margin: .6rem 0 0;
  text-align: center;
}

.sub code {
  background: var(--bg-2);
  padding: .08em .4em;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  color: var(--text);
}

/* ─── action buttons ───────────────────────── */

.actions {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--bg-2);
  font-size: .88rem;
  transition: border-color 120ms, color 120ms, background 120ms, transform 120ms;
}

.btn:hover {
  border-color: var(--muted);
  border-bottom-color: var(--muted);
  transform: translateY(-1px);
}

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

.btn.primary:hover { background: rgba(29, 155, 240, 0.18); }

/* ─── screenshot ───────────────────────────── */

.shot {
  margin: calc(var(--rhythm) * 1.2) 0;
  text-align: center;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.shot figcaption {
  margin-top: .75rem;
  color: var(--muted-2);
  font-size: .85rem;
}

.shot figcaption code {
  background: var(--bg-2);
  padding: .08em .45em;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  color: var(--accent-warm);
}

/* ─── features ─────────────────────────────── */

.features { margin-top: calc(var(--rhythm) * 1.5); }

.features h2 {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.features dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem 1.5rem;
  margin: 0;
}

.features .feat {
  display: contents;
}

.features dt {
  color: var(--accent);
  font-weight: 500;
  padding-top: 2px;
}

.features dd {
  margin: 0;
  color: var(--text);
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--border-soft);
}

.features .feat:last-child dd { border-bottom: 0; padding-bottom: 0; }

/* ─── pull quote ───────────────────────────── */

.quote {
  margin: calc(var(--rhythm) * 1.8) auto calc(var(--rhythm) * 1.2);
  text-align: center;
}

.quote blockquote {
  margin: 0 auto;
  max-width: 44ch;
  color: var(--muted-2);
  font-style: italic;
  font-size: 1rem;
  border-left: 2px solid var(--accent);
  padding: .2rem 0 .2rem 1.2rem;
  text-align: left;
  display: inline-block;
}

.quote blockquote p { margin: 0; }

/* ─── footer ───────────────────────────────── */

.foot {
  margin-top: calc(var(--rhythm) * 1.5);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}

.foot a { color: var(--muted-2); }
.foot a:hover { color: var(--text); border-bottom-color: var(--muted); }
.foot .dot { margin: 0 .5rem; color: var(--border); }
.foot .muted { color: var(--muted); }

/* ─── small viewports ──────────────────────── */

@media (max-width: 600px) {
  .features dl {
    grid-template-columns: 1fr;
    gap: .5rem 0;
  }
  .features dt { padding-top: 0; }
  .features dd {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .cmd {
    font-size: .78rem;
    padding: .6rem .8rem;
    gap: .6rem;
  }
}

@media (max-width: 360px) {
  .cmd {
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark::after { animation: none; }
  .btn:hover { transform: none; }
}
