:root {
  --bg: #08080a;
  --fg: #ececec;
  --muted: #a7a7b2;
  --faint: #8d8d98;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(16, 16, 20, 0.86);
  --header: 68px;
  --wrap: 1120px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 68%);
}

::selection {
  background: rgba(255, 255, 255, 0.22);
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

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

a {
  color: #fff;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  letter-spacing: -0.04em;
  max-width: 11em;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: #fff;
  color: #111;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lede,
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.lede a,
.section-lead a,
.card a,
.site-footer a {
  text-decoration-thickness: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 2rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.wordmark .four {
  background: linear-gradient(135deg, #ffffff 0%, #c2c2cc 48%, #6f6f7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.4rem 1rem 1rem;
  background: rgba(8, 8, 10, 0.96);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav.is-open {
  display: flex;
  max-height: calc(100dvh - var(--header));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.7rem 0.2rem;
  border-radius: 8px;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a.btn {
  color: #fff;
  padding: 0.65rem 1.05rem;
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #111114;
  background: #fff;
  border-color: #fff;
}

.site-nav a.btn-primary:hover {
  background: #e6e6eb;
  border-color: #e6e6eb;
}

.nav-try {
  margin-top: 0.4rem;
  justify-content: center;
  align-self: stretch;
}

.hero {
  position: relative;
  padding: 3.2rem 0 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8rem;
  width: min(820px, 100%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.4rem 0 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-primary {
  background: #fff;
  color: #111114;
  border-color: #fff;
}

.btn-primary:hover {
  background: #e6e6eb;
  color: #111114;
  border-color: #e6e6eb;
}

.mark-panel {
  justify-self: center;
  width: min(100%, 320px);
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.mark-panel p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.assemble {
  width: min(210px, 70%);
  height: auto;
  overflow: visible;
}

.plate {
  transform-box: fill-box;
  transform-origin: center;
}

.plate-base {
  animation: land 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.plate-mid {
  animation: land 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s infinite;
}

.plate-top {
  animation: land 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.38s infinite;
}

@keyframes land {
  0% {
    transform: translateY(-16px);
    opacity: 0;
  }
  16% {
    transform: translateY(1.5px);
    opacity: 1;
  }
  24% {
    transform: translateY(0);
    opacity: 1;
  }
  78% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.shot {
  margin: 2.4rem 0 0;
}

.shot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0e0e11;
}

.shot figcaption {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.shot-follow {
  margin-top: 1.25rem;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header) + 12px);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.split {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.25rem 1.25rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.feature-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-grid li {
  padding: 1.15rem 1.15rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.feature-grid p,
.stack-list span + span {
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 1.35rem 3.3rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 0.7rem;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.75rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #16161b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

.pipeline {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d0d11;
  overflow-x: auto;
}

.pipeline-label {
  margin: 0 0 0.4rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-line {
  margin: 0;
  color: #d9d9e0;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
}

.split-late {
  margin-top: 2rem;
  align-items: start;
}

.split-late .shot {
  margin-top: 0;
}

.subhead {
  margin: 2.2rem 0 0;
  font-size: 1.35rem;
}

.terminal {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c10;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.dots {
  display: inline-flex;
  gap: 0.35rem;
}

.dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: block;
}

.terminal-title {
  color: var(--faint);
  font-size: 0.82rem;
}

.copy {
  margin-left: auto;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.copy:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.copy.is-copied {
  background: #fff;
  color: #111114;
  border-color: #fff;
}

.terminal pre {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  overflow-x: auto;
}

.terminal code {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #e8e8ee;
  background: none;
  padding: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.08em 0.35em;
  border-radius: 5px;
}

.stack-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stack-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.stack-list li span:first-child {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.closer {
  padding: 4.5rem 0;
  text-align: left;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.07), transparent 46%),
    #08080a;
  border-top: 1px solid var(--line);
}

.closer p {
  color: var(--muted);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.site-footer nav a {
  text-decoration: none;
  color: var(--fg);
}

.site-footer nav a:hover {
  text-decoration: underline;
}

@media (min-width: 760px) {
  .split,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stack-list li {
    grid-template-columns: 16rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 0.8fr;
  }
}

@media (min-width: 1080px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
  }

  .site-nav a:hover {
    color: #fff;
  }

  .nav-github {
    margin-left: 0.35rem;
  }

  .nav-try {
    margin: 0 0 0 0.35rem;
    padding: 0.45rem 0.85rem;
    min-height: 38px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.7fr);
    gap: 3rem;
  }

  .mark-panel {
    justify-self: end;
  }
}

@media (max-width: 759px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

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

  .plate-base,
  .plate-mid,
  .plate-top {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
