/* ==========================================================================
   Decorative browser tab bar (Figma node 5:988)
   ========================================================================== */

.browser-tab {
  display: flex;
  align-items: center;
  gap: var(--spacing-400);
  height: 49px;
  padding: 0 var(--spacing-600);
  background-color: #f1f2f6;
}

.browser-tab__dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-tab__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gray-04);
}

.browser-tab__url {
  flex: 1;
  height: 22px;
  border-radius: 999px;
  background-color: var(--color-surface);
  max-width: 820px;
}

/* ==========================================================================
   Site header / Navbar (Figma node 5:994)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 240;
  background: rgba(244, 245, 248, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #9aaee7;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-400);
  max-width: 1168px;
  margin: 0 auto;
  padding: 22px 16px 10px;
  flex-wrap: nowrap;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 80px;
  overflow: visible;
}

.navbar__logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  transform: scale(1.8);
  transform-origin: left center;
}

.navbar__more {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #2d2e33;
  font-family: var(--font-family-display);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.navbar__more svg {
  flex-shrink: 0;
}

.navbar__mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  display: none;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.08);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.navbar__mobile-menu.is-open {
  display: none;
}

.navbar__mobile-links {
  display: grid;
  gap: 6px;
}

.navbar__mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: var(--font-family-display);
  font-size: 15px;
  line-height: 1.1;
  color: #26262c;
  background: transparent;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.navbar__mobile-link:hover,
.navbar__mobile-link:focus-visible {
  background: #f8f9ff;
  box-shadow: inset 0 0 0 1px rgba(76, 107, 227, 0.08);
  color: #234ae0;
  outline: none;
  transform: translateY(-1px);
}

.navbar__mobile-language {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(127, 133, 149, 0.16);
}

.navbar__mobile-language-title {
  margin: 0 0 10px;
  color: #6d7282;
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-switcher--mobile {
  width: 100%;
  justify-content: space-between;
}

.lang-switcher--mobile .lang-switcher__option {
  flex: 1 1 0;
}

/* Nav pill list */
.navbar__menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1;
  color: #26262c;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.nav-pill--surface {
  padding: 10px 12px;
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.08),
    0 5px 10px rgba(15, 23, 42, 0.08);
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.08),
    0 5px 10px rgba(15, 23, 42, 0.08);
  color: #26262c;
  outline: none;
}

.nav-pill--active {
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.08),
    0 5px 10px rgba(15, 23, 42, 0.08);
}

/* Auth actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.08),
    0 5px 10px rgba(15, 23, 42, 0.08);
}

.lang-switcher__option {
  min-width: 42px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5d6068;
  font-family: var(--font-family-display);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  background: #f2f5ff;
  color: #355ee7;
  outline: none;
}

.lang-switcher__option.is-active {
  background: #edf2ff;
  color: #2856ea;
  box-shadow: inset 0 0 0 1px rgba(40, 86, 234, 0.14);
}

.navbar__actions .btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow:
    0 1px 1px rgba(15, 23, 42, 0.08),
    0 5px 10px rgba(15, 23, 42, 0.08);
}

.navbar__actions .btn--ghost {
  background: #f5f5f5;
  color: #2a2b30;
}

.navbar__actions .btn--ghost:hover,
.navbar__actions .btn--ghost:focus {
  background: #ededed;
}

.navbar__actions .btn--primary {
  padding-inline: 20px;
}
