:root {
  --ink: #0c1724;
  --muted: #64748b;
  --line: #d8e1ee;
  --paper: #f7f4ec;
  --surface: #fffaf0;
  --deep: #07111f;
  --deep-2: #0d2136;
  --accent: #f0a83b;
  --accent-2: #49c6b7;
  --blue: #1f6feb;
  --shadow: 0 24px 80px rgba(8, 18, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(240, 168, 59, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(73, 198, 183, 0.18), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: "Inter", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 225, 238, 0.82);
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  image-rendering: -webkit-optimize-contrast;
}

.nav-links,
.nav-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #415067;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(8, 18, 32, 0.06);
}

.btn.primary {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.btn.accent {
  border-color: #d89224;
  background: var(--accent);
  color: #1d1304;
}

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(73, 198, 183, 0.45);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  color: #087568;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 22px;
  max-width: 940px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.lead {
  margin-top: 24px;
  max-width: 760px;
  color: #42526b;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.6;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 238, 0.9);
  border-radius: 34px;
  background: linear-gradient(150deg, #fffaf0, #ffffff 44%, #eaf8f6);
  box-shadow: var(--shadow);
  padding: 16px;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(216, 225, 238, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  color: #6b7890;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot-row {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}

.dot:nth-child(2) {
  background: var(--accent-2);
}

.dot:nth-child(3) {
  background: var(--blue);
}

.screenshot {
  margin-top: 14px;
  border-radius: 24px;
  border: 1px solid rgba(216, 225, 238, 0.92);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  color: #405064;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: rgba(255, 250, 240, 0.58);
  border-block: 1px solid rgba(216, 225, 238, 0.72);
}

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

.section-title h1,
.section-title h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-title p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 44px rgba(8, 18, 32, 0.08);
  padding: 26px;
}

.card.dark {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, var(--deep), var(--deep-2));
  color: white;
}

.card h3 {
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.card p,
.card li {
  color: #56667d;
  line-height: 1.7;
}

.card.dark p,
.card.dark li {
  color: #d7e4f2;
}

.card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
}

.price strong {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 54px;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.price .currency {
  color: currentColor;
  font-size: 0.5em;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: translateY(0.12em);
}

.price .cadence {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dark .price .cadence {
  color: #b8c9db;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.82) 58%, rgba(237, 248, 246, 0.86));
  box-shadow: 0 16px 40px rgba(8, 18, 32, 0.06);
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #36465c;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article {
  max-width: 820px;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: 42px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 104px;
}

.blog-sidebar-card {
  border: 1px solid rgba(216, 225, 238, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 10% 0%, rgba(240, 168, 59, 0.2), transparent 12rem);
  box-shadow: 0 16px 46px rgba(8, 18, 32, 0.08);
  padding: 20px;
}

.blog-sidebar-card h2 {
  margin: 0 0 12px;
  color: #354258;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc-links {
  display: grid;
  gap: 7px;
}

.toc-link {
  display: block;
  border-left: 3px solid rgba(73, 198, 183, 0.38);
  border-radius: 0 12px 12px 0;
  padding: 8px 10px;
  color: #516176;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.toc-link:hover {
  border-left-color: var(--accent);
  background: rgba(240, 168, 59, 0.12);
  color: var(--ink);
}

.toc-link-sub {
  margin-left: 12px;
  color: #6a788d;
  font-size: 12px;
  font-weight: 700;
}

.article p,
.article li {
  color: #4b5b70;
  font-size: 18px;
  line-height: 1.8;
}

.article h2 {
  margin-top: 42px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.article h1 {
  font-size: clamp(42px, 7vw, 70px);
}

.article ul {
  padding-left: 22px;
}

.article ol {
  padding-left: 22px;
}

.article-body {
  margin-top: 34px;
}

.article-body > header {
  display: none;
}

.article-body > div[data-blog-body] {
  display: contents;
}

.article-body h1 {
  display: none;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 34px;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.04em;
  scroll-margin-top: 112px;
}

.article-body h2 {
  font-size: 32px;
}

.article-body h3 {
  font-size: 24px;
}

.article-body p,
.article-body li {
  margin-top: 14px;
}

.article-body figure {
  margin: 30px 0;
}

.article-body figure > div {
  overflow: hidden;
  border: 1px solid rgba(216, 225, 238, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.92) 52%, rgba(237, 248, 246, 0.86));
  box-shadow: 0 18px 48px rgba(8, 18, 32, 0.08);
  padding: 12px;
}

.article-body figure > div > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 12px;
  margin-bottom: 12px;
}

.article-body figure > div > div:first-child span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}

.article-body figure > div > div:first-child span:nth-child(2) {
  background: var(--accent-2);
}

.article-body figure > div > div:first-child span:nth-child(3) {
  background: var(--blue);
}

.article-body figure > div > div:last-child {
  overflow: hidden;
  border-radius: 18px;
}

.article-body figcaption,
.meta-line {
  margin-top: 12px;
  color: #758399;
  font-size: 14px;
  font-weight: 700;
}

.article-body img {
  border: 1px solid rgba(216, 225, 238, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(8, 18, 32, 0.08);
}

.article-body img[src$=".svg"] {
  border-color: rgba(240, 168, 59, 0.34);
  background:
    linear-gradient(150deg, #fffaf0, #ffffff 56%, #edf8f6);
  box-shadow:
    0 18px 48px rgba(8, 18, 32, 0.08),
    inset 0 0 0 10px rgba(255, 250, 240, 0.54);
  padding: 12px;
}

.article-body p code,
.article-body li code {
  border-color: rgba(240, 168, 59, 0.28);
  background: linear-gradient(150deg, rgba(255, 250, 240, 0.96), rgba(238, 248, 246, 0.92));
  color: #112036;
  font-size: 0.92em;
}

.article-body li code {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  white-space: normal;
}

.article table,
.article-body table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.84) 58%, rgba(237, 248, 246, 0.84));
  box-shadow: 0 18px 48px rgba(8, 18, 32, 0.07);
}

.article th,
.article td,
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article pre {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #0d1726, #111c2d);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article pre code {
  border: 0;
  padding: 0;
  background: transparent;
  color: #e2e8f0;
}

.api-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.api-sidebar {
  position: sticky;
  top: 104px;
}

.api-sidebar-card {
  border: 1px solid rgba(216, 225, 238, 0.92);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 250, 240, 0.96), rgba(255, 255, 255, 0.86) 56%, rgba(237, 248, 246, 0.84));
  box-shadow: 0 18px 48px rgba(8, 18, 32, 0.07);
  padding: 18px;
}

.api-sidebar-card h2 {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #42526b;
}

.api-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.api-links a {
  display: block;
  border-left: 3px solid rgba(73, 198, 183, 0.55);
  padding: 8px 12px;
  color: #42526b;
  font-size: 14px;
  font-weight: 700;
}

.api-links a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}

.api-note {
  margin-top: 14px;
  color: #758399;
  font-size: 13px;
  line-height: 1.6;
}

.endpoint-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.endpoint-groups {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.endpoint-group {
  border: 1px solid rgba(216, 225, 238, 0.82);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.48);
  padding: 18px;
}

.endpoint-group h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.endpoint-group > p {
  margin-top: 8px;
  color: #617086;
  font-size: 15px;
  line-height: 1.6;
}

.endpoint {
  border: 1px solid rgba(216, 225, 238, 0.9);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.84) 52%, rgba(237, 248, 246, 0.82));
  box-shadow: 0 14px 36px rgba(8, 18, 32, 0.05);
  padding: 16px 18px;
}

.endpoint-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.method {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method.get {
  background: rgba(73, 198, 183, 0.16);
  color: #087568;
}

.method.post {
  background: rgba(240, 168, 59, 0.16);
  color: #9a610a;
}

.method.put {
  background: rgba(31, 111, 235, 0.14);
  color: #1f4ea3;
}

.endpoint code {
  font-size: 13px;
}

.endpoint p {
  margin-top: 10px;
  color: #42526b;
}

.api-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.api-tab {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.88);
  padding: 14px;
}

.api-tab strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.code-sample {
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 238, 0.9);
  background: linear-gradient(180deg, #0d1726, #111c2d);
  box-shadow: var(--shadow);
}

.code-sample .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #b8c9db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code-sample pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px;
}

.code-sample code {
  color: #e2e8f0;
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Menlo", "Monaco", monospace;
  font-size: 13px;
  line-height: 1.75;
  font-variant-ligatures: none;
}

.tok-keyword {
  color: #93c5fd;
}

.tok-string {
  color: #86efac;
}

.tok-fn {
  color: #f0a83b;
}

.tok-comment {
  color: #94a3b8;
}

.tok-number {
  color: #fda4af;
}

.code-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.code-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.88);
  padding: 7px 12px;
  color: #42526b;
  font-size: 13px;
  font-weight: 700;
}

.code-tabs {
  margin-top: 18px;
}

.code-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-tab-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  padding: 9px 14px;
  color: #42526b;
  font-size: 13px;
  font-weight: 800;
}

.code-tab-btn.is-active {
  border-color: rgba(8, 117, 104, 0.32);
  background: rgba(73, 198, 183, 0.16);
  color: #087568;
}

.code-tab-panel {
  margin-top: 14px;
}

.article-cta {
  margin-top: 44px;
}

.article-list .card {
  min-height: 250px;
}

.series-card ul {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.series-card li {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(216, 225, 238, 0.85);
  padding-top: 12px;
}

.series-card li a {
  color: var(--ink);
  font-weight: 900;
}

.series-card li span {
  color: #758399;
  font-size: 13px;
  font-weight: 800;
}

.footer {
  border-top: 1px solid rgba(216, 225, 238, 0.9);
  background: #fffaf0;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer h3 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.footer a,
.footer p {
  color: #617086;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.feedback-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: #28384d;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(216, 225, 238, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 14px 16px;
  outline: none;
}

.feedback-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  border-color: rgba(73, 198, 183, 0.95);
  box-shadow: 0 0 0 4px rgba(73, 198, 183, 0.16);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  color: #4b5b70 !important;
  font-weight: 700 !important;
}

.checkbox-row input {
  width: auto;
  min-width: 18px;
  height: 18px;
}

.feedback-form button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.form-status {
  min-height: 24px;
  color: #53647a;
  font-weight: 700;
}

.form-status[data-tone="warn"] {
  color: #9a5d00;
}

.form-status[data-tone="success"] {
  color: #087568;
}

code {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.95);
  padding: 4px 8px;
  color: #1e293b;
  font-size: 12px;
  word-break: break-all;
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Menlo", "Monaco", monospace;
  font-variant-ligatures: none;
}

@media (max-width: 860px) {
  .nav-inner,
  .hero-grid,
  .grid.three,
  .grid.two,
  .article-layout,
  .api-layout,
  .api-tabs,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .api-sidebar {
    position: static;
  }

  .nav-inner {
    display: grid;
    padding: 14px 0;
  }

  .nav-links,
  .nav-actions {
    gap: 10px;
  }

  .hero {
    padding-top: 48px;
  }
}
