.docs-page {
  --docs-blue: #146df2;
  --docs-navy: #06162b;
  --docs-ink: #122033;
  --docs-muted: #5b6879;
  --docs-line: #dbe4ef;
  --docs-soft: #f3f7fc;
  background: #fff;
  color: var(--docs-ink);
}

.docs-page main {
  width: 100%;
  padding-top: 0;
}

.docs-page header {
  background: rgba(2, 8, 18, 0.94);
  border-bottom-color: rgba(158, 199, 255, 0.16);
  box-shadow: none;
}

.docs-page header .nav-trigger,
.docs-page header .nav-link {
  color: rgba(237, 245, 255, 0.78);
}

.docs-page header .nav-trigger:hover,
.docs-page header .nav-group:focus-within .nav-trigger,
.docs-page header .nav-group:hover .nav-trigger,
.docs-page header .nav-link:hover {
  color: #fff;
}

.docs-page header .nav-dropdown {
  background: rgba(5, 12, 24, 0.98);
  border-color: rgba(158, 199, 255, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.docs-page header .dropdown-link,
.docs-page header .mobile-nav-link {
  color: rgba(239, 246, 255, 0.88);
}

.docs-page header .dropdown-link:hover {
  background: rgba(20, 109, 242, 0.18);
  color: #fff;
}

.docs-page header .nav-menu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(158, 199, 255, 0.24);
  color: #fff;
}

.docs-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--docs-navy);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.docs-hero {
  position: relative;
  min-height: min(690px, calc(100svh - 70px));
  margin-top: 69px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--docs-navy);
  color: #fff;
}

.docs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 34, 0.97) 0%, rgba(3, 17, 34, 0.82) 42%, rgba(3, 17, 34, 0.08) 78%),
    linear-gradient(0deg, rgba(3, 17, 34, 0.7), transparent 45%);
  pointer-events: none;
}

.docs-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.84;
  transform: scale(1.025);
  animation: docs-image-settle 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.docs-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  padding: clamp(64px, 9vw, 118px) clamp(24px, 6vw, 88px);
}

.docs-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.docs-hero-lead {
  max-width: 620px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.docs-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--docs-blue);
  color: #fff;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.docs-button:hover {
  background: #0f5fd7;
  color: #fff !important;
  transform: translateY(-2px);
}

.docs-button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.docs-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.docs-update {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px clamp(24px, 6vw, 88px);
  border-bottom: 1px solid var(--docs-line);
  background: #fff;
  color: var(--docs-muted);
  font-size: 14px;
}

.docs-update strong {
  color: var(--docs-ink);
}

.docs-layout {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(52px, 6vw, 84px);
  padding: clamp(58px, 8vw, 112px) 0 120px;
}

.docs-sidebar {
  width: 100%;
}

.docs-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--docs-line);
}

.docs-nav a {
  padding: 11px 0 11px 13px;
  border-bottom: 1px solid var(--docs-line);
  border-left: 2px solid transparent;
  color: var(--docs-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  transition: color 150ms ease, border-color 150ms ease, padding 150ms ease;
}

.docs-nav a:hover,
.docs-nav a[aria-current="location"] {
  padding-left: 17px;
  border-left-color: var(--docs-blue);
  color: var(--docs-blue) !important;
}

.docs-article {
  width: 100%;
  min-width: 0;
}

.docs-section {
  padding: 0 0 clamp(72px, 9vw, 118px);
  scroll-margin-top: 112px;
  animation: docs-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.docs-section[hidden] {
  display: none;
}

.docs-section + .docs-section {
  padding-top: clamp(72px, 9vw, 118px);
  border-top: 1px solid var(--docs-line);
}

.docs-kicker {
  margin-bottom: 14px;
  color: var(--docs-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.docs-section h2 {
  max-width: 760px;
  color: var(--docs-navy);
  font-size: clamp(34px, 4.5vw, 57px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.docs-section h3 {
  margin-top: 38px;
  color: var(--docs-navy);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.docs-section > p,
.docs-section li,
.docs-section td,
.docs-section th {
  font-size: 16px;
}

.docs-section > p {
  max-width: 760px;
  margin-top: 20px;
  color: var(--docs-muted);
}

.docs-section a:not(.docs-button) {
  color: var(--docs-blue);
  text-decoration: underline;
  text-decoration-color: rgba(20, 109, 242, 0.3);
  text-underline-offset: 3px;
}

.docs-steps,
.docs-list {
  max-width: 980px;
  margin: 24px 0 0;
  padding-left: 0;
  list-style: none;
}

.docs-steps {
  counter-reset: docs-step;
}

.docs-steps li,
.docs-list li {
  position: relative;
  padding: 18px 0 18px 48px;
  border-bottom: 1px solid var(--docs-line);
  color: var(--docs-ink);
}

.docs-steps li {
  counter-increment: docs-step;
}

.docs-steps li::before {
  content: counter(docs-step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--docs-blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.docs-list li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--docs-blue);
  box-shadow: 0 0 0 6px rgba(20, 109, 242, 0.1);
}

.docs-steps strong,
.docs-list strong {
  color: var(--docs-navy);
}

.docs-callout {
  max-width: 980px;
  margin-top: 28px;
  padding: 24px 26px;
  border-left: 4px solid var(--docs-blue);
  background: var(--docs-soft);
}

.docs-callout strong {
  display: block;
  margin-bottom: 7px;
  color: var(--docs-navy);
}

.docs-callout p {
  color: var(--docs-muted);
}

.docs-callout-warning {
  border-left-color: #ed7d00;
  background: #fff6e9;
}

.docs-table-wrap {
  max-width: 1100px;
  margin-top: 24px;
  overflow-x: auto;
  border-top: 2px solid var(--docs-navy);
  -webkit-overflow-scrolling: touch;
}

.docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

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

.docs-table th {
  color: var(--docs-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-figure {
  width: min(1440px, 100%);
  margin-top: 34px;
}

.docs-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--docs-line);
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(6, 22, 43, 0.13);
}

.docs-figure figcaption {
  margin-top: 12px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-flow {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.docs-flow div {
  position: relative;
  padding: 21px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.docs-flow div:last-child {
  border-right: 0;
}

.docs-flow small {
  display: block;
  margin-bottom: 5px;
  color: #9ec7ff !important;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-flow strong {
  font-size: 15px;
}

.docs-download-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--docs-line);
  border-bottom: 1px solid var(--docs-line);
}

.docs-download-row p {
  color: var(--docs-muted);
  font-size: 14px;
}

.docs-download-row .docs-button {
  flex: 0 0 auto;
}

.finishlynx-page .docs-hero {
  min-height: 640px;
}

.finishlynx-page .docs-hero-media {
  object-position: 62% 50%;
}

@keyframes docs-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes docs-image-settle {
  from { opacity: 0.5; transform: scale(1.07); }
  to { opacity: 0.84; transform: scale(1.025); }
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .docs-sidebar {
    position: static;
  }

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

  .docs-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-flow div:nth-child(2) {
    border-right: 0;
  }

  .docs-flow div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 720px) {
  .docs-hero {
    min-height: calc(100svh - 64px);
    margin-top: 64px;
  }

  .docs-hero::after {
    background: linear-gradient(0deg, rgba(3, 17, 34, 0.98) 5%, rgba(3, 17, 34, 0.72) 63%, rgba(3, 17, 34, 0.26));
  }

  .docs-hero-media {
    object-position: 62% 50%;
  }

  .docs-hero-inner {
    padding: 74px 22px 46px;
  }

  .docs-hero h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .docs-update {
    padding: 15px 22px;
  }

  .docs-layout {
    width: min(100% - 36px, 1380px);
    padding-top: 46px;
  }

  .docs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .docs-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--docs-line);
    border-radius: 999px;
    white-space: nowrap;
  }

  .docs-nav a:hover,
  .docs-nav a[aria-current="location"] {
    padding-left: 12px;
    border-color: var(--docs-blue);
  }

  .docs-section > p,
  .docs-section li,
  .docs-section td,
  .docs-section th {
    font-size: 15px;
  }

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

  .docs-flow div,
  .docs-flow div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .docs-flow div:last-child {
    border-bottom: 0;
  }

  .docs-download-row {
    align-items: stretch;
    flex-direction: column;
  }

  .docs-download-row .docs-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-page *,
  .docs-page *::before,
  .docs-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
