/**
 * Minimal marketing site header — shared by Snap landing and guest nav embed.
 * Intentionally small; do not import index-clean.css for these surfaces.
 */
:root {
  --msn-bg1: #12121a;
  --msn-text: rgba(255, 255, 255, 0.97);
  --msn-muted: rgba(255, 255, 255, 0.6);
  --msn-stroke: rgba(255, 255, 255, 0.08);
}

.index-header {
  position: sticky;
  top: 0;
  z-index: 420;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 12, 15, 0.85);
  border-bottom: 1px solid var(--msn-stroke);
}

.index-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.index-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.index-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--msn-text);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.index-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.index-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.index-logo-tagline {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.2;
}

.index-logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--msn-text) 0%, rgba(0, 212, 255, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.index-top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  color: rgba(255, 255, 255, 0.58);
}

.index-top-nav--marketing {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.index-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.index-top-nav > a,
a.index-top-nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.22s ease, background 0.22s ease;
}

.index-top-nav > a:hover,
a.index-top-nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.05);
}

.index-top-nav-dropdown {
  position: relative;
}

.index-top-nav-dropdown .index-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.index-top-nav-dropdown .index-nav-trigger i {
  font-size: 9px;
  opacity: 0.65;
  transition: transform 0.22s ease;
}

.index-top-nav-dropdown.open .index-nav-trigger i {
  transform: rotate(180deg);
}

.index-top-nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  margin: 6px 0 0;
  padding: 6px;
  background: rgba(16, 16, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  list-style: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 100;
}

.index-top-nav-dropdown.open .index-top-nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.index-top-nav-submenu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 10px;
}

.index-top-nav-submenu li a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.16);
}

.index-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.index-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--msn-stroke);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.index-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.index-mobile-theme-toggle {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  margin-bottom: 12px;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
}

.index-mobile-theme-toggle__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--msn-text);
}

.index-user-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--msn-stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--msn-text);
}

.index-user-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.index-user-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.index-user-actions .btn-primary {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
}

.index-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--msn-text);
  cursor: pointer;
  font-size: 18px;
}

.index-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--msn-bg1);
  border-right: 1px solid var(--msn-stroke);
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  pointer-events: none;
}

.index-mobile-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.index-mobile-drawer-inner {
  padding: 24px 16px;
}

.index-mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--msn-muted);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 4px;
}

.index-mobile-drawer a:hover {
  color: var(--msn-text);
  background: rgba(255, 255, 255, 0.06);
}

.index-mobile-drawer .index-mobile-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.index-mobile-drawer .index-mobile-group-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--msn-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.index-mobile-drawer .index-mobile-sublinks {
  display: none;
  padding-left: 16px;
  margin-bottom: 8px;
}

.index-mobile-drawer .index-mobile-sublinks.open {
  display: block;
}

.index-mobile-drawer .index-mobile-sublinks a {
  padding: 10px 14px;
  font-size: 14px;
}

.index-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 399;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.index-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .index-top-nav {
    display: none;
  }
  .index-header-inner {
    gap: 10px;
    padding: 10px 16px;
  }
  .index-logo-tagline {
    display: none;
  }
  .index-user-actions > a {
    display: none !important;
  }
  .index-mobile-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .index-mobile-drawer,
  .index-mobile-overlay {
    display: none !important;
  }
}
