:root {
  color-scheme: light dark;
  --background: #f7f7f8;
  --surface: #ededf0;
  --text: #202124;
  --muted: #61636b;
  --accent: #3b6cf5;
  --link: #315bce;
  --button-hover: #315bd2;
  --shadow: 0 12px 32px rgb(20 22 30 / 12%);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, ul { margin: 0; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: min(1100px, calc(100% - 64px));
  margin-inline: auto;
}

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

.wordmark {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.header-download {
  padding-block: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.hero { padding-top: 32px; }
.hero-copy {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

h1, h2 { font-weight: 600; text-wrap: balance; }
h1 {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 640px;
  margin: 24px auto;
  color: var(--muted);
  font-size: 18px;
}

.download-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease-out;
}

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

.download-button:focus-visible { border-radius: 8px; }
.beta-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.screenshot {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.feature, .engines { margin-top: 64px; }
.section-copy { max-width: 760px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.section-copy > p:last-child, .engines > p {
  margin-top: 16px;
  color: var(--muted);
}

.engines { text-align: center; }
.engine-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

.engine-grid li {
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 64px;
  padding-block: 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer small { margin-left: auto; font-size: inherit; }
.legal { max-width: 760px; padding-block: 32px; }
.legal h1 { margin: 0 0 32px; font-size: 36px; }
.legal p + p { margin-top: 16px; }
.operator-fields {
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
}
.operator-fields dt { font-weight: 500; }
.operator-fields dd { margin: 4px 0 24px; overflow-wrap: anywhere; }
.operator-fields dd:last-child { margin-bottom: 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101012;
    --surface: #1c1c20;
    --text: #efeff2;
    --muted: #a5a6ae;
    --link: #86a7ff;
    --shadow: 0 12px 32px rgb(0 0 0 / 24%);
  }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .site-header { padding-block: 16px; }
  .hero { padding-top: 24px; }
  .intro { font-size: 16px; }
  .download-button { width: 100%; }
  .feature, .engines { margin-top: 32px; }
  .screenshot { border-radius: 8px; }
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { margin-top: 32px; gap: 16px 24px; }
  .site-footer small { flex-basis: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .download-button { transition: none; }
}
