@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/host-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/host-grotesk-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f6f8;
  --ink: #111216;
  --muted: #70747e;
  --line: #d9dce2;
  --electric: #565cf1;
  --wash: #ebeefa;
  --online: #28a963;
  --display: "Host Grotesk", Arial, sans-serif;
  --mono: "Geist Mono", monospace;
  --page: min(980px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.page-width {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 34px;
  color: var(--electric);
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.brand-mark circle {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 1.8;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

nav a:hover,
footer a:hover {
  color: var(--electric);
}

.landing {
  min-height: calc(100svh - 144px);
  padding-block: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  column-gap: clamp(52px, 8vw, 84px);
  row-gap: 20px;
  align-items: center;
}

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(40, 169, 99, 0.1);
}

.intro h1,
.not-found h1 {
  margin: 0;
  font-weight: 540;
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.intro h1 {
  font-size: clamp(48px, 5.7vw, 62px);
}

.intro h1 em {
  color: var(--electric);
  font-weight: 470;
}

.lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: #555963;
  font-size: 16px;
  line-height: 1.46;
  letter-spacing: -0.016em;
}

.command-wrap {
  min-height: 60px;
  margin-top: 24px;
  padding: 7px 7px 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: white;
}

.command-wrap code,
.product-example figcaption {
  font-family: var(--mono);
}

.command-wrap code {
  min-width: 0;
  font-size: 10px;
  white-space: nowrap;
}

.copy-button {
  position: relative;
  flex: 0 0 64px;
  height: 46px;
  border: 0;
  background: var(--electric);
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.copy-button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.copy-done,
.is-copied .copy-label {
  opacity: 0;
  transform: translateY(4px);
}

.is-copied .copy-done {
  opacity: 1;
  transform: translateY(0);
}

.intro-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 620;
}

.primary-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.intro-links a:not(.primary-link) {
  color: var(--muted);
}

.space-cta {
  margin-top: 24px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(86, 92, 241, 0.055);
  transition: background 160ms ease;
}

.space-cta:hover {
  background: rgba(86, 92, 241, 0.1);
}

.space-cta-name,
.space-cta-action,
.space-cta small {
  font-family: var(--mono);
}

.space-cta-name {
  color: var(--electric);
  font-size: 9px;
  text-transform: uppercase;
}

.space-cta-name i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 9px 0 0 rgba(86, 92, 241, 0.48), 18px 0 0 rgba(86, 92, 241, 0.18);
}

.space-cta-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.space-cta strong {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.space-cta small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-cta-action {
  color: var(--electric);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.product-example {
  position: relative;
  width: min(100%, 324px);
  margin: 0;
  justify-self: end;
}

.product-example img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.product-example figcaption {
  margin-top: -5px;
  padding-inline: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.intelligence {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2fr);
  gap: 42px;
  background: var(--wash);
}

.intelligence-head p,
.feature-grid article > span {
  margin: 0;
  color: var(--electric);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intelligence h2 {
  max-width: 250px;
  margin: 12px 0 0;
  font-size: 28px;
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

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

.feature-grid article {
  min-width: 0;
}

.feature-grid h3 {
  margin: 8px 0 5px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: #5e6270;
  font-size: 11px;
  line-height: 1.48;
}

footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 18px;
}

.not-found {
  min-height: calc(100svh - 64px);
  display: grid;
  place-content: center;
}

.not-found .kicker {
  color: var(--electric);
}

.not-found h1 {
  margin-bottom: 32px;
  font-size: clamp(48px, 7vw, 72px);
}

@media (max-width: 760px) {
  .landing {
    min-height: auto;
    padding-block: 52px 64px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .intro h1 {
    font-size: clamp(44px, 12vw, 58px);
  }

  .product-example {
    width: min(100%, 360px);
    justify-self: center;
  }

  .intelligence {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 420px) {
  :root {
    --page: calc(100% - 30px);
  }

  nav {
    gap: 14px;
  }

  .command-wrap {
    gap: 8px;
  }

  .command-wrap code {
    font-size: 9px;
  }

  .copy-button {
    flex-basis: 58px;
  }

  .intro-links {
    gap: 16px;
  }

  .space-cta {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .space-cta-name {
    grid-column: 1 / -1;
  }

  .space-cta small {
    white-space: normal;
  }

  .intelligence {
    padding: 24px;
  }

  .intelligence h2 {
    max-width: 280px;
  }

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

  footer {
    padding-block: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
