:root {
  color-scheme: light;
  --ink: #1f2328;
  --muted: #656d76;
  --soft: #f6f8fa;
  --line: #d8dee4;
  --blue: #0969da;
  --blue-dark: #0550ae;
  --green: #1a7f37;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--blue);
}

.brand-mark span {
  display: block;
  width: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(5) {
  height: 10px;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4) {
  height: 16px;
}

.brand-mark span:nth-child(3) {
  height: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
}

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

.site-nav .nav-download {
  color: #ffffff;
  background: var(--ink);
}

.site-nav .nav-download:hover {
  color: #ffffff;
  background: #343a40;
}

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  padding: 88px 32px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin-left: max(0px, calc((100vw - 1120px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 0.98;
  font-weight: 760;
}

.hero-lede {
  max-width: 510px;
  margin-bottom: 26px;
  color: #30363d;
  font-size: 21px;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
}

.button.primary:hover {
  background: #343a40;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.button.secondary:hover {
  background: var(--soft);
}

.release-note {
  color: var(--muted);
  font-size: 14px;
}

.hero-screenshot {
  position: absolute;
  right: max(-280px, calc((100vw - 1120px) / 2 - 260px));
  bottom: -128px;
  z-index: 1;
  width: min(720px, 54vw);
  height: auto;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: none;
  opacity: 0.94;
  transform: perspective(1200px) rotateX(8deg) rotateY(-14deg) rotateZ(2deg);
  transform-origin: 78% 82%;
}

.section {
  padding: 56px 32px;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  padding-top: 44px;
  background: var(--soft);
}

.intro-grid,
.privacy-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 680;
}

.intro p,
.privacy-copy p,
.download-band p,
.feature-card p {
  color: var(--muted);
  font-size: 16px;
}

.features {
  background: var(--paper);
}

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

.feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(216, 222, 228, 0.75);
  border-radius: 10px;
  background: var(--paper);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.3;
}

.feature-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  color: var(--blue);
}

.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.privacy {
  padding-top: 76px;
  padding-bottom: 76px;
  background: var(--paper);
}

.privacy-copy p:last-child,
.feature-card p:last-child,
.download-band p:last-child {
  margin-bottom: 0;
}

.download-band {
  padding: 68px 32px;
  color: var(--paper);
  background: var(--ink);
}

.download-inner {
  display: flex;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.download-band h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.download-band p {
  color: rgba(255, 255, 255, 0.72);
}

.download-band .release-security {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.download-band .checksum {
  max-width: 720px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.download-band code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

.download-band .button.primary {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--paper);
}

.download-band .button.primary:hover {
  background: #f6f8fa;
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 650;
}

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

.site-footer a[href="latest.json"] {
  color: #ffffff;
}

.site-footer a[href="latest.json"]:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 64px 24px 0;
  }

  .hero-copy {
    margin-left: 0;
  }

  h1 {
    font-size: 56px;
  }

  .hero-lede {
    font-size: 20px;
  }

  .hero-screenshot {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: min(640px, 92%);
    margin: 42px auto -1px;
    transform: perspective(900px) rotateX(5deg) rotateY(-8deg) rotateZ(1deg);
  }

  .section {
    padding: 48px 24px;
  }

  .intro-grid,
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card + .feature-card {
    border-left: 1px solid rgba(216, 222, 228, 0.75);
  }

  .download-band {
    padding: 56px 24px;
  }

  .download-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    width: calc(100% - 48px);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    font-size: 14px;
  }

  .site-nav a {
    padding: 0 7px;
  }

  .hero {
    padding: 42px 16px 0;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-screenshot {
    margin-top: 34px;
  }

  .section {
    padding: 36px 16px;
  }

  .intro p,
  .privacy-copy p,
  .download-band p,
  .feature-card p {
    font-size: 15px;
  }

  .feature-card {
    padding: 18px;
  }

  .download-band {
    padding: 48px 16px;
  }

  .site-footer {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 32px);
  }
}
