/* Pi-Vis landing page.
   Static, no build step. Neutral palette in both color schemes; the screenshots
   carry the color. */

:root {
  --bg: #fcfcfc;
  --bg-soft: #f4f4f5;
  --text: #1b1b1f;
  --text-soft: #55555e;
  --text-faint: #8a8a93;
  --border: #e2e2e6;
  --border-strong: #cfcfd6;
  --link: #3661b0;
  --btn-bg: #1b1b1f;
  --btn-fg: #ffffff;
  --btn-bg-hover: #000000;
  --shot-shadow: 0 1px 2px rgba(20, 20, 24, 0.06), 0 12px 32px rgba(20, 20, 24, 0.1);
  --code-bg: #f0f0f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131317;
    --bg-soft: #1a1a20;
    --text: #e8e8ec;
    --text-soft: #a5a5b0;
    --text-faint: #6f6f7a;
    --border: #26262e;
    --border-strong: #34343e;
    --link: #8ab0ec;
    --btn-bg: #e8e8ec;
    --btn-fg: #131317;
    --btn-bg-hover: #ffffff;
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 44px rgba(0, 0, 0, 0.5);
    --code-bg: #1e1e25;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code,
pre {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

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

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

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

/* ── Nav ─────────────────────────────────────────────────────────── */

.nav {
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.nav__brand img {
  border-radius: 5px;
}

.nav__links {
  display: flex;
  gap: 22px;
}

.nav__links a {
  color: var(--text-soft);
  font-size: 14px;
}

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

@media (max-width: 640px) {
  .nav__inner {
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .nav__links {
    gap: 14px;
  }
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 56px);
}

.hero__lede {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 18px;
  color: var(--text-soft);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.button:hover {
  background: var(--btn-bg-hover);
  text-decoration: none;
}

.hero__install {
  display: inline-block;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--text-soft);
  font-size: 12.5px;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  text-align: left;
}

.hero__fineprint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ── Screenshots ─────────────────────────────────────────────────── */

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shot-shadow);
}

.shot--hero {
  margin-top: 48px;
}

/* ── Principles ──────────────────────────────────────────────────── */

.principles {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.principles__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.principles__list li {
  color: var(--text-soft);
  font-size: 14.5px;
}

.principles__list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.principles__list span {
  display: block;
}

/* ── Pitch ───────────────────────────────────────────────────────── */

.pitch {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.pitch h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.pitch p {
  color: var(--text-soft);
}

.pitch__prose p:last-child {
  margin-bottom: 0;
}

.pitch code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 800px) {
  .principles__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles__list {
    gap: 16px;
  }
}

/* ── Features ────────────────────────────────────────────────────── */

.features {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.feature {
  margin-bottom: 72px;
}

.feature__text {
  margin: 0 0 28px;
}

.feature h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature p {
  color: var(--text-soft);
  margin-bottom: 0;
}

.feature code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.principles__list li,
.feature-grid__item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-soft) 45%, transparent);
}

.feature-grid__item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-grid__item p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Colorschemes ────────────────────────────────────────────────── */

.schemes {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.schemes {
  padding: 64px 0 72px;
}

.schemes h2,
.schemes__lede {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.schemes h2 {
  font-size: 28px;
  margin-bottom: 14px;
}

.schemes__lede {
  color: var(--text-soft);
  margin-bottom: 40px;
}

.schemes__grid {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 20px;
}

.schemes__grid figure {
  margin: 0;
}

.schemes__grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  box-shadow: var(--shot-shadow);
}

.schemes__grid figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

.schemes__credits {
  max-width: 1060px;
  margin: 26px auto 0;
  padding: 0 24px;
  color: var(--text-faint);
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 800px) {
  .schemes__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Install ─────────────────────────────────────────────────────── */

.install {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.install h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.install__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.install__steps li {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  counter-increment: step;
}

.install__steps li > p:first-child::before {
  content: counter(step);
  display: inline-block;
  margin-right: 10px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--code-bg);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.install__steps li > p {
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .install__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.install pre {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--code-bg);
  overflow-x: auto;
}

.install__alt {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.install__alt code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Footer ──────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-faint);
}

.footer nav {
  display: flex;
  gap: 18px;
}

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