:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --paper: #ffffff;
  --card: #ffffff;
  --soft: #f5f5f7;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --star: #d4a72c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --paper: #000000;
  --card: #1d1d1f;
  --soft: #161617;
  --muted: #86868b;
  --line: #2d2d2f;
  --star: #e3b341;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.site-header,
footer,
.hero,
.downloads-inner,
.highlights {
  width: min(calc(100% - 48px), 1040px);
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark img {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

html[data-theme="dark"] .wordmark img {
  filter: invert(1);
}

.site-nav {
  display: flex;
  gap: 32px;
  justify-self: center;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.star-pill,
.theme-toggle,
.download-pill {
  height: 28px;
  border: 0;
  border-radius: 999px;
}

.star-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.star-pill:hover {
  background: var(--line);
}

.star-pill .gh,
.star-pill .star {
  flex: 0 0 auto;
}

.star-pill .star {
  color: var(--star);
}

.theme-toggle {
  display: inline-grid;
  width: 28px;
  padding: 0;
  place-items: center;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--line);
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.download-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.download-pill:hover {
  opacity: 0.85;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hero {
  padding: 104px 0 96px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 11vw, 108px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 580px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  opacity: 0.85;
}

.text-link {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shot {
  width: min(100%, 780px);
  margin: 64px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.shot video,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-dark {
  display: none;
}

html[data-theme="dark"] .shot-light {
  display: none;
}

html[data-theme="dark"] .shot-dark {
  display: block;
}

html[data-theme="dark"] .shot {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.downloads {
  padding: 88px 0;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.downloads-inner {
  text-align: center;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
  text-align: left;
}

.platform {
  display: flex;
  flex-direction: column;
  min-height: 212px;
  padding: 28px;
  border-radius: 3px;
  background: var(--card);
  transition: background-color 160ms ease;
}

.platform:hover {
  background: var(--paper);
}

.platform h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.platform-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.platform-get {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.platform-get:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.platform-alt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.platform-alt:hover {
  color: var(--ink);
  text-decoration: underline;
}

.note {
  max-width: 640px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.note a {
  color: var(--ink);
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: 96px 0 104px;
  text-align: center;
}

.highlights h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.highlights p {
  max-width: 280px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer span:last-child {
  display: flex;
  gap: 20px;
}

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

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 80px 0 72px;
  }

  .highlights {
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .platforms {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 440px;
    margin-inline: auto;
  }

  .platform {
    min-height: 0;
  }

  .highlights {
    grid-template-columns: 1fr;
    padding: 72px 0 80px;
  }
}

@media (max-width: 620px) {
  .site-header,
  footer,
  .hero,
  .downloads-inner,
  .highlights {
    width: min(calc(100% - 32px), 1040px);
  }

  .hero {
    padding: 64px 0;
  }

  .lede {
    font-size: 19px;
  }

  .shot {
    margin-top: 48px;
  }

  .downloads {
    padding: 64px 0;
  }

  footer {
    display: block;
  }

  footer span:last-child {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .star-pill {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
