:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --ink: #06070a;
  --muted: #4d5562;
  --quiet: #8d95a3;
  --line: #e3e7ee;
  --line-strong: #cbd4e1;
  --panel: #ffffff;
  --blue: #2563eb;
  --blue-soft: #dbe7ff;
  --mint: #dff8ea;
  --lavender: #e8e9ff;
  --sky: #e2f4ff;
  --peach: #fff0df;
  --stone: #eceff3;
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
img { display: block; width: 100%; height: auto; }

.site-header, main, footer { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0 18px; }

.wordmark { color: var(--ink); font-size: 20px; font-weight: 620; }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  font-size: 15px;
}

nav a { color: #2f3745; }
nav a:hover { color: var(--blue); }

.hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 72px 0 28px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--quiet);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 13px;
  font-weight: 520;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-weight: 420; line-height: 1.05; letter-spacing: 0; }

h1 { max-width: 900px; font-size: clamp(42px, 6vw, 76px); line-height: 1.08; text-wrap: balance; }

h2 { max-width: 820px; font-size: clamp(31px, 4.3vw, 56px); }

h3 { font-size: 22px; font-weight: 450; }

p { margin: 0; }

.lede {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.actions, .stack-strip, .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 520;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.button.primary { border-color: var(--blue); color: #fff; background: var(--blue); }

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.stack-strip span,
.pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 12px;
}

.hero-shot, .feature-grid, .story-section, .flow-section, .screenshot-stack, .start { margin-top: 86px; }

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

.screenshot { margin: 0; min-width: 0; }

.screenshot-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.screenshot-link img { background: #fff; }

.screenshot-link span {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 1px solid rgba(203, 212, 225, 0.78);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 520;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.note { margin: 18px auto 0; color: var(--quiet); font-size: 14px; text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.feature-card {
  display: grid;
  align-content: space-between;
  min-height: 300px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.feature-card h2 { max-width: 100%; margin-top: 28px; font-size: clamp(28px, 3vw, 40px); }

.feature-card p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 28px;
  color: #1f2937;
  font-size: 18px;
}

.mint { background: var(--mint); }
.lavender { background: var(--lavender); }
.sky { background: var(--sky); }
.blue { background: var(--blue-soft); }
.peach { background: var(--peach); }
.stone { background: var(--stone); }

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 76px 0 0;
}

.story-section.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }

.story-section.reverse > div { order: 2; }

.story-section h2, .section-heading h2 { margin-top: 14px; }

.story-section p:not(.eyebrow),
.section-heading + p {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.pills { justify-content: flex-start; margin-top: 26px; }

.flow-section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading { display: grid; justify-items: center; gap: 0; text-align: center; }

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 52px;
}

.flow-column { display: grid; gap: 28px; }

.flow-column article,
.flow-node {
  position: relative;
  min-height: 144px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.flow-column:first-child article::after,
.flow-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 34px;
  border-top: 2px solid var(--line-strong);
}

.flow-column:first-child article::after { transform: translateY(-50%); }

.flow-node {
  display: grid;
  align-content: center;
  min-height: 360px;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.flow-node::after { transform: translateY(-50%); }

.flow-column:last-child article::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 34px;
  border-top: 2px solid var(--line-strong);
  transform: translateY(-50%);
}

.flow-diagram strong, .flow-diagram span { display: block; }

.flow-diagram strong { font-size: 22px; font-weight: 450; }

.flow-diagram span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.flow-node span { color: rgba(255, 255, 255, 0.82); }

.screenshot-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.start {
  padding: 86px 0 20px;
  border-top: 1px solid var(--line);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.start-step { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

.start-step p { margin-top: 14px; color: var(--muted); }

.start-step a {
  display: inline-block;
  margin-top: 16px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

pre {
  overflow-x: auto;
  width: 100%;
  margin: 22px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: #10131a;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.55;
}

code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace; }
pre code { color: inherit; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 58px 0 42px;
  color: var(--muted);
}

footer p { max-width: 720px; }

@media (max-width: 960px) {
  .site-header, main, footer { width: min(100% - 32px, 1200px); }

  .hero { padding-top: 56px; }
  h1 { font-size: clamp(38px, 9vw, 62px); }
  .feature-grid, .story-section, .story-section.reverse, .flow-diagram, .screenshot-stack, .start-grid { grid-template-columns: 1fr; }

  .story-section, .story-section.reverse { gap: 28px; padding-top: 42px; }

  .story-section.reverse > div { order: 0; }
  .feature-card { min-height: 250px; }
  .flow-node { min-height: 240px; }

  .flow-column:first-child article::after, .flow-node::after, .flow-column:last-child article::before { display: none; }

  footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  nav { justify-content: flex-start; gap: 8px 16px; }
  .hero { gap: 18px; padding: 38px 0 22px; }
  h1 { font-size: 35px; }
  .lede { font-size: 16px; }
  .button { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .stack-strip { display: none; }
  .hero-shot, .feature-grid, .story-section, .flow-section, .screenshot-stack, .start { margin-top: 58px; }

  .feature-card, .flow-column article, .flow-node, .start-step { padding: 22px; }

  .screenshot-link span {
    position: static;
    display: block;
    border-width: 1px 0 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
