@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --paper-deep: #ece9e1;
  --ink: #070707;
  --muted: #5f5d57;
  --faint: #8f8b82;
  --rule: #d7d2c7;
  --rule-strong: #161616;
  --black: #050505;
  --white: #fffdf7;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background:
    linear-gradient(rgb(9 9 9 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(9 9 9 / 0.045) 1px, transparent 1px),
    radial-gradient(circle at 80% 0%, rgb(0 0 0 / 0.055), transparent 33rem),
    var(--paper);
  background-size: 7rem 7rem, 7rem 7rem, auto, auto;
  color: var(--ink);
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(0 0 0 / 0.075) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgb(0 0 0 / 0.055) 0 1px, transparent 1px);
  background-size: 13px 13px, 17px 17px;
  mix-blend-mode: multiply;
}

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

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

.sprite {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 1rem max(1rem, calc((100vw - 92rem) / 2)) 1.55rem;
  background: linear-gradient(to bottom, var(--paper) 0%, rgb(244 242 236 / 0.96) 66%, rgb(244 242 236 / 0) 100%);
}

.brand,
.site-header nav,
.star-link,
.with-icon,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: 0.4rem;
  background: var(--white);
}

.brand-mark img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: cover;
  transform: scale(1.38);
}

.brand-mark.large {
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 2rem;
  border-radius: 0.65rem;
  background: var(--white);
}

.brand-mark.large img {
  width: 3.5rem;
  height: 3.5rem;
}

.site-header nav {
  justify-self: end;
  gap: 2.25rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header nav a {
  border-radius: var(--radius);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header nav a:hover {
  opacity: 0.62;
}

.star-link {
  border: 1px solid var(--ink);
  border-radius: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: rgb(255 255 255 / 0.42);
}

.with-icon,
.button {
  gap: 0.65rem;
}

.github-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: currentColor;
}

main {
  width: min(92rem, calc(100% - 3rem));
  max-width: 100%;
  margin: 0 auto;
  overflow-x: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(35rem, 1.22fr);
  gap: 3.6rem;
  align-items: center;
  min-height: calc(92dvh - 5.9rem);
  padding: 4.75rem 0 7rem;
  border-top: 1px solid var(--rule);
  overflow-x: clip;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

h1 {
  margin-bottom: 2.1rem;
  font-size: clamp(4.1rem, 6.9vw, 8.2rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.074em;
  text-wrap: balance;
}

.lead {
  max-width: 34rem;
  margin-bottom: 2.6rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.button {
  min-height: 3.55rem;
  border-radius: var(--radius);
  padding: 0 1.45rem;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible,
.site-header a:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.button.primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 1.4rem 3rem rgb(0 0 0 / 0.12);
}

.button.text-link {
  min-height: auto;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  padding: 0 0 0.2rem;
}

.hero-plate,
.stack-plate {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--black);
  box-shadow: 0 1.2rem 2.2rem rgb(0 0 0 / 0.11);
}

.hero-plate {
  position: relative;
  margin: 0;
  border-radius: 0.55rem;
}

.hero-plate img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.feature-band,
.faq,
.final-cta {
  border-top: 1px solid var(--rule-strong);
}

.feature-band {
  padding: 7rem 0 8rem;
  overflow-x: clip;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.48fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

.section-heading h2,
.faq-intro h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(3rem, 4.7vw, 6.25rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(27rem, 0.88fr);
  gap: 5.25rem;
  align-items: center;
}

.plate-stack {
  display: grid;
  gap: 0.8rem;
  min-height: 0;
}

.stack-plate {
  margin: 0;
  border-radius: var(--radius);
}

.stack-plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  background: var(--black);
}

.stack-plate.top {
  width: 88%;
}

.stack-plate.middle {
  width: 88%;
  justify-self: end;
}

.feature-list {
  border-top: 1px solid var(--rule-strong);
}

.feature-list article {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--rule-strong);
  padding: 1.8rem 0 2rem;
}

.feature-list span,
.faq-list span {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
}

.feature-list h3,
.faq-list h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.feature-list p,
.faq-list p,
.faq-intro p,
.final-cta p {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.faq {
  display: grid;
  grid-template-columns: minmax(21rem, 0.46fr) minmax(0, 1fr);
  gap: 5rem;
  padding: 7rem 0 8rem;
  overflow-x: clip;
}

.faq-intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.faq-intro h2 {
  margin-bottom: 2rem;
}

.code-card {
  display: grid;
  max-width: 30rem;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgb(255 255 255 / 0.25);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.code-card span,
.code-card code {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.code-card code:last-child {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  column-gap: 2.25rem;
}

.faq-list article {
  min-height: 14rem;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--rule-strong);
}

.faq-list span {
  display: block;
  margin-bottom: 1.65rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  overflow-x: clip;
  min-height: 30rem;
  padding: 7rem 0;
  text-align: left;
}

.final-cta h2 {
  max-width: 56rem;
  margin-bottom: 1.4rem;
}

.final-cta p {
  max-width: 33rem;
  margin-bottom: 0;
  font-size: 1.15rem;
}

.site-footer {
  width: 100%;
  overflow-x: clip;
  border-top: 1px solid var(--rule-strong);
  padding: 1rem max(1rem, calc((100vw - 92rem) / 2)) 2rem;
  background: linear-gradient(to bottom, var(--paper-deep), var(--paper));
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.8fr) auto;
  align-items: center;
  gap: 2rem;
  min-height: 7.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.footer-brand,
.footer-links {
  display: inline-flex;
  align-items: center;
}

.footer-brand {
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.site-footer p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links {
  justify-self: end;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-footer a:hover {
  opacity: 0.72;
}

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

  .brand,
  .site-header nav {
    justify-self: start;
  }

  .site-header nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  main {
    width: min(100% - 2rem, 92rem);
  }

  .hero,
  .feature-layout,
  .faq,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 3rem;
    padding-top: 4rem;
  }

  .hero-plate {
    margin-right: 0;
    transform: none;
  }

  .final-cta {
    align-items: start;
  }

  .plate-stack {
    min-height: 35rem;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 4rem 4rem, 4rem 4rem, auto, auto;
  }

  .site-header nav a {
    padding: 0.2rem 0;
  }

  .star-link {
    padding: 0.45rem 0.6rem;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 5.2rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .section-heading,
  .feature-list article,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.5rem;
  }

  .plate-stack {
    min-height: auto;
  }

  .stack-plate {
    position: relative;
    inset: auto;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 1rem;
    transform: none !important;
  }

  .stack-plate img {
    aspect-ratio: 16 / 9;
  }

  .faq-list {
    border-left: 0;
  }

  .faq-list article {
    border-left: 0;
  }

  .final-cta {
    min-height: 32rem;
    padding-bottom: 7rem;
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.5rem 0;
  }

  .footer-links {
    justify-self: start;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
}
