:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #030303;
  --line: #272727;
  --text: #d4d4d4;
  --muted: #8c8c8c;
  --soft: #b0b0b0;
  --accent: #f0f0f0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@font-face {
  font-family: "Geist Mono";
  src: url("https://fx.sh/_next/static/immutable/media/797e433ab948586e-s.p.1v5bejj26fx9h.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist Mono", var(--mono);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

code, pre { font-family: inherit; }

code { color: var(--accent); }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--bg);
}

.skip-link:focus { top: 1rem; }

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  min-height: 4rem;
  padding: 1rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 3.8rem;
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  color: var(--muted);
}

.topnav a { transition: color 120ms ease; }

main { padding: 2.5rem 0 4rem; }

.hero {
  max-width: 680px;
  padding: 0;
  border-top: 0;
}

.hero h1 {
  max-width: none;
  margin: 0 0 1em;
  color: var(--soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.hero-command {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: nowrap;
}

.hero-command span { color: var(--soft); }

.hero-command .command-prefix,
.hero-command .command-suffix { color: var(--accent); }

.mobile-break { display: none; }

.hero-meta,
.section-label,
.install-note {
  color: var(--muted);
  font-size: 13px;
}

.hero-meta span { color: #575757; }

.terminal-window {
  width: min(100%, 680px);
  height: 320px;
  margin: 2.75rem 0 3.5rem;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.terminal-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.terminal-chrome > :last-child { justify-self: end; }

.window-dots {
  display: flex;
  gap: 0.7rem;
  justify-self: start;
}

.window-dots i {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #424242;
}

.terminal-body {
  min-height: 0;
  padding: 0.875rem 1rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 19px;
}

.terminal-body p { margin: 0; }

.terminal-brand { color: #414141; font-style: italic; }

.terminal-caret {
  margin-top: 1.3rem !important;
  color: var(--accent);
}

.terminal-status { margin-top: 2.5rem !important; }

.hero-sub {
  max-width: 600px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

section {
  max-width: 680px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 2.75rem 0;
  scroll-margin-top: 2rem;
}

.section-label {
  margin: 0 0 1rem;
  text-transform: lowercase;
}

h2 {
  max-width: none;
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

h3 {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

p { max-width: 68ch; }

.differentiator > p,
.capability > p,
.cli-section > p,
.install > p { color: var(--muted); }

ul {
  max-width: 560px;
  margin: 1rem 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

li { margin: 0.4rem 0; padding-inline-start: 0.4rem; }

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.command-row code {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #555;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.capability-grid article {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.capability-grid p { color: var(--muted); }

pre {
  max-width: 100%;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--soft);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.large-code {
  max-width: 560px;
  margin: 1.25rem 0;
  padding: 1rem;
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

.site-footer a { text-decoration: underline; text-underline-offset: 0.25rem; }

@media (max-width: 48rem) {
  .site-header,
  .site-footer { max-width: none; padding-inline: 1.25rem; }

  main { max-width: none; padding-inline: 1.25rem; }

  .site-header { align-items: flex-start; }

  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
  }

  .terminal-window { margin-top: 2.5rem; }

  .capability-grid { grid-template-columns: 1fr; gap: 3rem; }

  .site-footer { flex-direction: column; }
}

@media (max-width: 32rem) {
  body { font-size: 14px; }

  .site-header,
  main,
  .site-footer { width: 100%; }

  .site-header { display: block; }

  .topnav {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .hero-command { font-size: 13px; white-space: normal; }

  .hero-command .command-url,
  .hero-command .command-suffix { display: block; }

  .hero-command .command-url {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
  }

  .mobile-break { display: block; }

  .terminal-body { padding: 0.875rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topnav a { transition: none; }
}
