:root {
  --bg: #fbfbfd;
  --bg-soft: #f1f3f7;
  --card: #ffffff;
  --text: #1c1d21;
  --muted: #5d6270;
  --line: #e3e6ec;
  --accent: #1a6fe0;
  --accent-strong: #1559c4;
  --accent-soft: #e4eefc;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 24px 48px -16px rgb(16 24 40 / 18%);
  /* Geist for text and UI; Instrument Serif for headings. Both from Bunny Fonts (index.html). */
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --bg-soft: #1a1c20;
    --card: #1b1d21;
    --text: #ececf0;
    --muted: #a1a6b3;
    --line: #2b2e35;
    --accent: #3fa4ff;
    --accent-strong: #75bdff;
    --accent-soft: #15283f;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 24px 48px -16px rgb(0 0 0 / 60%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

kbd {
  font: 600 0.82em/1 var(--font);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-soft);
}

code {
  font: 0.85em ui-monospace, "Cascadia Mono", Consolas, monospace;
  word-break: break-all;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 400 25px/1 var(--font-display);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Hero ---------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero-icon {
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 10px 30px -10px rgb(26 111 224 / 45%);
}

.hero h1 {
  font-size: clamp(50px, 8.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--accent);
}

.lede {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font: 500 16px var(--font);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgb(26 111 224 / 60%);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #06213f;
  }
}

.btn-soon {
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: default;
}

.meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
}

.shot picture,
.shot > img {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot-hero {
  margin-bottom: 40px;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.shot figcaption strong {
  color: var(--text);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-tight {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}

.section h2 {
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.prose {
  max-width: 620px;
}

.prose p {
  margin: 0 0 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

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

/* ---------- Diagram ---------- */

.diagram {
  display: grid;
  grid-template-columns: 1.2fr 56px 1fr;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.d-note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
}

.d-title {
  font: 400 21px/1.1 var(--font-display);
  margin-bottom: 8px;
}

.d-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  white-space: nowrap;
}

.d-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.d-dot.is-doing {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px);
}

.d-chip {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.d-chip-plain {
  background: var(--line);
  color: var(--muted);
}

.d-arrow svg {
  width: 100%;
  height: 150px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.d-views {
  display: grid;
  gap: 10px;
}

.d-view {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.d-view strong {
  color: var(--text);
  font-size: 15px;
}

/* ---------- Principles ---------- */

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

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card h3 {
  font-size: 27px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card-quiet {
  background: var(--bg-soft);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 16px;
}

.card li + li {
  margin-top: 8px;
}

.under .prose {
  color: var(--muted);
}

/* ---------- Download ---------- */

.download {
  text-align: center;
  border-top: 1px solid var(--line);
}

.download h2 {
  margin-bottom: 0;
}

.note-box {
  max-width: 620px;
  margin: 36px auto 0;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--bg-soft);
  text-align: left;
  font-size: 15px;
}

.note-box p {
  margin: 0;
}

.note-box .small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .two-col,
  .pair {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .nav nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding-top: 32px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .diagram {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .d-arrow {
    display: none;
  }
  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
