:root {
  color-scheme: light dark;
  --bg: #f6f7fc;
  --surface: #ffffff;
  --text: #0c1024;
  --muted: #5a6280;
  --line: rgb(12 16 36 / 0.09);
  --accent: #3b63f5;
  --accent-ink: #ffffff;
  --glow-a: rgb(91 140 255 / 0.28);
  --glow-b: rgb(255 174 53 / 0.18);
  --code: rgb(12 16 36 / 0.05);
  --radius: 1.125rem;
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a1c;
    --surface: rgb(255 255 255 / 0.04);
    --text: #e9ecff;
    --muted: #98a0c2;
    --line: rgb(233 236 255 / 0.1);
    --accent: #5b82ff;
    --glow-a: rgb(70 100 255 / 0.32);
    --glow-b: rgb(255 140 60 / 0.16);
    --code: rgb(255 255 255 / 0.07);
  }
}

* {
  box-sizing: border-box;
}

/* Everything below is in rem, so the whole page scales with this root size:
   1rem up to ~80rem wide, growing smoothly to 1.375rem on large displays. */
html {
  font-size: clamp(16px, 0.55vw + 9px, 22px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(50rem 32rem at 8% -6rem, var(--glow-a), transparent 70%),
    radial-gradient(44rem 30rem at 100% 26rem, var(--glow-b), transparent 70%), var(--bg);
  color: var(--text);
  font: 1rem / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.nav,
main,
footer {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 1.375rem;
  font-size: 0.9062rem;
}

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

.nav nav a:hover,
.nav .github {
  color: var(--text);
}

footer {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

footer .fine {
  margin-top: 0.5rem;
  font-size: 0.7812rem;
}

section {
  padding: 4.5rem 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 0.875rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.125rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 62.4375rem;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.625rem, 6.4vw, 4.5rem);
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34rem;
  margin: 1.375rem 0 1.875rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  height: 3rem;
  padding: 0 1.375rem;
  border-radius: 0.8125rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 620;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.5rem rgb(20 30 80 / 0.12);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.button svg {
  width: 1.0625rem;
  height: 1.0625rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button small {
  margin-left: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta {
  margin: 1.125rem 0 0;
  font-size: 0.8438rem;
  color: var(--muted);
}

.hero-shot img {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.125rem;
}

.features article {
  padding: 1.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.features svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h3 {
  margin: 0.875rem 0 0.375rem;
  font-size: 1.125rem;
}

.features p,
.section-lede,
.install p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.section-lede {
  max-width: 44rem;
  font-size: 1.0938rem;
}

.flow picture {
  display: block;
  margin-top: 1.875rem;
}

.flow img {
  display: block;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.install ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.125rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install li {
  position: relative;
  padding: 1.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.install li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.875rem;
}

.install h3 {
  margin: 0.875rem 0 0.375rem;
  font-size: 1.125rem;
}

.install p + p,
.install pre + p {
  margin-top: 0.625rem;
}

pre {
  margin: 0.625rem 0 0;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  background: var(--code);
  overflow-x: auto;
  font-size: 0.7812rem;
}

.faq {
  max-width: 47.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.125rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 620;
  font-size: 1.0625rem;
}

.faq details p {
  margin-top: 0.625rem;
}

@media (max-width: 860px) {
  .hero,
  .features .grid,
  .install ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav nav a:not(.github) {
    display: none;
  }

  section {
    padding: 3.25rem 0;
  }
}
