/* ===============================================
   MINIMAL LAUNCH CONFIGURATION
   ===============================================
   This stylesheet hides non-live pages and nav items.
   To restore everything for full launch:
   1. Remove <link href="css/launch.css"> from all pages
   2. Remove launch-hide / launch-hide-section classes
   3. Delete vercel.json redirect rules
   ===============================================
   Live pages: /, /product/, /security/, /about/, /contact/
   Hidden: /memory/, /solutions/*, /for-palantir/, /pricing/
   =============================================== */

/* === SKIP NAVIGATION (Accessibility) === */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #3774D7;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-nav:focus {
  top: 0;
}

/* === NAVIGATION: Hide non-live items === */
.services-dropdown,
a.w-nav-link[href*="/memory/"],
a.w-nav-link[href*="/for-palantir/"],
a.w-nav-link[href*="/pricing/"],
a.w-nav-link[href="/memory/"],
a.w-nav-link[href="/for-palantir/"],
a.w-nav-link[href="/pricing/"],
a.w-nav-link[href="../memory/"],
a.w-nav-link[href="../for-palantir/"],
a.w-nav-link[href="../pricing/"] {
  display: none !important;
}

/* === FOOTER: Hide non-live links === */
a.footer-link[href*="/memory/"],
a.footer-link[href*="/for-palantir/"],
a.footer-link[href*="/pricing/"],
a.footer-link[href*="/solutions/"] {
  display: none !important;
}

/* Footer links without .footer-link class (product page style) */
a[href*="/memory/"]:not(.w-nav-link):not(.button-filled):not(.navbar-brand),
a[href*="/for-palantir/"]:not(.w-nav-link):not(.button-filled):not(.navbar-brand),
a[href*="/pricing/"]:not(.w-nav-link):not(.button-filled):not(.navbar-brand):not(.nav-cta),
a[href*="/solutions/"]:not(.w-nav-link):not(.mega-menu-link) {
  display: none !important;
}

/* === GENERIC LAUNCH HIDE CLASSES === */
.launch-hide {
  display: none !important;
}

.launch-hide-section {
  display: none !important;
}

/* === LOGIN BUTTON STYLES === */
.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.nav-login:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* === FOOTER LAYOUT FIX === */
/* Override Webflow's centered column layout for dark mode footer */
.footer-section {
  background: #1C2127 !important;
  border-top: 1px solid #404854 !important;
  padding: 4rem 0 2rem !important;
}

.footer-component {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: stretch !important;
}

.footer-heading {
  margin-bottom: 2rem !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.footer-heading .text-size-huge {
  color: #FFFFFF !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  grid-column-gap: 2rem !important;
  grid-row-gap: 2rem !important;
  margin-bottom: 2rem !important;
  justify-content: start !important;
  justify-items: start !important;
  width: 100% !important;
}

.footer-grid-wrap {
  align-items: flex-start !important;
  text-align: left !important;
}

.footer-grid-wrap .text-size-large {
  color: #FFFFFF !important;
  margin-bottom: 0.75rem;
}

.footer-grid-wrap .footer-links-wrapper {
  align-items: flex-start !important;
  text-align: left !important;
}

.footer-link {
  color: #ABB3BF !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease !important;
}

.footer-link:hover {
  opacity: 1 !important;
  color: #FFFFFF !important;
  transform: none !important;
}

.footer-links-wrapper {
  text-align: left !important;
}

/* Bottom bar with Privacy/Terms + Copyright */
.footer-component > .footer-links-wrapper:last-child {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #404854;
  width: 100%;
}

.footer-links {
  justify-content: flex-start !important;
}

.credits-wrapper p,
.footer-component p {
  color: #9DA8B6 !important;
}

.vertical-line {
  background: #404854 !important;
  width: 1px;
  height: 16px;
}

/* === CONTAINER WIDTH FIX (SC-1) === */
/* Webflow default is 940px — too narrow for 1440px enterprise desktops */
.w-container {
  max-width: 1140px !important;
}

/* === Z-INDEX HIERARCHY === */
.navbar,
.w-nav {
  z-index: 1000 !important;
  position: relative;
}

.dropdown-list,
.w-dropdown-list,
.services-dropdown-list {
  z-index: 1001 !important;
}

/* === MOBILE OVERFLOW PREVENTION === */
@media (max-width: 991px) {
  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }

  img,
  video,
  iframe,
  canvas {
    max-width: 100%;
    height: auto;
  }
}

/* === MOBILE NAVIGATION (shared across all pages) === */
/* Strategy: Let webflow.js handle show/hide via height animation.
   We only override styling (colors, spacing) — NOT display/visibility. */
@media screen and (max-width: 991px) {
  /* Style the nav menu — webflow.js manages visibility via height/overflow */
  .navbar .nav-menu.w-nav-menu {
    background: #252a31 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    padding: 0 1rem !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Nav links: white text, 44px touch targets */
  .navbar .nav-menu .dropdown.w-nav-link,
  .navbar .nav-menu .nav-login,
  .navbar .nav-menu .button-filled.nav-cta {
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem !important;
    min-height: 44px !important;
    align-items: center !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
  }

  /* Ensure visible nav links use flex layout (lower specificity than hide rules) */
  .navbar .nav-menu .dropdown.w-nav-link {
    display: flex;
  }

  .navbar .nav-menu .dropdown.w-nav-link:hover,
  .navbar .nav-menu .nav-login:hover {
    background-color: rgba(55, 116, 215, 0.15) !important;
  }

  /* CTA button: full width on mobile */
  .navbar .nav-menu .button-filled.nav-cta {
    display: flex !important;
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
    justify-content: center !important;
    border-radius: 50px !important;
    background: #3774d7 !important;
  }

  /* Login button: full width on mobile */
  .navbar .nav-menu .nav-login {
    display: flex !important;
    margin-left: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50px !important;
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }

  /* Hamburger button: visible and tappable */
  .navbar .menu-button.w-nav-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 10px !important;
    width: 44px !important;
    height: 44px !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Hide Lottie animation, use SVG icon instead */
  .navbar-menu-lottie {
    display: none !important;
  }

  /* Solutions dropdown: inline expansion on mobile */
  .services-dropdown .dropdown-list,
  .services-dropdown .w-dropdown-list,
  .services-dropdown .services-dropdown-list {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 1rem !important;
  }
}

/* === DESKTOP NAVIGATION (ensure visible above 991px) === */
@media screen and (min-width: 992px) {
  .navbar .nav-menu.w-nav-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .navbar .menu-button.w-nav-button {
    display: none !important;
  }
}
