:root {
  --bg: #fbfbf7;
  --panel: #ffffff;
  --panel-soft: #f2f5ef;
  --panel-strong: #10231f;
  --ink: #141513;
  --muted: #62675f;
  --quiet: #8a9286;
  --line: #dfe5da;
  --line-strong: #bcc9b7;
  --green: #17a86b;
  --green-dark: #087a51;
  --cyan: #1b8f9b;
  --amber: #ce7c12;
  --code: #111c18;
  --code-soft: #162722;
  --shadow: 0 20px 60px rgba(20, 30, 24, 0.09);
  --radius: 8px;
  --page: min(1220px, calc(100vw - 40px));
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #fbfbf7 0, #f4f7f1 620px, #fbfbf7 100%),
    var(--bg);
  color: var(--ink);
}

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

code,
pre {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
}

code {
  border: 1px solid rgba(20, 80, 55, 0.16);
  border-radius: 5px;
  background: #edf5ef;
  color: #0b6243;
  padding: 1px 5px;
  font-size: 0.92em;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

pre code {
  display: block;
  border: 0;
  background: transparent;
  color: #d7f2e6;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.docs-header {
  position: sticky;
  z-index: 30;
  top: 14px;
  display: grid;
  width: var(--page);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 14px auto 0;
  border: 1px solid rgba(223, 229, 218, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 40px rgba(24, 32, 25, 0.08);
  padding: 10px 12px;
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.header-actions,
.hero-actions,
.docs-footer {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 168, 107, 0.3);
  border-radius: 7px;
  background: #e6fff1;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.brand span:last-child {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 14px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a,
.header-link,
.button {
  border-radius: 7px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.top-nav a {
  padding: 8px 10px;
}

.top-nav a:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.top-nav a[aria-current="page"] {
  background: #e6fff1;
  color: var(--green-dark);
  font-weight: 760;
}

.header-link {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
}

.header-actions {
  justify-self: end;
  justify-content: flex-end;
  gap: 8px;
}

.header-link.primary-link {
  border-color: rgba(23, 168, 107, 0.24);
  background: #e6fff1;
  color: var(--green-dark);
}

.header-link:hover,
.button.secondary:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.hero {
  display: grid;
  width: var(--page);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: end;
  gap: 52px;
  margin: 0 auto;
  padding: 108px 0 54px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 70px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  color: #3f463e;
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 760;
}

.button.primary {
  background: var(--green-dark);
  color: #ffffff;
}

.button.primary:hover {
  background: #066642;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.hero-terminal,
.code-panel,
.env-panel {
  overflow: hidden;
  border: 1px solid rgba(71, 100, 85, 0.28);
  border-radius: var(--radius);
  background: var(--code);
  box-shadow: 0 24px 80px rgba(14, 26, 20, 0.18);
}

.hero-terminal {
  align-self: stretch;
  min-width: 0;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--code-soft);
  padding: 12px 14px;
}

.terminal-head span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #729084;
}

.terminal-head span:first-child {
  background: #e38550;
}

.terminal-head span:nth-child(2) {
  background: #d7a83b;
}

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

.terminal-head strong {
  margin-left: auto;
  color: #94ac9f;
  font-size: 12px;
}

.hero-terminal pre {
  padding: 22px;
}

.summary-strip {
  display: grid;
  width: var(--page);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 auto 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.summary-strip article {
  display: grid;
  gap: 8px;
  min-width: 0;
  background: var(--panel);
  padding: 20px;
}

.summary-strip span,
.stack-kicker,
.code-panel span,
.env-panel span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.summary-strip strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.why-panel {
  display: grid;
  width: var(--page);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  margin: 0 auto 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 30px;
}

.why-panel h2 {
  max-width: 760px;
}

.why-panel p:last-child {
  margin-bottom: 0;
}

.why-points {
  display: grid;
  gap: 10px;
  align-content: start;
}

.why-points article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  padding: 16px;
}

.why-points strong {
  display: block;
  margin-bottom: 6px;
}

.why-points span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.library {
  width: var(--page);
  margin: 0 auto 50px;
}

.library-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

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

.library-card {
  display: grid;
  min-width: 0;
  min-height: 168px;
  align-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 44px rgba(20, 30, 24, 0.06);
  padding: 20px;
}

.library-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.library-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.library-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.library-card small {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.docs-shell {
  display: grid;
  width: var(--page);
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin: 0 auto;
  padding-bottom: 64px;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
  box-shadow: 0 14px 40px rgba(20, 30, 24, 0.06);
  backdrop-filter: blur(12px);
}

.sidebar a {
  border-radius: 6px;
  color: var(--muted);
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 650;
}

.sidebar a:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.sidebar a[aria-current="page"] {
  background: #e6fff1;
  color: var(--green-dark);
}

.content {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.doc-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 44px rgba(20, 30, 24, 0.06);
  padding: 34px;
}

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

.section-heading p:last-child,
.split p:last-child {
  margin-bottom: 0;
}

.steps,
.feature-grid,
.ops-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.steps article,
.feature-grid article,
.ops-grid article,
.boundary-grid article,
.deploy-grid article,
.timeline article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  padding: 18px;
}

.steps article span {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #e6fff1;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.steps article h3,
.feature-grid h3,
.ops-grid h3,
.boundary-grid h3 {
  margin-top: 14px;
}

.steps article p,
.feature-grid p,
.ops-grid p,
.boundary-grid p,
.timeline p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.deploy-grid {
  display: grid;
  gap: 10px;
}

.deploy-grid article {
  display: grid;
  gap: 6px;
}

.deploy-grid strong {
  color: var(--ink);
  font-size: 16px;
}

.deploy-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.lane {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  padding: 16px;
}

.lane h3 {
  margin-bottom: 4px;
}

.lane div {
  border: 1px solid rgba(188, 201, 183, 0.68);
  border-radius: 6px;
  background: #ffffff;
  color: #384139;
  padding: 10px;
  font-size: 13px;
  font-weight: 680;
}

.lane-control {
  border-top: 4px solid var(--cyan);
}

.lane-runtime {
  border-top: 4px solid var(--green);
}

.lane-customer {
  border-top: 4px solid var(--amber);
}

.connector {
  display: grid;
  align-content: center;
  gap: 10px;
}

.connector span {
  position: relative;
  display: block;
  border: 1px solid rgba(27, 143, 155, 0.3);
  border-radius: 999px;
  background: #eef8f7;
  color: #176c74;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 760;
}

.provider-table {
  display: grid;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
}

.provider-table [role="row"] {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  background: #fbfcf8;
  padding: 16px;
}

.provider-table strong {
  color: var(--ink);
}

.provider-table span {
  color: var(--muted);
  line-height: 1.5;
}

.code-panel,
.env-panel {
  min-width: 0;
  box-shadow: none;
}

.code-panel span,
.env-panel span {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--code-soft);
  color: #9cb2a6;
  padding: 12px 14px;
}

.code-panel pre,
.env-panel pre {
  padding: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.timeline article {
  border-top: 4px solid var(--green);
}

.timeline article span {
  color: var(--green-dark);
  font-weight: 850;
}

.env-panel {
  margin-top: 16px;
}

.migration-list {
  display: grid;
  gap: 8px;
}

.migration-list span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
  padding: 12px 14px;
  color: #344039;
  font-size: 14px;
  font-weight: 680;
}

.docs-footer {
  width: var(--page);
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.docs-footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 760;
}

.page-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 108px 0 44px;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero .hero-text {
  max-width: 760px;
  margin-bottom: 0;
}

.page-shell {
  padding-bottom: 76px;
}

.doc-article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 44px rgba(20, 30, 24, 0.06);
  padding: 38px;
}

.doc-article > section + section {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.doc-article h2 {
  max-width: 820px;
  font-size: 34px;
}

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

.doc-article p,
.doc-article li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.doc-article ul,
.doc-article ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.doc-article li + li {
  margin-top: 8px;
}

.callout {
  border: 1px solid rgba(27, 143, 155, 0.28);
  border-radius: var(--radius);
  background: #f0f9f8;
  color: #24575b;
  padding: 16px 18px;
}

.callout strong {
  color: #145f66;
}

.warning {
  border-color: rgba(206, 124, 18, 0.32);
  background: #fff8ec;
  color: #72480f;
}

.warning strong {
  color: #764a0d;
}

.doc-grid,
.two-column,
.three-column {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doc-tile,
.check-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  padding: 18px;
}

.doc-tile h3,
.check-tile h3 {
  margin-top: 0;
}

.doc-tile p,
.check-tile p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(23, 168, 107, 0.22);
  border-radius: 999px;
  background: #e6fff1;
  color: var(--green-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.endpoint-table {
  display: grid;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  gap: 1px;
}

.endpoint-table .row {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  background: #fbfcf8;
  padding: 14px 16px;
}

.endpoint-table code {
  width: fit-content;
}

.route {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(20, 80, 55, 0.16);
  border-radius: 6px;
  background: #edf5ef;
  padding: 3px;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
}

.route .method {
  flex: 0 0 auto;
  border-radius: 4px;
  background: #dff8ea;
  color: var(--green-dark);
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.route code {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0b6243;
  padding: 1px 4px 1px 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.endpoint-table span {
  color: var(--muted);
  line-height: 1.52;
}

.article-code {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(71, 100, 85, 0.28);
  border-radius: var(--radius);
  background: var(--code);
}

.article-code span {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--code-soft);
  color: #9cb2a6;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.article-code pre {
  padding: 18px;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.source-list a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
  color: #344039;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 680;
}

.source-list a:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

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

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 80px;
  }

  .hero-terminal {
    align-self: auto;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .connector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid,
  .why-panel,
  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100vw - 24px, 1220px);
  }

  .docs-header {
    top: 8px;
    margin-top: 8px;
  }

  .brand small {
    display: none;
  }

  .header-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .header-actions .signin-link {
    display: none;
  }

  h1 {
    font-size: 44px;
    line-height: 1;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    padding: 54px 0 32px;
  }

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

  .summary-strip,
  .library-grid,
  .why-panel,
  .steps,
  .feature-grid,
  .ops-grid,
  .boundary-grid,
  .doc-grid,
  .two-column,
  .three-column,
  .split {
    grid-template-columns: 1fr;
  }

  .doc-section,
  .doc-article {
    padding: 24px;
  }

  .page-hero {
    padding: 54px 0 32px;
  }

  .doc-article h2 {
    font-size: 28px;
  }

  .sidebar {
    grid-template-columns: repeat(10, max-content);
    padding: 6px;
  }

  .provider-table [role="row"] {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .endpoint-table .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route code {
    white-space: normal;
  }

  pre {
    white-space: pre-wrap;
  }

  pre code {
    overflow-wrap: anywhere;
  }

  .connector {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .docs-footer {
    flex-wrap: wrap;
  }

  .docs-footer span {
    flex-basis: 100%;
  }
}
