/* ===== LANDING BASE - Reset, variables, navbar, footer ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #0a0a0a;
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
}

/* Static background - no animation for performance */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

:root {
  --lp-primary: #00d4ff;
  --lp-accent: #00ff88;
  --lp-bg: #0a0a0a;
  --lp-bg-card: #1a1a1a;
  --lp-border: rgba(255, 255, 255, 0.1);
  --lp-text: #ffffff;
  --lp-text-muted: #888888;
  --lp-radius: 12px;
  --lp-space-xs: 4px;
  --lp-space-sm: 8px;
  --lp-space-md: 16px;
  --lp-space-lg: 24px;
  --lp-space-xl: 32px;
  --lp-space-2xl: 48px;
  --lp-space-3xl: 64px;
  --lp-font-s: 0.875rem;
  --lp-font-m: 1rem;
  --lp-font-l: 1.25rem;
  --lp-font-xl: 2rem;
  --lp-font-2xl: 2.5rem;
  --lp-transition: 0.2s ease;
}

a {
  color: var(--lp-primary);
  text-decoration: none;
  transition: color var(--lp-transition);
}
a:hover { color: var(--lp-accent); }

img { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
.neurosearch-navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #000000;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.neurosearch-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.neurosearch-nav-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.neurosearch-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #444;
}
.neurosearch-nav-btn.active {
  background: #fff;
  border-color: #fff;
  color: #000;
  font-weight: 500;
}

.neurosearch-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.neurosearch-logo-icon {
  width: 24px;
  height: 24px;
  position: relative;
}
.neurosearch-logo-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 -8px 0 0 #fff, 0 8px 0 0 #fff, -8px 0 0 0 #fff, 8px 0 0 0 #fff;
}

.neurosearch-logo-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
}

.neurosearch-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neurosearch-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.neurosearch-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #444;
}

.neurosearch-account-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
}
.neurosearch-account-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #444;
}

.neurosearch-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #333;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

/* Language selector */
.language-selector-wrapper { position: relative; display: inline-block; }

.neurosearch-language-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(30, 30, 35, 0.9);
  border: 1px solid rgba(60, 60, 65, 0.5);
  border-radius: 12px;
  color: #888;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.neurosearch-language-btn:hover {
  background: rgba(40, 40, 45, 0.95);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--lp-primary);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 25, 0.98);
  border: 1px solid rgba(60, 60, 65, 0.5);
  border-radius: 16px;
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
}
.language-dropdown.show {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

.language-dropdown-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(60, 60, 65, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-options { padding: 0.5rem; max-height: 400px; overflow-y: auto; }

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  font-family: inherit;
}
.language-option:hover { background: rgba(0, 212, 255, 0.1); }

/* Mobile menu - overlay & panel */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  z-index: 10002;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  border-left: 1px solid var(--lp-border);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-content { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-logo { display: flex; align-items: center; gap: 12px; }
.mobile-menu-logo-icon .neurosearch-logo-icon { margin: 0; }
.mobile-menu-logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.mobile-menu-body { flex: 1; overflow-y: auto; padding: 16px; }

.mobile-menu-nav { display: flex; flex-direction: column; gap: 8px; }

.mobile-nav-section { margin-bottom: 24px; }
.mobile-nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.06); }
.mobile-nav-link i { color: var(--lp-primary); width: 20px; text-align: center; }

.mobile-language-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-language-selector .language-option { flex: 1 1 auto; }

.mobile-social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.mobile-social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  transition: all 0.2s;
}
.mobile-social-link:hover { border-color: var(--lp-primary); color: var(--lp-primary); }

/* Footer */
.neurosearch-footer {
  position: relative;
  width: 100%;
  background: #000;
  padding: 60px 0 32px;
}

.neurosearch-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.neurosearch-footer-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(60,60,65,0.5);
}

.neurosearch-footer-brand { display: flex; flex-direction: column; gap: 16px; }

.neurosearch-footer-brand-logo { width: 48px; height: 48px; }
.neurosearch-footer-logo-img { width: 100%; height: 100%; object-fit: contain; }

.neurosearch-footer-brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.neurosearch-footer-brand-tagline {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

.neurosearch-footer-social-links { display: flex; gap: 12px; }
.neurosearch-footer-social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,30,35,0.9);
  border: 1px solid rgba(60,60,65,0.5);
  border-radius: 10px;
  color: #888;
  text-decoration: none;
  transition: all 0.2s;
}
.neurosearch-footer-social-btn:hover {
  border-color: var(--lp-primary);
  color: var(--lp-primary);
  background: rgba(0,212,255,0.1);
}

.neurosearch-footer-stats { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.neurosearch-footer-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #888;
}
.neurosearch-footer-stat-dot {
  width: 6px;
  height: 6px;
  background: var(--lp-accent);
  border-radius: 50%;
}

.neurosearch-footer-links-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.neurosearch-footer-column-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.neurosearch-footer-links { list-style: none; }
.neurosearch-footer-links li { margin-bottom: 10px; }
.neurosearch-footer-links a {
  color: #888;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.neurosearch-footer-links a:hover { color: #fff; }

.neurosearch-footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(60,60,65,0.5);
}

.neurosearch-footer-newsletter-content { display: flex; align-items: center; gap: 16px; }
.neurosearch-footer-newsletter-icon { font-size: 1.5rem; color: var(--lp-primary); }
.neurosearch-footer-newsletter-text h4 { font-size: 1rem; margin-bottom: 4px; }
.neurosearch-footer-newsletter-text p { font-size: 0.875rem; color: #888; margin: 0; }

.neurosearch-footer-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.neurosearch-footer-newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  background: rgba(26,26,26,0.8);
  color: #fff;
  font-size: 0.9rem;
}
.neurosearch-footer-newsletter-form input::placeholder { color: #666; }
.neurosearch-footer-newsletter-form button {
  padding: 10px 20px;
  background: var(--lp-primary);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.neurosearch-footer-newsletter-form button:hover { opacity: 0.9; }

.neurosearch-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.neurosearch-footer-copyright { font-size: 0.85rem; color: #666; margin: 0; }
.neurosearch-footer-legal-links { display: flex; gap: 20px; }
.neurosearch-footer-legal-links a { color: #666; font-size: 0.85rem; }
.neurosearch-footer-legal-links a:hover { color: #fff; }

.neurosearch-footer-back-to-top,
.neurosearch-footer-back-to-top {
  padding: 10px 20px;
  background: rgba(30,30,35,0.9);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.neurosearch-footer-back-to-top:hover { border-color: var(--lp-primary); color: var(--lp-primary); }

#backToTop { position: fixed; bottom: 24px; right: 24px; z-index: 999; }

/* Landing section/container helpers */
.lp-section { }
.lp-hidden { display: none !important; }
.lp-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
