:root {
  color-scheme: light dark;
  --canvas: #f6f5f3;
  --surface: #ffffff;
  --ink: #1a1916;
  --ink-secondary: rgba(26, 25, 22, 0.62);
  --ink-tertiary: rgba(26, 25, 22, 0.42);
  --hairline: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #020202;
    --surface: #0a0a0a;
    --ink: #f2f0ec;
    --ink-secondary: rgba(242, 240, 236, 0.62);
    --ink-tertiary: rgba(242, 240, 236, 0.4);
    --hairline: rgba(255, 255, 255, 0.08);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family:
    -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.header-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: -8px 0 12px -8px;
}

header h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.024em;
  margin-bottom: 12px;
}

header .tagline {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
  max-width: 30em;
}

.hero {
  position: relative;
  margin: 0 -80px;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .hero-video {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
  }
}

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #1a1916;
  background: #ffffff;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.hero-play:hover {
  transform: translate(-50%, calc(-50% - 1px));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero-play:active {
  transform: translate(-50%, -50%);
}

.hero-play:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-play {
    transition: none;
  }
  .hero-play:hover {
    transform: translate(-50%, -50%);
  }
}

.features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features li {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.features li b {
  font-weight: 600;
  color: var(--ink);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.download-btn {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--canvas);
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease;
}

.download-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn[data-version=""] {
  display: none;
}

.download-fallback {
  display: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-tertiary);
  padding-bottom: 1px;
}

.download-btn[data-version=""] ~ .download-fallback {
  display: inline-block;
}

.brew {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-top: 4px;
  letter-spacing: -0.005em;
}

pre {
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  align-self: stretch;
}

code {
  font-family: inherit;
}

hr {
  border: none;
  border-top: 0.5px solid var(--hairline);
}

.requirements {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  letter-spacing: 0.005em;
}

.legal {
  gap: 32px;
}

.legal .back {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.12s ease;
}

.legal .back:hover {
  color: var(--ink);
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin-bottom: 16px;
}

.legal section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal p {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink-secondary);
}

.legal p b {
  font-weight: 600;
  color: var(--ink);
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--ink-tertiary);
}

.legal a:hover {
  text-decoration-color: var(--ink);
}

.legal code {
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  border-radius: 5px;
  padding: 1px 5px;
}

footer {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  text-align: center;
  margin-top: 24px;
  padding: 32px 0;
  border-top: 0.5px solid var(--hairline);
  letter-spacing: 0.005em;
}

footer a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.12s ease;
}

footer a:hover {
  color: var(--ink);
}

footer .dot {
  margin: 0 10px;
  color: var(--ink-tertiary);
}

@media (max-width: 860px) {
  main {
    padding: 64px 20px 32px;
    gap: 64px;
  }

  .header-logo {
    width: 56px;
    height: 56px;
    margin: -8px 0 8px -8px;
  }

  header h1 {
    font-size: 36px;
  }

  header .tagline {
    font-size: 16px;
  }

  .hero {
    margin: 0;
  }

  .features li {
    font-size: 15px;
  }
}

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

  .download-btn:hover {
    transform: none;
  }
}
