.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 3;
}

/* ---------- GRADIENT MESH ---------- */
.mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}
.blob-wrap {
  position: absolute;
  will-change: transform;
  transform: translateZ(0);
}
.blob {
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
}
.blob-wrap-1 { top: 5%; left: -5%; }
.blob-1 { width: 620px; height: 620px; background: #1D3E84; animation: float1 22s ease-in-out infinite; }
.blob-wrap-2 { top: 30%; right: -8%; }
.blob-2 { width: 560px; height: 560px; background: #1994A4; opacity: 0.42; animation: float2 18s ease-in-out infinite; }
.blob-wrap-3 { bottom: 5%; left: 25%; }
.blob-3 { width: 520px; height: 520px; background: #5EB565; opacity: 0.28; animation: float3 20s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(60px, 40px, 0); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(-50px, 30px, 0); }
}
@keyframes float3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(40px, -50px, 0); }
}

/* ---------- SECTION DIVIDER ---------- */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  margin: 0 auto;
  max-width: var(--container-max);
  width: calc(100% - calc(var(--container-pad) * 2));
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fm-gradient);
  box-shadow: 0 0 16px rgba(94, 181, 101, 0.5);
  opacity: 0;
  transition: opacity .8s ease;
}
.section-divider.in::before {
  opacity: 1;
  animation: dividerPulse 4s ease-in-out infinite;
}
@keyframes dividerPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(94, 181, 101, 0.5); }
  50%       { box-shadow: 0 0 24px rgba(25, 148, 164, 0.6); }
}

/* ---------- LIQUID GLASS ---------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  position: relative;
  transform: translateZ(0);
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.08) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  transform: translateZ(0);
}
.liquid-glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.15) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- NAVBAR ---------- */
.nav-wrap {
  position: fixed;
  top: 24px;
  left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.nav-logo,
.nav-right {
  pointer-events: auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(10, 9, 21, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}
.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(10, 9, 21, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-right: 6px;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--fm-text-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  transition: all .2s ease;
}
.nav-links a:hover {
  color: var(--fm-text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0a0915;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(255, 255, 255, 0.4);
}

/* ---------- MOBILE MENU TOGGLE ---------- */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fm-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span {
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 49;
  padding: 14px;
  border-radius: 22px;
  background: rgba(10, 9, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  display: block;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--fm-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s ease;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}
.mobile-menu .mobile-cta {
  margin-top: 6px;
  padding: 14px 18px;
  background: #fff;
  color: #0a0915;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
}
.mobile-menu .mobile-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ---------- BADGE ---------- */
.badge-section {
  display: inline-block;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fm-text-soft);
  margin-bottom: 24px;
  border-radius: 999px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  color: var(--fm-text);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}
.btn-secondary {
  color: var(--fm-text-soft);
  padding: 15px 8px;
  background: transparent;
}
.btn-secondary:hover {
  color: var(--fm-text);
}
.arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- GRADIENT WORD ---------- */
.gradient-word {
  background: var(--fm-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
}

/* Logo-matched gradients: both share the EXACT logo SVG gradient but
   show different halves via background-size + background-position.
   "flow" shows the left half (dark blue → teal → mid),
   "mize" shows the right half (mid → green → lime).
   A subtle glow lifts the dark-blue start of "flow" for legibility. */
.gradient-flow,
.gradient-mize {
  background-image: var(--fm-logo-gradient);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
}
.gradient-flow {
  background-position: 0% 0%;
  text-shadow:
    0 0 14px rgba(23, 148, 163, 0.25),
    0 0 30px rgba(23, 148, 163, 0.10);
}
.gradient-mize {
  background-position: 100% 0%;
  text-shadow:
    0 0 14px rgba(88, 186, 100, 0.18),
    0 0 30px rgba(88, 186, 100, 0.08);
}

/* ---------- ANIMATION STATES ---------- */
.blur-word {
  display: inline-block;
  white-space: nowrap;
  filter: blur(12px);
  opacity: 0;
  transform: translateY(20px);
  transition: filter .8s ease, opacity .8s ease, transform .8s ease;
  will-change: filter, opacity, transform;
}
.blur-word.in {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
