:root {
  --ink: #101820;
  --muted: #5a6470;
  --line: #d8dedf;
  --paper: #f6f7f2;
  --panel: #ffffff;
  --teal: #0f766e;
  --blue: #2563eb;
  --coral: #d94835;
  --amber: #b45309;
  --code: #111827;
  --shadow: 0 20px 60px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 40px;
  background: rgba(246, 247, 242, 0.88);
  border-bottom: 1px solid rgba(16, 24, 32, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 830;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
}

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

nav a:hover {
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 96px 40px 116px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(246, 247, 242, 0.98), rgba(246, 247, 242, 0.82) 48%, rgba(246, 247, 242, 0.3));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(60px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p,
.split p {
  color: #29333d;
  font-size: 20px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 820;
}

.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 16px 32px rgba(16, 24, 32, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 40px;
}

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

.install-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
}

.selector-panel,
.command-panel,
.feature-grid article,
.reference-card a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.06);
}

.selector-panel {
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #303943;
  font-size: 13px;
  font-weight: 820;
}

select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 720;
}

.channel-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.channel-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

dt {
  color: var(--muted);
  font-size: 14px;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.command-panel {
  overflow: hidden;
  color: #f8fafc;
  background: var(--code);
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #c7d2de;
  border-bottom: 1px solid #263241;
  font-size: 13px;
  font-weight: 820;
}

button {
  min-height: 34px;
  padding: 0 12px;
  color: white;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  color: #f8fafc;
  background: var(--code);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.command-panel p {
  margin: 0;
  padding: 0 22px 20px;
  color: #c7d2de;
}

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

.feature-grid article {
  min-height: 232px;
  padding: 24px;
}

.stripe {
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--teal);
}

.feature-grid article:nth-child(2) .stripe {
  background: var(--blue);
}

.feature-grid article:nth-child(3) .stripe {
  background: var(--coral);
}

.feature-grid p,
.reference-card code,
.split p {
  color: var(--muted);
}

.band {
  padding: 48px 40px;
  background: var(--ink);
}

.pipeline {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pipeline div {
  padding: 24px;
  background: var(--ink);
}

.pipeline span {
  display: block;
  margin-bottom: 6px;
  color: #99f6e4;
  font-size: 13px;
  font-weight: 850;
}

.pipeline strong {
  color: white;
  font-size: 18px;
}

.reference-card {
  display: grid;
  max-width: 620px;
}

.reference-card a {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
}

.reference-card span {
  font-size: 19px;
  font-weight: 850;
}

.reference-card code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.docs-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 40px 36px;
}

.docs-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 104px);
}

.docs-hero > div:first-child {
  max-width: 820px;
}

.docs-hero p:not(.eyebrow) {
  color: #29333d;
  font-size: clamp(18px, 2vw, 22px);
}

.docs-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.docs-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 820;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 40px 96px;
  align-items: start;
}

.docs-tabs {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 10px;
}

.docs-tab {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.docs-tab.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.docs-tab span {
  font-size: 15px;
  font-weight: 850;
}

.docs-tab small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.docs-tab.active small {
  color: #c7d2de;
}

.docs-content {
  min-width: 0;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.06);
}

.docs-content h2 {
  margin: 44px 0 14px;
  padding-top: 4px;
  font-size: clamp(30px, 4vw, 44px);
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content h3 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.docs-content h4,
.docs-content h5 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.docs-content p,
.docs-content li {
  color: #29333d;
  font-size: 16px;
}

.docs-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.docs-content a {
  color: var(--teal);
  font-weight: 760;
}

.docs-content code {
  padding: 2px 5px;
  color: #0f172a;
  background: #eef2f3;
  border-radius: 5px;
  font-size: 0.92em;
}

.docs-content pre {
  margin: 18px 0 24px;
  padding: 18px;
  border-radius: 8px;
}

.docs-content pre code {
  padding: 0;
  color: #f8fafc;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}

.docs-loading,
.docs-error p {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 22px;
  }

  nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: 720px;
    padding: 76px 22px 96px;
  }

  #hero-canvas {
    opacity: 0.7;
  }

  .section,
  .band {
    padding-left: 22px;
    padding-right: 22px;
  }

  .install-grid,
  .feature-grid,
  .split,
  .pipeline,
  .reference-card,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-hero,
  .docs-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .docs-tabs {
    position: static;
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 54px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .docs-content {
    padding: 22px;
  }
}
