:root {
  --black: #000000;
  --ink: #1a1a1a;
  --ink-soft: #222222;
  --grey: #5d5959;
  --muted: #aeafb4;
  --white: #ffffff;
  --surface: #f7f8f8;
  --line: #e5e9ee;
  --yellow: #fffac0;
  --pink: #ffdfd8;
  --sage: #e7e7d3;
  --violet: #f0e9f9;
  --blue: #eff2ff;
  --purple: #7b3eab;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--grey);
  font-family: Manrope, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-weight: 700;
}

.brand img {
  width: 118px;
  height: auto;
}

.brand span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--yellow);
  border-radius: 8px;
  background: linear-gradient(-75deg, var(--pink), var(--yellow) 53%, var(--sage));
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.button.dark {
  background: transparent;
  color: var(--yellow);
}

.hero {
  background: var(--black);
  color: var(--white);
  padding: 56px 0 64px;
}

.hero-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.proof-card {
  min-height: 98px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.proof-card strong {
  display: block;
  color: var(--yellow);
  font-size: 26px;
  line-height: 1;
}

.proof-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 223, 216, 0.9), rgba(255, 250, 192, 0.84) 42%, rgba(231, 231, 211, 0.82)),
    var(--surface);
}

.hero-visual img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.platform-map {
  padding: 24px;
  color: var(--ink);
}

.map-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 800;
}

.map-title span {
  color: var(--grey);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-stack {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.map-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.map-row strong {
  color: var(--ink);
  font-size: 14px;
}

.map-row span {
  color: var(--grey);
  font-size: 13px;
}

.section {
  background: var(--white);
  padding: 68px 0;
}

.section.alt {
  background: var(--surface);
}

.section.dark {
  background: var(--black);
  color: var(--white);
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 4.6vw, 52px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.14;
}

.section-heading p {
  margin: 16px auto 0;
  max-width: 700px;
  color: var(--grey);
}

.section.dark .section-heading h2 {
  color: var(--white);
}

.section.dark .section-heading p {
  color: var(--muted);
}

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

.doc-group {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.doc-group h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

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

.doc-link-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.35;
}

.doc-link-list a:hover {
  background: var(--surface);
  color: var(--ink);
}

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

.workflow-card {
  min-height: 190px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--violet), var(--blue) 56%, #e2ecfd);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workflow-card:nth-child(2) {
  background: linear-gradient(145deg, var(--pink), var(--yellow) 60%, var(--sage));
}

.workflow-card:nth-child(3) {
  background: linear-gradient(145deg, #d3ffe7, #c7fff8);
}

.workflow-card:nth-child(4) {
  background: linear-gradient(145deg, #ffd8c7, #e8d0ec);
}

.workflow-card strong {
  font-size: 19px;
  line-height: 1.2;
}

.workflow-card span {
  margin-top: 18px;
  color: var(--grey);
  font-size: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.search-box {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.search-box label {
  display: block;
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.search-input {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 250, 192, 0.16);
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.11);
}

.search-result span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-result strong {
  color: var(--white);
  font-size: 17px;
}

.search-result small {
  color: var(--muted);
  font-size: 13px;
}

.docs-shell {
  background: var(--surface);
  min-height: calc(100vh - 76px);
}

.mobile-doc-toggle {
  display: none;
}

.docs-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
}

.docs-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow: auto;
  padding: 24px;
  background: var(--black);
  color: var(--muted);
}

.sidebar-search {
  margin-bottom: 20px;
}

.sidebar-section {
  margin-top: 22px;
}

.sidebar-section h2 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-section a:hover,
.sidebar-section a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.doc-main {
  min-width: 0;
  padding: 38px min(5vw, 76px) 72px;
}

.doc-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--grey);
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--grey);
  font-size: 13px;
}

.doc-meta a {
  color: var(--purple);
  font-weight: 800;
}

.doc-article h1,
.doc-article h2,
.doc-article h3,
.doc-article h4 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.16;
}

.doc-article h1 {
  margin: 0 0 26px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
}

.doc-article h2 {
  margin: 42px 0 14px;
  padding-top: 10px;
  font-size: 28px;
  font-weight: 600;
}

.doc-article h3 {
  margin: 30px 0 10px;
  font-size: 21px;
  font-weight: 700;
}

.doc-article p {
  margin: 0 0 16px;
}

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

.doc-article li {
  margin: 7px 0;
}

.doc-article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92em;
}

.doc-article pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 14px;
  background: #12141d;
  color: var(--white);
}

.doc-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.doc-article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 20px 0;
}

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

.doc-article th {
  color: var(--ink);
  background: var(--surface);
}

.doc-footer-nav {
  max-width: 900px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.footer-link-card {
  flex: 1;
  padding: 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.footer-link-card span {
  display: block;
  color: var(--grey);
  font-size: 12px;
}

.empty-state {
  color: var(--muted);
}

.site-footer {
  background: var(--black);
  color: var(--muted);
  padding: 34px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .doc-groups,
  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-doc-toggle {
    display: inline-flex;
    width: calc(100% - 32px);
    margin: 16px;
    border: 0;
  }

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

  .docs-sidebar {
    display: none;
    position: static;
    height: auto;
  }

  .docs-sidebar[data-open] {
    display: block;
  }

  .doc-main {
    padding: 18px 16px 54px;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding: 36px 0 42px;
  }

  .hero-proof,
  .doc-groups,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: auto;
  }

  .section {
    padding: 48px 0;
  }

  .doc-article {
    padding: 26px 18px;
    border-radius: 16px;
  }

  .doc-footer-nav {
    flex-direction: column;
  }

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