:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --text: #172033;
  --muted: #5f6b7a;
  --border: #dce2ea;
  --border-strong: #c7d0dc;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #168552;
  --success-soft: #ecfdf3;
  --warning: #a15c05;
  --warning-soft: #fff8e7;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 12px 35px rgba(23, 32, 51, 0.07);
  --page: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid #b9c3d1;
  border-radius: 7px;
  background: #111827;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  background: #fff;
}

.brand-mark::before {
  left: 5px;
}

.brand-mark::after {
  right: 5px;
}

.brand-mark span {
  position: absolute;
  top: 11px;
  left: 10px;
  z-index: 1;
  width: 8px;
  height: 5px;
  border-radius: 2px;
  background: #3b82f6;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 14px;
}

.site-nav a {
  padding: 7px 9px;
  border-radius: 7px;
  color: #4b5768;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 650;
}

main {
  min-height: calc(100vh - 216px);
}

.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 16%, rgba(37, 99, 235, 0.08), transparent 27%),
    linear-gradient(#fff, #fbfcfe);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.028em;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 34px);
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
}

.button:hover {
  border-color: #adb8c7;
  background: var(--surface-muted);
  color: var(--text);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.status-card,
.card,
.panel,
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.metric-list {
  margin: 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.metric-list dt {
  color: var(--muted);
}

.metric-list dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
}

.section {
  padding: 68px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-intro {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
}

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

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

.card {
  padding: 24px;
}

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

.card p,
.card li,
.muted {
  color: var(--muted);
}

.card-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
}

.code-window {
  overflow: hidden;
  border: 1px solid #263144;
  border-radius: var(--radius);
  background: #111827;
  color: #dbeafe;
  box-shadow: var(--shadow);
}

.code-title {
  padding: 9px 15px;
  border-bottom: 1px solid #2c384d;
  color: #9ca9bd;
  font-family: var(--mono);
  font-size: 12px;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}

.code-window .key {
  color: #93c5fd;
}

.code-window .string {
  color: #86efac;
}

.inline-code,
p code,
li code,
td code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-muted);
  color: #334155;
  font-size: 0.88em;
}

.page-hero {
  padding: 62px 0 42px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 48px);
}

.page-hero .lead {
  margin-bottom: 0;
  font-size: 18px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 54px;
  padding: 48px 0 72px;
}

.side-nav {
  position: sticky;
  top: 92px;
  border-left: 1px solid var(--border);
}

.side-nav a {
  display: block;
  margin-left: -1px;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.side-nav a:hover {
  border-left-color: var(--border-strong);
  color: var(--text);
}

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

.doc-section {
  scroll-margin-top: 96px;
  padding-bottom: 46px;
}

.doc-section + .doc-section {
  padding-top: 46px;
  border-top: 1px solid var(--border);
}

.doc-section > p,
.doc-section > ul {
  max-width: 760px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
}

.method {
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-align: center;
  font-size: 12px;
}

.method-post {
  background: #eefcf3;
  color: #147d4b;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: #465368;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.nowrap {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #10683f;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.badge-neutral {
  background: var(--surface-muted);
  color: #4c596a;
}

.badge-neutral::before {
  background: #7c8796;
}

.callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #24405f;
  font-size: 14px;
}

.callout strong {
  color: #173252;
}

.status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 22px;
  border: 1px solid #bde8ce;
  border-radius: var(--radius);
  background: var(--success-soft);
}

.status-summary h2,
.status-summary p {
  margin: 0;
}

.status-summary h2 {
  font-size: 20px;
}

.status-summary p {
  color: #32654c;
  font-size: 13px;
}

.uptime {
  color: var(--success);
  font-family: var(--mono);
  font-weight: 750;
}

.timeline {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 46px 32px;
  border-left: 1px solid var(--border-strong);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.release-head h2 {
  margin: 0;
  font-size: 24px;
}

.release-head time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.timeline-item ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.timeline-item li + li {
  margin-top: 5px;
}

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

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.pricing-card.featured {
  border-color: #93b7ff;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.1);
}

.plan-label {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  margin: 14px 0 6px;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.feature-list {
  flex: 1;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: #4e5b6d;
  font-size: 14px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 750;
}

.faq {
  max-width: 820px;
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 17px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 680;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  align-items: start;
  gap: 52px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.contact-list strong,
.contact-list span {
  display: block;
}

.contact-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.form-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.field {
  margin-bottom: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #354156;
  font-size: 14px;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 142px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #919baa;
}

.form-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 216px);
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(76px, 15vw, 144px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-page h1 {
  margin: 22px 0 12px;
  font-size: 34px;
}

.error-page .lead {
  max-width: 540px;
  margin-inline: auto;
  font-size: 18px;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card:last-child {
    grid-column: 1 / -1;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side-nav {
    position: static;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    border-left: 0;
  }

  .side-nav a {
    margin: 0 0 -1px;
    padding: 8px 11px;
    border-right: 0;
    border-bottom: 2px solid transparent;
    border-left: 0;
    white-space: nowrap;
  }

  .side-nav a:hover {
    border-bottom-color: var(--border-strong);
    border-left-color: transparent;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--page));
  }

  .hero,
  .section {
    padding: 48px 0;
  }

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

  h1 {
    font-size: 39px;
  }

  .grid-3,
  .grid-2,
  .pricing-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card:last-child,
  .field-full {
    grid-column: auto;
  }

  .status-card,
  .card,
  .pricing-card,
  .form-panel {
    padding: 20px;
  }

  .status-summary,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  th,
  td {
    padding: 11px 12px;
  }
}

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

