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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: #000;
  color: #fff;
  scroll-behavior: smooth;
}

@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');
}

.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;
  }
}


.download-section {
  position: relative;
  padding: 120px 0 0;
  background: linear-gradient(135deg, #111827 0%, #000 40%, #1e293b 100%);
  overflow: hidden;
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: fadeScale 1s forwards ease;
}

.decor-circle.pink {
  width: 220px;
  height: 220px;
  background: #ec4899;
  top: -40px;
  left: -40px;
  opacity: 0.3;
}

.decor-circle.blue {
  width: 300px;
  height: 300px;
  background: #2563eb;
  bottom: -60px;
  right: -60px;
  opacity: 0.3;
  animation-delay: 0.25s;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .title {
    font-size: 3.5rem;
  }
}

.subtitle {
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 40px;
  color: #9ca3af;
}

.subtitle.small {
  margin-bottom: 30px;
  line-height: 1.6;
}

.section {
  margin-top: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.download-card {
  position: relative;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}

.download-card:hover {
  transform: scale(1.02) rotateX(-3deg) rotateY(3deg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.card-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 255, 0.15));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.download-card:hover .card-overlay {
  opacity: 1;
}

.os-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.text-blue-400 {
  color: #60a5fa;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-green-400 {
  color: #4ade80;
}

.download-card h3 {
  font-size: 1.15rem;
  margin: 6px 0 4px;
}

.download-card p {
  margin: 2px 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.download-card p span {
  color: #fff;
}

.description {
  color: #d1d5db;
  margin-top: 12px;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.download-btn:hover {
  background: linear-gradient(90deg, #0ea5e9, #60a5fa);
}

.your-os {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #2563eb;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

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

.build-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.build-table thead {
  background: rgba(255, 255, 255, 0.08);
}

.build-table th,
.build-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.build-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.build-table pre {
  margin: 0;
  font-size: 0.8rem;
  color: #fff;
  white-space: pre-wrap;
}

.text-cyan-400 {
  color: #22d3ee;
}

.license-section i {
  margin-right: 6px;
}

.license-section a {
  color: #22d3ee;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.license-section a:hover {
  color: #38e0ff;
}

.wave-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: 60px;
}

.wave-wrapper svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.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; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.os-icon {
  width: 1.4em;
  height: 1.4em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  transition: color 0.2s;
}

.os-icon-windows {
  color: #2563eb;
}

.os-icon-macos {
  color: #7488b1;
}
