:root {
  --ink: #0e1116;
  --ink-2: #3b4250;
  --muted: #6b7280;
  --line: #e6e6e3;
  --line-2: #efefec;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --accent: #1f7ae0;
  --accent-ink: #145fb4;
  --accent-soft: #eaf3fd;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px -12px rgba(14, 17, 22, 0.12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 650;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

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

.btn-primary:hover {
  background: #262b35;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #cfcfcb;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand-by {
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero */
.hero {
  padding: 88px 0 72px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 550;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.hero-lede {
  margin-top: 22px;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 520px;
}

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

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Product mock */
.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.mock-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.post {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.post-thumb {
  width: 76px;
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(160deg, #f4d9c6 0%, #e9b7a0 45%, #c98d7a 100%);
  position: relative;
  overflow: hidden;
}

.post-thumb::after {
  content: "";
  position: absolute;
  inset: auto 8px 8px auto;
  width: 0;
  height: 0;
  border-left: 9px solid rgba(255, 255, 255, 0.95);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.post-meta strong {
  display: block;
  font-size: 14.5px;
}

.post-meta span {
  font-size: 13.5px;
  color: var(--muted);
}

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

.avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
}

.avatar-a {
  background: #8b6cd8;
}

.avatar-b {
  background: var(--accent);
}

.comment-body {
  font-size: 14.5px;
  line-height: 1.45;
}

.comment-body b {
  font-weight: 650;
  margin-right: 6px;
}

.kw {
  background: #fff3c4;
  border-radius: 4px;
  padding: 0 3px;
}

.reply {
  margin-left: 40px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.reply b {
  font-weight: 650;
  margin-right: 6px;
  color: var(--ink);
}

.dm {
  margin-top: 18px;
  background: #f6f6f4;
  border-radius: 16px;
  padding: 16px;
}

.dm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 14.5px;
  max-width: 300px;
}

.bubble-btn {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.mock-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.section-head p {
  margin-top: 16px;
  font-size: 17.5px;
  color: var(--ink-2);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.step h3 {
  font-size: 19px;
  margin: 14px 0 8px;
}

.step p {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Chat */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.split .section-head {
  margin-bottom: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  color: var(--ink-2);
}

.checklist li {
  position: relative;
  padding-left: 26px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.msg {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}

.msg-user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-ai {
  justify-self: start;
  background: #f4f4f2;
  border-bottom-left-radius: 4px;
}

.msg-ai ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.msg-tool {
  justify-self: start;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 4px;
}

.msg-tool span {
  color: #15803d;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.feature {
  padding: 28px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.feature:nth-child(3n) {
  border-right: 0;
}

.feature:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  color: var(--ink-2);
}

/* Developers */
.dev {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.endpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 10px 10px 16px;
  font-family: var(--mono);
  font-size: 14.5px;
}

.copy {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 550;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}

.dev-facts {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.dev-facts strong {
  color: var(--ink);
  font-weight: 600;
}

.tools {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

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

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

.tools th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafaf8;
}

.tools td code {
  color: var(--ink);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-read {
  background: #eef6ee;
  color: #2f6b34;
}

.tag-write {
  background: #fdf3e3;
  color: #8a5a12;
}

.tag-sensitive {
  background: #fdecec;
  color: #a12a2a;
}

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.trust-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--ink-2);
  font-size: 15px;
}

.trust-item a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Company */
.company {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.company-body > p {
  font-size: 17.5px;
  color: var(--ink-2);
}

.company-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.company-facts div {
  background: var(--surface);
  padding: 16px 20px;
}

.company-facts dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.company-facts dd {
  margin: 4px 0 0;
  font-weight: 550;
}

.company-facts a,
.hero-note a,
.footer-tagline a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq details p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 680px;
}

/* CTA */
.cta {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.cta-box {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-box h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.cta-box p {
  margin-top: 12px;
  color: #b9bec8;
  font-size: 16.5px;
  max-width: 480px;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-box .btn-primary:hover {
  background: #e9e9e6;
}

.cta-box .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #3a404c;
}

.cta-box .btn-ghost:hover {
  border-color: #5a6170;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

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

.footer .brand {
  color: var(--ink);
}

.footer-tagline {
  margin-top: 12px;
  max-width: 300px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 13px;
}

/* Docs */
.docs-hero {
  padding-top: 64px;
  padding-bottom: 40px;
}

.docs-hero h1 {
  font-size: clamp(34px, 4.4vw, 48px);
}

.docs-hero p {
  margin-top: 16px;
  max-width: 640px;
  font-size: 17.5px;
  color: var(--ink-2);
}

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 96px;
}

.docs-toc {
  position: sticky;
  top: 88px;
  font-size: 14px;
}

.docs-toc p {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.docs-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.docs-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--ink-2);
}

.docs-toc a:hover {
  color: var(--ink);
  border-left-color: var(--ink);
}

.doc {
  min-width: 0;
  max-width: 780px;
}

.doc section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.doc section:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.doc h3 {
  font-size: 17px;
  margin: 28px 0 10px;
}

.doc p,
.doc li {
  color: var(--ink-2);
  font-size: 15.5px;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.doc a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc code {
  background: #f1f1ee;
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink);
}

.doc .tools {
  margin-top: 16px;
}

.doc .tools code {
  background: none;
  padding: 0;
}

.doc .endpoint {
  margin-top: 16px;
}

.doc .endpoint code {
  background: none;
  padding: 0;
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 15px;
}

.tool-ref {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.tool-ref + .tool-ref {
  margin-top: 12px;
}

.tool-ref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-ref-head code {
  font-size: 15px;
  font-weight: 500;
}

.doc .tool-ref p {
  margin-top: 8px;
  font-size: 15px;
}

.tool-ref dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 14.5px;
}

.tool-ref dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 2px;
}

.tool-ref dd {
  margin: 0;
  color: var(--ink-2);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .dev,
  .company,
  .docs {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .docs-toc {
    position: static;
  }

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

  .feature:nth-child(3n) {
    border-right: 1px solid var(--line-2);
  }

  .feature:nth-child(2n) {
    border-right: 0;
  }

  .feature:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line-2);
  }

  .feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .nav-links {
    display: none;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 56px 0 48px;
  }

  .section,
  .cta {
    padding: 72px 0;
  }

  .steps,
  .trust,
  .features,
  .company-facts {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .feature,
  .feature:nth-child(3n),
  .feature:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .tools th:nth-child(3),
  .tools td:nth-child(3) {
    display: none;
  }
}

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