header {
  backdrop-filter: blur(16px);
}

.appbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(250, 250, 250, 0.86);
}

.dark .appbar {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.72);
}

.appbar-nav {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  max-width: 90rem;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .appbar-nav {
    height: 82px;
    padding: 0 48px;
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: inline-flex;
  height: 30px;
  width: 30px;
  overflow: hidden;
  border-radius: 7px;
  background: #050505;
}

.brand-logo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.brand-word {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.appbar-links {
  align-items: center;
  gap: 32px;
}

.appbar-right {
  align-items: center;
  gap: 20px;
}

.appbar-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: #475569;
}

.dark .appbar-link {
  color: rgba(255, 255, 255, 0.8);
}

.appbar-link:hover {
  color: #0f172a;
}

.dark .appbar-link:hover {
  color: #ffffff;
}

.appbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--brand);
  transition: transform 0.22s ease;
}

.appbar-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}

.nav-link-active {
  color: var(--brand) !important;
}

.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}

.dark .lang-switch-wrap {
  color: rgba(255, 255, 255, 0.35);
}

.lang-switch-btn {
  border: 0;
  padding: 4px 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.dark .lang-switch-btn {
  color: rgba(255, 255, 255, 0.6);
}

.lang-switch-btn:hover {
  color: #0f172a;
}

.dark .lang-switch-btn:hover {
  color: #ffffff;
}

.lang-switch-btn.active {
  color: #0f172a;
  font-weight: 600;
}

.dark .lang-switch-btn.active {
  color: #ffffff;
}

.theme-toggle {
  display: inline-flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ea580c;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
}

.dark .theme-toggle {
  color: #ffffff;
}

.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .theme-toggle,
body[data-page="home"] .theme-toggle-mobile {
  display: none;
}

.nav-cta {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #050505;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #ff7f26;
  box-shadow: 0 10px 28px -10px rgba(255, 105, 0, 0.7);
}

.nav-cta.is-block {
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
}

.menu-button {
  display: inline-flex;
  height: 36px;
  width: 36px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 24px;
  border-radius: 2px;
  background: #0f172a;
}

.menu-button span + span {
  width: 16px;
}

.dark .menu-button span {
  background: #ffffff;
}

.mobile-menu {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(250, 250, 250, 0.97);
}

.dark .mobile-menu {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.97);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
}

.mobile-menu-inner > a.nav-link {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: #0f172a;
}

.dark .mobile-menu-inner > a.nav-link {
  color: #ffffff;
}

.mobile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
}

.theme-toggle-mobile {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  background: transparent;
}

.dark .theme-toggle-mobile {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.dark .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  max-width: 90rem;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748b;
}

@media (min-width: 1024px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 29px 48px;
  }
}

.footer-copy {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .footer-legal {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

.footer-legal-label {
  color: #0f172a;
}

.dark .footer-legal-label {
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--brand);
}
