/* ============================================================
   Landing / marketing top navigation.
   Self-contained (colours hard-coded, no :root vars) so it can
   be dropped onto pages that load the app stylesheets too
   (e.g. the legal pages) without depending on index.css.
   ============================================================ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.landing-nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.landing-nav .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-nav .nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.landing-nav .nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.landing-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.landing-nav .nav-links a:hover {
  color: #ffffff;
}

.landing-nav .nav-links a:hover::after {
  width: 100%;
}

.landing-nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-nav .btn-nav {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-nav .btn-nav-ghost {
  color: #cbd5e1;
  background: transparent;
}

.landing-nav .btn-nav-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.landing-nav .btn-nav-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.landing-nav .btn-nav-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Language Selector */
.landing-nav .language-selector {
  position: relative;
  margin-right: 1rem;
}

.landing-nav .lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-nav .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.landing-nav .lang-btn .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.landing-nav .lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-width: 140px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.landing-nav .lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.landing-nav .lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.landing-nav .lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.landing-nav .lang-option.active {
  background: rgba(37, 99, 235, 0.2);
  color: #3b82f6;
}

.landing-nav .flag-icon {
  font-weight: 600;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .landing-nav .nav-links {
    display: none;
  }
}
