:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #172033;
  --muted: #667085;
  --border: #dfe5ec;
  --brand: #111827;
  --brand-2: #26334a;
  --success: #087f5b;
  --success-bg: #dff7ec;
  --warning: #9a6700;
  --warning-bg: #fff4cc;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code {
  background: #eef1f5;
  border-radius: 6px;
  padding: .15rem .35rem;
  font-size: .93em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 229, 236, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}
.brand strong,
.brand small { display: block; }
.brand small {
  margin-top: -3px;
  color: var(--muted);
  font-size: 12px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  background: var(--surface-soft);
}

.hero {
  padding: 86px 0 66px;
  background:
    radial-gradient(circle at 85% 20%, rgba(63, 94, 251, .12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f5f7fb 100%);
}
.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #41516b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  line-height: 1.18;
}
h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -.045em;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); }
h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.03em;
}
h3 {
  margin-bottom: 10px;
  font-size: 21px;
}
.hero-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}
.hero-actions,
.card-actions,
.bottom-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions { margin-top: 30px; }
.small-note {
  color: var(--muted);
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.button.primary {
  color: #fff;
  background: var(--brand);
}
.button.primary:hover { background: var(--brand-2); }
.button.secondary {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
.button.secondary:hover { background: var(--surface-soft); }
.text-button {
  color: var(--text);
  background: transparent;
}

.hero-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #18a876;
  box-shadow: 0 0 0 5px rgba(24, 168, 118, .14);
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 0;
}
.mini-stats div {
  padding: 14px;
  border-radius: 13px;
  background: var(--surface-soft);
}
.mini-stats dt {
  color: var(--muted);
  font-size: 12px;
}
.mini-stats dd {
  margin: 2px 0 0;
  font-weight: 750;
}

.section { padding: 74px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading h2 { margin-bottom: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.pill.success {
  color: var(--success);
  background: var(--success-bg);
}
.muted { color: var(--muted); }

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 22px;
}
.tool-card,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}
.tool-card {
  display: flex;
  gap: 24px;
  padding: 28px;
}
.tool-card.featured { border-color: #cfd8e6; }
.tool-card.placeholder {
  align-items: flex-start;
  opacity: .82;
}
.tool-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.03em;
}
.muted-icon {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 26px;
}
.tool-content { flex: 1; }
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.tool-content p { color: var(--muted); }
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding-left: 20px;
  margin: 20px 0 24px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card { padding: 24px; }
.info-card .number {
  display: inline-block;
  margin-bottom: 18px;
  color: #8a97aa;
  font-size: 13px;
  font-weight: 900;
}
.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.page-actions { justify-content: flex-end; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 800px);
  align-items: start;
  justify-content: center;
  gap: 56px;
  padding-top: 50px;
  padding-bottom: 86px;
}
.docs-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
}
.docs-sidebar strong { margin-bottom: 8px; }
.docs-sidebar a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.docs-sidebar a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.docs-content section {
  scroll-margin-top: 90px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}
.docs-content h2 {
  font-size: 30px;
}
.docs-content p,
.docs-content li { color: #475467; }
.docs-content ul,
.docs-content ol { padding-left: 22px; }

.callout {
  padding: 18px 20px;
  border-left: 4px solid #52637d;
  border-radius: 10px;
  background: #edf2f8;
}
.callout.warning {
  border-left-color: #ca8a04;
  background: var(--warning-bg);
  color: #6f4e00;
}

.code-block {
  position: relative;
  margin: 16px 0 22px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .12);
}
.code-block pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #e7edf7;
  font-size: 13px;
  line-height: 1.65;
}
.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 9px;
  border: 1px solid #3c475b;
  border-radius: 7px;
  color: #dce5f2;
  background: #202a3b;
  cursor: pointer;
  font-size: 12px;
}
.copy-button:hover { background: #2b374b; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
th, td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--surface-soft);
  font-size: 13px;
}
tbody tr:last-child td { border-bottom: 0; }

.steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 24px 50px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}
.steps strong,
.steps span { display: block; }
.steps span {
  margin-top: 3px;
  color: var(--muted);
}

details {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
summary {
  padding: 15px 17px;
  cursor: pointer;
  font-weight: 750;
}
details p {
  margin: 0;
  padding: 0 17px 17px;
}
.bottom-actions { margin-top: 38px; }

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .hero-grid,
  .page-hero-grid,
  .tool-grid,
  .info-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar { display: none; }
  .page-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header-inner {
    min-height: 64px;
    align-items: flex-start;
    padding: 12px 0;
  }
  .top-nav { display: none; }
  .hero { padding: 56px 0 46px; }
  .tool-card { flex-direction: column; }
  .feature-list { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
