.syscomatic-header {
  /* 1. Floating Position & Sizing */
  position: fixed;
  top: 24px;
  /* Distance from top of screen */
  left: 50%;
  transform: translateX(-50%);
  /* Perfectly centers the fixed element */
  width: 90%;
  /* Responsive width */
  max-width: 55vw;
  /* Prevents it from getting too wide on large screens */
  z-index: 1000;

  /* 2. Pill Shape */
  border-radius: 100px;
  /* Creates the capsule edges */
  padding: 12px 32px;
  /* Internal spacing for Logo/Menu/Button */

  /* 3. Darker Glass Background */
  background: radial-gradient(circle at center,
      rgba(55, 26, 116, 0.3) 0%,
      /* Subtle purple core */
      rgba(15, 15, 25, 0.7) 100%
      /* Darker edges for contrast */
    );

  /* 4. Frost Effect */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  /* 5. Borders & Shadows (UPDATED) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Thin outer ring */

  /* Updated inner shadows based on provided images. Outer shadow removed. */
  box-shadow:
    inset 0px -2px 4px rgba(255, 255, 255, 0.25),
    /* Top inner shadow */
    inset 0px 2px 4px rgba(255, 255, 255, 0.25);
  /* Bottom inner shadow */

  /* 6. Flexbox Layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.syscomatic-header-mobile {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: rgba(15, 10, 30, 0.85);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0px -2px 4px rgba(255, 255, 255, 0.12),
    inset 0px 2px 4px rgba(255, 255, 255, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Open mobile nav menu */
.syscomatic-mobile-nav-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0d0d1a;
  border-radius: 0 0 24px 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar inside open menu */
.syscomatic-mobile-nav-open .syscomatic-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Individual menu items */
.syscomatic-mobile-nav-open a,
.syscomatic-mobile-nav-open .nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, background 0.2s ease;
}

.syscomatic-mobile-nav-open a:hover,
.syscomatic-mobile-nav-open .nav-item:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.08);
}

/* Up-arrow icon at end of each nav item */
.syscomatic-mobile-nav-open a::after,
.syscomatic-mobile-nav-open .nav-item::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url('../image/up-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  flex-shrink: 0;
}

.syscomatic-mobile-nav-open a:hover::after,
.syscomatic-mobile-nav-open .nav-item:hover::after {
  opacity: 1;
}

/* CTA button at the bottom of open menu */
.syscomatic-mobile-nav-cta {
  padding: 20px 24px 28px;
  margin-top: 4px;
}

.syscomatic-mobile-nav-cta a,
.syscomatic-mobile-nav-cta button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #9b59f5, #6f00ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 99px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(111, 0, 255, 0.35);
}

.syscomatic-mobile-nav-cta a:hover,
.syscomatic-mobile-nav-cta button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hfe-flyout-wrapper .hfe-flyout-right .push {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pureglass {
  border-radius: 16px;
  background-color: rgba(55, 26, 116, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pureglass-2 {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.10);
  outline: 1px solid rgba(255, 255, 255, 0.50);
  outline-offset: -1px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.pureglass-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.05) 100%);
  mix-blend-mode: overlay;
}

/* Lenis Recommended CSS - Fixes freezing/bumping */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}