:root {
  --bg: #000000;
  --surface: #050505;
  --surface-soft: #0b0b0b;
  --text: #f4f4f4;
  --muted: #b8b8b8;
  --line: rgba(244, 244, 244, 0.32);
  --line-strong: rgba(244, 244, 244, 0.9);
  --accent: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(24px, 6vw, 96px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% -20%, #161616 0%, #000000 42%), #000000;
  color: var(--text);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  position: relative;
  isolation: isolate;
}

.page-shell,
.docs-shell {
  position: relative;
  z-index: 1;
}

.reveal-item {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 52px, 0) scale(0.985);
  transition:
    opacity 0.86s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.08s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1.08s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  height: 96px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 108px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
}

.main-nav > a,
.nav-drop-toggle {
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.82;
  cursor: pointer;
  padding: 8px 2px;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible,
.nav-drop-toggle:hover,
.nav-drop-toggle:focus-visible,
.main-nav > a.is-active,
.nav-drop-toggle.is-active {
  opacity: 1;
  text-shadow: 0 0 10px rgba(244, 244, 244, 0.36);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-toggle::after {
  content: "\25BE";
  font-size: 12px;
  margin-left: 6px;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 210px;
  padding: 10px;
  display: none;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #040404;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.dropdown-menu a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  opacity: 0.88;
  border-radius: 8px;
  padding: 9px 10px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: grid;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  padding: 11px 16px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #dfdfdf;
}

.btn-outline {
  background: transparent;
  color: var(--text);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav a,
.mobile-nav summary {
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  display: block;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav details[open] summary {
  margin-bottom: 8px;
}

.mobile-nav details a {
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  padding: 8px 10px;
}

.mobile-nav a.is-active,
.mobile-nav summary.is-active,
.mobile-nav details a.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.page-main {
  flex: 1;
  padding: clamp(58px, 8vw, 118px) 0 clamp(72px, 10vw, 132px);
}

.section {
  margin-top: clamp(34px, 5vw, 76px);
}

.section:first-child {
  margin-top: 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: clamp(16px, 2.2vw, 28px);
}

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

h1 {
  font-size: clamp(38px, 6.5vw, 88px);
  line-height: 1.02;
  font-weight: 500;
}

h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 500;
}

h3 {
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.1;
  font-weight: 500;
}

.lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(16px, 1.75vw, 24px);
  line-height: 1.35;
}

.micro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(18px, 2.2vw, 30px);
}

.panel.soft {
  background: var(--surface-soft);
}

.panel:hover {
  border-color: var(--line-strong);
}

.grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
}

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

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

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

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

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

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

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #040404;
  padding: 14px;
}

.kpi strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.05;
  margin-bottom: 5px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
}

.stat-strip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: clamp(14px, 1.25vw, 17px);
  color: var(--muted);
}

.partner-marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 0;
  position: relative;
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: scroll-x 22s linear infinite;
}

.partner-track span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 42vw, 520px);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.72));
}

.check-list,
.dot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li,
.dot-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.35;
}

.check-list li::before,
.dot-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 14px 54px;
  position: relative;
  background: #040404;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.network-groups {
  display: grid;
  gap: 12px;
}

.network-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.network-line strong {
  min-width: 110px;
  font-size: 15px;
}

.network-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--muted);
}

.code-block {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #020202;
  overflow-x: auto;
  padding: 14px;
  color: #e6e6e6;
  font-size: 13px;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 16px;
}

.phase-card {
  position: relative;
  padding-top: 86px;
  overflow: visible;
}

.phase-badge {
  position: absolute;
  left: 50%;
  top: -50px;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f4f4f4;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.7);
  z-index: 3;
}

.phase-status {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1;
}

.progress-track {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: #f4f4f4;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}

th {
  color: var(--text);
  font-weight: 500;
}

.bridge-widget {
  display: grid;
  gap: 12px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  background: #000;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--line-strong);
}

.swap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.swap-direction {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}

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

.quote-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #040404;
}

.quote-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.quote-item strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.1;
}

.bridge-status {
  font-size: 14px;
  color: var(--muted);
  min-height: 1.4em;
}

.bridge-status.ok {
  color: #ffffff;
}

.bridge-status.warn {
  color: #d5d5d5;
}

.faq-accordion {
  display: grid;
  gap: 12px;
}

.faq-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0a0a;
  overflow: clip;
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  padding: 18px 20px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 500;
}

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

.faq-question::after {
  content: "›";
  flex: 0 0 auto;
  font-size: 34px;
  line-height: 0.9;
  color: #d8d8d8;
  transition: transform 0.2s ease;
}

.faq-entry[open] .faq-question {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.faq-entry[open] .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 18px 20px 22px;
  background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030303;
  margin-top: auto;
}

.footer-top {
  padding: 36px 0 26px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 108px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 15px;
}

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

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 7px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
}

@media (max-width: 1220px) {
  .header-cta {
    display: none;
  }

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

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

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

  .menu-btn {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-nav {
    display: grid;
    gap: 8px;
    padding: 0 0 14px;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .hero-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .bridge-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .phase-badge {
    width: 88px;
    height: 88px;
    top: -44px;
    font-size: 50px;
  }

  .phase-card {
    padding-top: 72px;
  }

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

@media (max-width: 680px) {
  .topbar-inner {
    height: 86px;
  }

  .brand img {
    width: 94px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }

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

  .stat-strip {
    border-radius: 14px;
  }

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

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .faq-question {
    padding: 14px 16px;
    font-size: clamp(18px, 5.8vw, 23px);
  }

  .faq-answer {
    padding: 14px 16px 16px;
  }

  .faq-answer p {
    font-size: 17px;
  }
}

/* Documentation layout in Point Shift monochrome style */
body.docs-page {
  min-height: 100vh;
  background: radial-gradient(circle at 15% -18%, #171717 0%, #020202 48%), #000000;
  color: #f4f4f4;
  line-height: 1.45;
}

.docs-shell {
  min-height: 100vh;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(244, 244, 244, 0.2);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.docs-top-inner {
  width: min(1640px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.docs-logo {
  display: inline-flex;
  align-items: center;
}

.docs-logo img {
  width: 114px;
  height: auto;
}

.docs-primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}

.docs-primary-nav a {
  text-decoration: none;
  color: #f4f4f4;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1;
  font-weight: 400;
  opacity: 0.72;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.docs-primary-nav a.is-active,
.docs-primary-nav a:hover,
.docs-primary-nav a:focus-visible {
  opacity: 1;
  border-bottom-color: #f4f4f4;
  outline: none;
}

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

.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
  border: 1px solid rgba(244, 244, 244, 0.24);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  color: #b9b9b9;
}

.docs-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  color: #f4f4f4;
  font-size: 15px;
}

.docs-search input::placeholder {
  color: #9a9a9a;
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: -1px;
  width: min(620px, 78vw);
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(244, 244, 244, 0.25);
  border-radius: 10px;
  background: #0b0b0b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.48);
  z-index: 90;
  padding: 8px;
}

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

.docs-search-result {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ececec;
  text-align: left;
  padding: 10px 10px;
  cursor: pointer;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.docs-search-result-title {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: #f4f4f4;
}

.docs-search-result-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: #aaaaaa;
}

.docs-search-empty {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px;
}

.docs-menu-btn {
  display: none;
  border: 1px solid rgba(244, 244, 244, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f4;
  border-radius: 10px;
  height: 42px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.docs-layout {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 270px;
  gap: 30px;
  align-items: start;
  padding: 22px 0 44px;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding-right: 6px;
}

.docs-sidebar-scroll h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #f4f4f4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-group h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: #f4f4f4;
  opacity: 0.92;
  text-transform: uppercase;
}

.docs-nav-group a {
  display: block;
  text-decoration: none;
  color: #d6d6d6;
  font-size: 15px;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 8px;
}

.docs-nav-group a:hover,
.docs-nav-group a:focus-visible {
  color: #f4f4f4;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.docs-nav-group a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.docs-main {
  min-width: 0;
}

.docs-article {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(244, 244, 244, 0.26);
  border-radius: 14px;
  padding: clamp(22px, 2.2vw, 34px);
}

.docs-article h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.05;
  font-weight: 600;
  color: #f4f4f4;
}

.docs-article h1[id],
.docs-article section[id] {
  scroll-margin-top: 112px;
}

.docs-article h2 {
  margin: 28px 0 10px;
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  color: #f4f4f4;
}

.docs-article h3 {
  margin: 16px 0 8px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  color: #f4f4f4;
}

.docs-article p {
  margin: 0 0 16px;
  color: #d4d4d4;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.48;
}

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

.docs-article li {
  margin: 0 0 10px;
  color: #dddddd;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.42;
}

.docs-article a {
  color: #f4f4f4;
  text-underline-offset: 2px;
}

.docs-article code {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  font-size: 0.9em;
  color: #ffffff;
}

.docs-article pre {
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid rgba(244, 244, 244, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.docs-article pre code {
  background: transparent;
  padding: 0;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre;
}

.docs-callout {
  margin: 0 0 20px;
  border: 1px solid rgba(244, 244, 244, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
}

.docs-callout p {
  margin: 0;
}

.docs-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  min-width: 520px;
}

.docs-table th,
.docs-table td {
  border: 1px solid rgba(244, 244, 244, 0.24);
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
}

.docs-table th {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.docs-table td {
  color: #d6d6d6;
}

.docs-meta {
  margin-top: 8px;
  color: #a9a9a9;
  font-size: 14px;
}

.docs-right {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.docs-panel {
  border: 1px solid rgba(244, 244, 244, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.docs-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #f4f4f4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.docs-panel a {
  display: block;
  text-decoration: none;
  color: #d2d2d2;
  font-size: 14px;
  line-height: 1.3;
  padding: 4px 0;
}

.docs-panel a:hover,
.docs-panel a:focus-visible {
  color: #ffffff;
  outline: none;
}

.docs-panel a.is-active {
  color: #ffffff;
  font-weight: 500;
}

.docs-copy-btn {
  width: 100%;
  border: 1px solid rgba(244, 244, 244, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f4f4;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 11px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.docs-copy-btn:hover,
.docs-copy-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.docs-ghost-link {
  margin-top: 8px;
}

.docs-contract-address {
  margin: 0;
  color: #d8dbe6;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 1440px) {
  .docs-layout {
    grid-template-columns: 268px minmax(0, 1fr) 236px;
    gap: 22px;
  }
}

@media (max-width: 1220px) {
  .docs-primary-nav {
    display: none;
  }

  .docs-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 75;
    inset: 84px auto 0 0;
    width: 292px;
    max-height: none;
    margin: 0;
    padding: 16px;
    background: #050505;
    border-right: 1px solid rgba(244, 244, 244, 0.22);
    transform: translateX(-106%);
    transition: transform 0.2s ease;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .docs-top-inner {
    width: calc(100% - 20px);
    min-height: 72px;
    grid-template-columns: auto 1fr;
  }

  .docs-top-actions {
    justify-self: end;
  }

  .docs-search {
    min-width: 0;
    width: 188px;
  }

  .docs-layout {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .docs-right {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .docs-logo img {
    width: 98px;
  }

  .docs-search {
    width: 170px;
  }

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

  .docs-article {
    padding: 16px;
  }

  .docs-article p,
  .docs-article li {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}
