:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-soft: #515154;
  --muted: #86868b;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.08);
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

code,
pre {
  font-family: var(--mono);
}

pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

button,
input,
textarea {
  font: inherit;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 160ms ease, background 160ms ease;
}

.site-header.scrolled,
.docs-header {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-symbol {
  display: block;
  width: 36px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2px;
  align-items: center;
}

.nav-links a,
.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-action {
  justify-self: end;
  color: var(--white);
  background: var(--ink);
}

.header-action:hover,
.header-action:focus-visible {
  background: #000000;
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  padding: 138px clamp(20px, 6vw, 86px) 92px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 820px;
}

.hero-logo {
  display: block;
  width: min(210px, 52vw);
  height: auto;
  margin: 0 0 clamp(24px, 3vw, 34px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.site-footer nav,
.command-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 32px;
}

.button,
.copy-button,
.tab-button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 740;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
  border-color: var(--ink);
}

.hero-command {
  align-self: center;
}

.docs-preview {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) 74px;
  background: var(--white);
}

.docs-preview a {
  min-height: 122px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.docs-preview a:hover,
.docs-preview a:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.docs-preview span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.docs-preview strong {
  font-size: 18px;
}

.docs-preview small {
  color: var(--ink-soft);
}

.section-band {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 86px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.paper-band,
.ink-band {
  background: var(--white);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.two-column,
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.section-copy p {
  margin-top: 0;
  font-size: 19px;
}

.feature-grid,
.use-grid,
.reference-grid,
.trouble-list {
  max-width: 1180px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article,
.use-grid article,
.reference-grid article,
.trouble-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid p,
.use-grid p,
.reference-grid p,
.trouble-list p {
  margin-bottom: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.workflow-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.command-tabs {
  align-content: start;
  flex-direction: column;
}

.tab-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface);
  text-align: left;
  font-weight: 740;
  transition: background 160ms ease, color 160ms ease;
}

.tab-button.active,
.tab-button:hover,
.tab-button:focus-visible {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.terminal-card,
.hero-command,
.copy-panel,
.code-block,
.code-grid pre {
  position: relative;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.terminal-card pre,
.hero-command pre,
.copy-panel pre,
.code-block pre,
.code-grid pre {
  padding: 22px;
  font-size: 13px;
  line-height: 1.65;
}

.copy-button + pre {
  padding-top: 68px;
}

.terminal-card code,
.hero-command code,
.copy-panel code,
.code-block code,
.code-grid code {
  color: inherit;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 14px 16px 0;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff5f57;
}

.terminal-top span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-top span:nth-child(3) {
  background: #28c840;
}

.hidden {
  display: none;
}

.split-panel {
  align-items: center;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--blue-dark);
}

.copy-button.copied {
  background: #1d1d1f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span,
.site-footer a {
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--ink);
}

.docs-body {
  background: var(--white);
}

.docs-header {
  position: sticky;
}

.docs-layout {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding: 58px clamp(20px, 6vw, 86px) 88px;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.docs-sidebar nav {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.docs-sidebar a {
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.docs-content {
  min-width: 0;
}

.docs-hero-block {
  padding: clamp(42px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.docs-hero-block h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
}

.docs-hero-block p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 19px;
}

.doc-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.doc-section h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
}

.doc-section h3 {
  margin-top: 24px;
}

.doc-section > p {
  max-width: 780px;
  font-size: 17px;
}

.code-block {
  margin: 22px 0;
  box-shadow: none;
}

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}

.reference-grid code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trouble-list {
  grid-template-columns: 1fr;
  margin: 22px 0 0;
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-command {
    align-self: stretch;
    margin-bottom: 0;
  }

  .docs-preview,
  .feature-grid,
  .use-grid,
  .reference-grid,
  .workflow-shell,
  .two-column,
  .split-panel,
  .docs-layout,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    min-width: 0;
    overflow: hidden;
  }

  .docs-sidebar nav {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
  }

  .docs-sidebar a {
    flex: 0 0 auto;
  }
}

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-symbol {
    width: 32px;
  }

  .header-action {
    min-height: 34px;
    padding: 0 12px;
  }

  .hero {
    padding: 104px 18px 66px;
  }

  .hero-logo {
    width: min(180px, 58vw);
    margin-bottom: 24px;
  }

  .hero h1 {
    max-width: 350px;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1;
  }

  .hero-copy {
    font-size: 17px;
  }

  .docs-preview {
    padding: 0 18px 58px;
  }

  .docs-preview a {
    min-height: 94px;
    padding: 18px;
  }

  .section-band {
    padding-inline: 18px;
  }

  .terminal-card pre,
  .hero-command pre,
  .copy-panel pre,
  .code-block pre,
  .code-grid pre {
    padding: 20px 14px;
    font-size: 12px;
  }

  .copy-button + pre {
    padding-top: 64px;
  }

  .site-footer {
    display: grid;
    padding-inline: 18px;
  }

  .docs-layout {
    padding: 36px 18px 72px;
    gap: 28px;
  }

  .docs-hero-block {
    padding: 32px 22px;
  }

  .docs-hero-block h1 {
    font-size: 36px;
    line-height: 1;
  }

  .docs-hero-block p:last-child,
  .doc-section > p {
    font-size: 16px;
  }

  .doc-section {
    padding: 42px 0;
  }

  .doc-section h2 {
    font-size: 30px;
  }
}
