@import url("assets/ref-live/reference.css");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #090e1b;
  color: #ffffff;
}

main {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

a {
  text-decoration: none;
}

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

.mobile-nav-panel {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 12px 24px 0;
}

.mobile-nav-shell {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(9, 14, 27, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-locale-dropdown {
  position: relative;
}

.site-locale-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 104px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-locale-trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.site-locale-dropdown.is-open .site-locale-trigger {
  border-color: rgba(255, 122, 69, 0.5);
  background: rgba(255, 122, 69, 0.12);
  box-shadow: 0 16px 40px rgba(255, 122, 69, 0.14);
}

.site-locale-trigger-value {
  color: #ffffff;
  white-space: nowrap;
}

.site-locale-trigger-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.62);
  transform: rotate(45deg) translateY(-1px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.site-locale-dropdown.is-open .site-locale-trigger-caret {
  border-color: #ffffff;
  transform: rotate(-135deg) translate(-2px, -1px);
}

.site-locale-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(9, 14, 27, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.site-locale-panel[hidden] {
  display: none !important;
}

.site-locale-list {
  display: grid;
  gap: 6px;
}

.site-locale-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.site-locale-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-locale-link.is-active {
  background: rgba(255, 122, 69, 0.16);
  color: #ffffff;
}

.mobile-nav-locale {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-locale .site-locale-trigger {
  width: 100%;
  min-height: 44px;
}

.mobile-nav-locale .site-locale-panel {
  position: static;
  min-width: 0;
  margin-top: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .site-locale-dropdown {
  direction: ltr;
}

html[dir="rtl"] .site-locale-panel {
  right: auto;
  left: 0;
}

html[dir="rtl"] .text-center.lg\:text-left,
html[dir="rtl"] .lg\:text-left {
  text-align: right;
}

html[dir="rtl"] .lg\:justify-start,
html[dir="rtl"] .md\:justify-start {
  justify-content: flex-end;
}

html[dir="rtl"] .md\:items-start {
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .mobile-nav-panel {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  #download .flex.items-center.gap-6 {
    flex-direction: column;
    align-items: flex-start;
  }

  #download .w-32.h-32.bg-white.rounded-lg.flex.items-center.justify-center {
    margin: 0 auto;
  }
}
