:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f5f5f5;
  --muted: rgb(245 245 245 / 58%);
  --faint: rgb(245 245 245 / 10%);
  --line: rgb(245 245 245 / 18%);
  --line-strong: rgb(245 245 245 / 36%);
  --panel: rgb(255 255 255 / 5%);
  --panel-strong: rgb(255 255 255 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 8%), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(3 3 3 / 82%);
  backdrop-filter: blur(18px);
}

.brand,
nav a,
.site-footer a {
  text-decoration: none;
}

.brand {
  font-size: 16px;
  font-weight: 680;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
.site-footer a,
.button,
.command button {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

nav a:hover,
.site-footer a:hover,
.release-note a:hover {
  color: var(--ink);
}

main {
  position: relative;
  padding-top: 62px;
}

.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(78px, 17vw, 220px);
  line-height: 0.84;
  font-weight: 680;
}

.lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgb(245 245 245 / 76%);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.16;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

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

.release-note a {
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 620;
  text-decoration: none;
}

.button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

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

.product-frame {
  margin: 0;
  opacity: 0.9;
  transform: translateY(0);
  animation: settle 700ms ease both;
}

.product-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 40px 120px rgb(0 0 0 / 52%);
}

.facts,
.install-section {
  scroll-margin-top: 84px;
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 72px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 1px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(34px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.facts p {
  margin: 0;
  padding: 20px;
  background: rgb(3 3 3 / 86%);
  color: var(--ink);
}

.facts span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.install-note {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 6vw, 82px);
  line-height: 0.96;
  font-weight: 620;
}

.commands {
  display: grid;
  gap: 10px;
}

.command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: transparent;
}

code {
  color: rgb(245 245 245 / 84%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command button {
  min-width: 68px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.command button:hover,
.command button:focus-visible {
  color: var(--ink);
  outline: none;
  background: var(--panel);
}

.site-footer {
  min-height: 74px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: sticky;
  }

  main {
    padding-top: 0;
  }

  .hero,
  .install-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-frame {
    max-width: 560px;
  }

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

@media (max-width: 560px) {
  .site-header {
    height: 58px;
  }

  nav {
    gap: 16px;
  }

  h1 {
    font-size: 76px;
  }

  .lede {
    font-size: 23px;
  }

  .button {
    width: 100%;
  }

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

  .command button {
    min-height: 38px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
