:root {
  --primary: #1E293B;
  --accent: #0EA5E9;
  --background: #0F172A;
  --font-cool: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v30-cyrillic_latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/montserrat-v30-cyrillic_latin-500.woff2') format('woff2');
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  font-family: var(--font-body);
  color: #ffffff;
  background: var(--background);
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  margin: 0 auto;
  z-index: 50;
  background-color: transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 8px 32px;
}
.logo-container { display: flex; align-items: center; }
.logo { width: 48px; height: 48px; object-fit: contain; }
.separator { width: 2px; height: 40px; rotate: 20deg; background-color: rgba(255,255,255,0.6); margin: 0 16px; }
.version { color: white; font-size: 1.2rem; font-weight: bold; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-link:hover {
  transform: scale(1.01);
  opacity: 0.85;
}
body.scrolled .navbar { background-color: rgba(0,0,0,0.8);}
body.scrolled .nav-link { transform: scale(0.985); text-decoration-color: white;}
.menu-icon { display: none; cursor: pointer; }
.icon { width: 32px; height: 32px; stroke-width: 2; }
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
  fill: currentColor;
  margin-right: 0.3em;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropbtn {
  background: rgba(14,165,233,0.14);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 15px;
  opacity: 0.95;
  padding: 7px 18px 7px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  box-shadow: 0 3px 16px rgba(14,165,233,0.12);
  transition: background 0.18s, box-shadow 0.22s, color 0.18s;
  outline: none;
}
.nav-dropbtn .drop-arrow {
  display: inline-block;
  margin-left: 1px;
  width: 15px;
  height: 15px;
  transition: transform 0.5s cubic-bezier(.51,.4,.23,1.4);
  position: relative;
}
.nav-dropbtn .drop-arrow::after {
  content: '';
  display: block;
  width: 9px; height: 9px;
  border-right: 2.3px solid #fff;
  border-bottom: 2.3px solid #fff;
  border-radius: 1.5px;
  transform: rotate(45deg);
  position: absolute; left: 3px; top: 2px;
  transition: border-color 0.21s;
}
.nav-dropbtn.buy-btn { background: linear-gradient(90deg,#0ea5e9 0%,#38bdf8 90%);}
.nav-dropbtn.stake-btn { background: linear-gradient(90deg,#0ea5e9 0%,#22d3ee 90%);}
.nav-dropbtn:hover,
.nav-dropbtn.active,
.nav-dropdown.open .nav-dropbtn {
  background: rgba(14,165,233,0.30);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14,165,233,0.19);
}
.nav-dropdown.open .drop-arrow { transform: rotate(180deg); }

.dropdown-hoverzone {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 55px 28px 55px;
  z-index: 999;
  display: none;
  pointer-events: none;
}
.nav-dropdown:hover .dropdown-hoverzone,
.nav-dropdown:focus-within .dropdown-hoverzone,
.nav-dropdown.open .dropdown-hoverzone {
  display: block;
  pointer-events: auto;
}

.dropdown-content {
  position: static !important;
  pointer-events: auto;
  min-width: 330px;
  background: rgba(17,24,39,0.99);
  border-radius: 1.3em;
  box-shadow: 0 14px 44px 0 rgba(14,165,233,0.10), 0 1.5px 7px 0 rgba(0,0,0,0.10);
  z-index: 1000;
  padding: 15px 15px 15px 15px;
  backdrop-filter: blur(12px);
  animation: dropdownFade 0.38s cubic-bezier(.7,.1,.17,1) both;
}
@keyframes dropdownFade {
  from {opacity:0;transform:translateY(-18px) scale(0.96);}
  to {opacity:1;transform:translateY(0) scale(1);}
}
.dropdown-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  grid-template-rows: repeat(9, 1fr); 
  gap: 8px 12px;
  max-width: 100%;
}
@media (max-width: 1300px) {
  .dropdown-grid {
    grid-template-rows: repeat(12,1fr);
  }

}

.stake-dropdown .dropdown-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, 1fr); 
  grid-auto-columns: max-content;
  gap: 8px 13px;
}

.dropdown-content .dropdown-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255,255,255,0.04);
  border-radius: 9px;
  padding: 10px 15px;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.17s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 0.5px 0px rgba(14,165,233,0.07);
}
.dropdown-content .dropdown-item:hover {
  background: linear-gradient(90deg,#0ea5e9 20%,#38bdf8 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(14,165,233,0.12);
  transform: scale(1.01);
}
.dropdown-content .dropdown-item img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.5px 3px rgba(14,165,233,0.09);
  padding: 2px;
}

@media (max-width: 700px) {
  .dropdown-hoverzone {
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 5vw 16px 5vw;
  }
  .dropdown-content {
    min-width: 90vw;
    padding: 16px 8px 10px 8px;
  }
  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 14px;
  }
  .dropdown-content {
    min-width: unset;
  }
  .dropdown-hoverzone {
    left: 0;
    transform: none;
    width: 100vw;
    padding: 4px 0 7px 0;
  }
}



.docs-page {
  position: relative;
  padding-top: 84px;
  padding-bottom: 44px;
  background: linear-gradient(to top right, #111827, #000000, #0f172a);
  overflow: hidden;
}

.decorative-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transform: scale(0.5);
  animation: circlePop 1s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.circle-pink {
  top: -40px;
  left: -40px;
  width: 14rem;
  height: 14rem;
  background: #ec4899;
  animation-delay: 0.2s;
}

.circle-blue {
  bottom: -40px;
  right: -40px;
  width: 18rem;
  height: 18rem;
  background: #3b82f6;
  animation-delay: 0.5s;
}

@keyframes circlePop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateZ(0);
  }
  100% {
    opacity: 0.5;
    transform: scale(1) translateZ(0);
  }
}

.docs-wrapper {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  height: calc(100vh - 315px);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 1.2rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.07rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar a:hover {
  color: #ffffff;
}

.sidebar a.active {
  color: #06b6d4;
  font-weight: 600;
}

.docs-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-left: 1rem;
  position: relative;
}

.docs-section {
  margin-bottom: 3rem;
  padding-left: 0.25rem;
  opacity: 0;
  transform: translateY(20px);
}

.docs-section.animate {
  animation: fadeUp 0.6s ease-out forwards;
}

.docs-section h2 {
  font-family: var(--font-cool);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.docs-section p {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.code-block {
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
  color: #d1d5db;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.docs-content-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #ff00ff #060612;
}

.docs-content-scrollbar::-webkit-scrollbar {
  width: 14px;
}

.docs-content-scrollbar::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255,0,255,0.1) 0%, rgba(0,255,255,0.1) 100%);
  margin: 4px 0;
}

.docs-content-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,0,255,0.7) 0%, rgba(0,255,255,0.7) 100%);
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.4);
}

.docs-content-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,0,255,1) 0%, rgba(0,255,255,1) 100%);
}

.footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 32px 0 16px;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(120deg, #111315 0%, #181b1f 70%);
}

.footer-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 4px
    );
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: stretch;
}

.footer-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
}

.footer-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 1rem;
  font-weight: 500;
  justify-content: center;
}

.footer-link {
  color: rgba(255,255,255,0.83);
  text-decoration: none;
  transition: color 0.22s, filter 0.19s;
  padding: 2px 0;
}
.footer-link:hover {
  color: #fff;
  filter: brightness(1.25);
}

.footer-social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  font-size: 1.4rem;
}
.footer-social-link {
  color: inherit;
  transition: color 0.18s;
}
.footer-social-link:hover {
  color: #0ea5e9;
}

.footer-separator {
  max-width: 1120px;
  margin: 32px auto 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-wallets-4col {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin: 30px auto 0;
  width: 90%;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 120px;
}
.footer-wallet-link {
  color: rgba(255,255,255,0.77);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed transparent;
  transition: color 0.18s, border-bottom-color 0.18s, filter 0.15s;
  padding: 3px 0;
}
.footer-wallet-link:hover {
  color: #fff;
  border-bottom: 1px dashed #0ea5e9;
  filter: brightness(1.23);
}

@media (max-width: 900px) {
  .footer-wallets-4col { gap: 16px; }
  .footer-col { min-width: 90px; }
}
@media (max-width: 600px) {
  .footer-wallets-4col { flex-direction: column; align-items: center; }
  .footer-col { min-width: 100px; gap: 10px; }
}



.jax-connect-btn {
  display: inline-block;
  padding: 0.1em 0.7em;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin: 7px 0;
  color: var(--accent);
  background-color: #000;
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.jax-connect-btn::before {
  content: '$ ';
  margin-right: 0.3em;
  color: var(--accent);
}

.jax-connect-btn:hover {
  background-color: var(--accent);
  color: var(--background);
}


.jax-connect-btn:active {
  transform: translateY(1px);
}
