/* NathauxFX public light/dark theme.
   Includes responsive public-header layout; hero geometry stays in the base styles. */

/* Public homepage header: keep each group in flow and wrap before controls collide. */
#landingPage.landing-pro > .landing-nav {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-self: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 24px !important;
  padding: 0 0 16px !important;
  gap: 16px 24px !important;
  overflow: visible !important;
}
#landingPage.landing-pro .landing-logo {
  flex: 0 0 auto !important;
  margin-right: auto !important;
  min-width: 0 !important;
  white-space: nowrap;
}
#landingPage.landing-pro .landing-links,
#landingPage.landing-pro .landing-nav-actions {
  display: flex !important;
  flex: 0 1 auto !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 12px 16px !important;
}
#landingPage.landing-pro .landing-links a,
#landingPage.landing-pro .landing-nav-actions > * {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
#landingPage.landing-pro .landing-links a { text-decoration: none; }
#landingPage.landing-pro .landing-links a:hover { text-decoration: underline; }
#landingPage.landing-pro .landing-nav-actions > button:not(.theme-toggle) {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 20px !important;
}
#landingPage.landing-pro #landingLang {
  width: 52px !important;
  min-width: 52px !important;
  height: 36px !important;
}
@media (max-width: 1000px) {
  #landingPage.landing-pro .landing-nav-actions { flex-basis: 100% !important; }
}
@media (max-width: 700px) {
  #landingPage.landing-pro > .landing-nav {
    gap: 16px !important;
    margin-bottom: 24px !important;
  }
  #landingPage.landing-pro .landing-logo {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  #landingPage.landing-pro .landing-links { flex-basis: 100% !important; }
  #landingPage.landing-pro .landing-nav-actions { gap: 10px !important; }
  #landingPage.landing-pro .landing-nav-actions > button:not(.theme-toggle) {
    padding: 0 12px !important;
    height: 36px !important;
  }
}

:root,
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

html,
body {
  max-width: 100%;
  overflow-x: clip !important;
}
@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden !important; }
}
body:has(#landingPage:not(.hidden)),
body.fit-mode:has(#landingPage:not(.hidden)) {
  overflow-y: auto !important;
}
#landingPage.landing-pro {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

#landingPage.landing-pro .theme-toggle > span,
#landingPage.landing-pro .theme-toggle-knob {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  #landingPage.landing-pro > .landing-nav {
    width: calc(100% + 84px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: -42px !important;
    margin-right: -42px !important;
  }
}

#landingPage .theme-toggle {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #24415f;
  border-radius: 999px;
  background: rgba(7, 20, 37, .92);
  color: #dbe7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#landingPage .theme-toggle:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
}
#landingPage .theme-icon {
  width: 12px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  opacity: .62;
  transition: opacity .2s ease, color .2s ease;
}
#landingPage .theme-toggle-track {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: #15304d;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .18);
}
#landingPage .theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: transform .22s ease;
}
html[data-theme="dark"] #landingPage .theme-toggle-knob { transform: translateX(14px); }
html[data-theme="dark"] #landingPage .theme-icon-moon { opacity: 1; color: #fff; }
html[data-theme="light"] #landingPage .theme-toggle {
  background: rgba(255, 255, 255, .94);
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
html[data-theme="light"] #landingPage .theme-toggle-track {
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .16);
}
html[data-theme="light"] #landingPage .theme-icon-sun { opacity: 1; color: #d97706; }
html[data-theme="light"] #landingPage .theme-toggle-knob { transform: translateX(0); }

#landingPage > .trust-section,
#landingPage > .hero-stats {
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
#landingPage > .trust-section {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}
#landingPage > .trust-section > .trust-card {
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}
#landingPage > .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  align-content: start !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 22px !important;
  margin-bottom: 34px !important;
  padding: 16px 16px 18px !important;
  overflow: visible !important;
}
#landingPage > .hero-stats > div:not(.legal-links) {
  min-height: 76px !important;
  justify-content: center !important;
  text-align: center !important;
}
#landingPage > .hero-stats > .risk-note {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-column: 1 / -1 !important;
  width: auto !important;
  height: auto !important;
  margin: 12px 8px 0 !important;
  padding: 16px 2px 0 !important;
  text-align: left !important;
  line-height: 1.55 !important;
}
#landingPage > .hero-stats > .legal-links {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-column: 1 / -1 !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 14px 8px 0 !important;
  padding: 0 2px 2px !important;
  border-right: 0 !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px 16px !important;
}
#landingPage > .mobile-footer { display: none !important; }

@media (max-width: 700px) {
  #landingPage .theme-toggle { height: 32px; padding: 0 7px; }
  #landingPage > .trust-section,
  #landingPage > .hero-stats {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #landingPage > .hero-stats { grid-template-columns: 1fr 1fr !important; }
  #landingPage > .hero-stats > .risk-note { margin: 10px 6px 0 !important; }
  #landingPage > .hero-stats > .legal-links {
    margin-left: 6px !important;
    margin-right: 6px !important;
    gap: 10px 12px !important;
  }
}
@media (max-width: 520px) {
  #landingPage > .hero-stats { grid-template-columns: 1fr !important; }
}

html[data-theme="light"] body:has(#landingPage:not(.hidden)),
html[data-theme="light"] body.fit-mode:has(#landingPage:not(.hidden)) {
  background: #f7f9fc !important;
  color: #0f172a !important;
}
html[data-theme="light"] #landingPage.landing-page,
html[data-theme="light"] #landingPage.landing-pro {
  background:
    radial-gradient(circle at 72% 36%, rgba(37, 99, 235, .08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%) !important;
  color: #0f172a !important;
}
html[data-theme="light"] #landingPage.landing-pro::after {
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, .14), transparent 58%) !important;
  opacity: .45 !important;
}
html[data-theme="light"] #landingPage .landing-nav {
  background: rgba(255, 255, 255, .82) !important;
  border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-theme="light"] #landingPage .landing-logo,
html[data-theme="light"] #landingPage .landing-logo span:last-child,
html[data-theme="light"] #landingPage .hero-left h1,
html[data-theme="light"] #landingPage .trust-card h2 { color: #0f172a !important; }
html[data-theme="light"] #landingPage .landing-links,
html[data-theme="light"] #landingPage .hero-badges,
html[data-theme="light"] #landingPage .trust-section { color: #334155 !important; }
html[data-theme="light"] #landingPage .landing-links a,
html[data-theme="light"] #landingPage .legal-links a { color: #2563eb !important; }
html[data-theme="light"] #landingPage #landingLang,
html[data-theme="light"] #landingPage .landing-login-btn,
html[data-theme="light"] #landingPage .hero-secondary {
  background: rgba(255, 255, 255, .94) !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05) !important;
}
html[data-theme="light"] #landingPage .landing-login-btn:hover,
html[data-theme="light"] #landingPage .hero-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}
html[data-theme="light"] #landingPage .landing-get-btn,
html[data-theme="light"] #landingPage .hero-primary {
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22) !important;
}
html[data-theme="light"] #landingPage .hero-pill {
  background: rgba(239, 246, 255, .92) !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}
html[data-theme="light"] #landingPage .hero-left h1 span,
html[data-theme="light"] #landingPage .hero-stats strong,
html[data-theme="light"] #landingPage .trust-point strong { color: #2563eb !important; }
html[data-theme="light"] #landingPage .hero-left > p,
html[data-theme="light"] #landingPage .trust-card p,
html[data-theme="light"] #landingPage .risk-note { color: #526177 !important; }

/* Keep the device mockup truly floating in both themes. */
#landingPage .hero-right,
html[data-theme="light"] #landingPage .hero-right,
html[data-theme="dark"] #landingPage .hero-right {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#landingPage .hero-dashboard-img,
html[data-theme="light"] #landingPage .hero-dashboard-img,
html[data-theme="dark"] #landingPage .hero-dashboard-img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html[data-theme="light"] #landingPage .hero-stats,
html[data-theme="light"] #landingPage .trust-card {
  background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .06), transparent 34%), #fff !important;
  border-color: #dbe3ee !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .07) !important;
}
html[data-theme="light"] #landingPage .hero-stats div { border-right-color: rgba(148, 163, 184, .24) !important; }
html[data-theme="light"] #landingPage .hero-stats span,
html[data-theme="light"] #landingPage .trust-point span { color: #64748b !important; }
html[data-theme="light"] #landingPage .trust-point {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] #landingPage .risk-note { border-top-color: #e2e8f0 !important; }
