/* Header mega menus (2026-10 redesign), rendered by [flyward_megamenu] inside the Liquid mega menu templates
   11952 / 11976 (ZH) and 12889 / 12926 (EN). Desktop only: below 1200px the header switches to the collapsed menu,
   which is a separate WordPress menu and never shows these templates. */
.fwm {
  --fwm-line: rgba(255, 255, 255, .09);
  --fwm-line2: rgba(255, 255, 255, .16);
  --fwm-text: #f3f5f9;
  --fwm-muted: rgba(226, 232, 245, .66);
  --fwm-dim: rgba(226, 232, 245, .46);
  --fwm-a1: #74c4f6;
  --fwm-a3: #a1d0f3;
  --fwm-sans: var(--fw-sans, "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif);
  --fwm-display: var(--fw-display, "Manrope", "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif);
  position: relative;
  width: 100%;
  background: radial-gradient(760px 300px at 16% 0%, rgba(85, 150, 248, .09), transparent 70%), #05060a;
  border-top: 1px solid var(--fwm-line);
  border-bottom: 1px solid var(--fwm-line);
  box-shadow: 0 48px 90px -30px rgba(0, 0, 0, .8);
  color: var(--fwm-text);
  font-family: var(--fwm-sans);
  text-align: start;
  -webkit-font-smoothing: antialiased;
}
.fwm *, .fwm *::before, .fwm *::after { box-sizing: border-box; }
.fwm p, .fwm ul, .fwm li { margin: 0; padding: 0; }
.fwm a { color: inherit; text-decoration: none; }
.fwm a:hover { color: inherit; }
.fwm img { display: block; max-width: none; }
.fwm a:focus-visible { outline: 2px solid var(--fwm-a1); outline-offset: 3px; }

/* the Liquid dropdown and the Elementor container around the shortcode: full width, no padding, no own background */
.lqd-megamenu-dropdown:has(.fwm) { padding: 0; border-radius: 0; gap: 0; }
.lqd-megamenu-dropdown:has(.fwm)::before { content: none; }
/* the theme only bridges the 22px gap under the menu bar as wide as the menu item, so moving the pointer diagonally
   towards the panel closed it; this strip spans the full panel width (it follows the panel's pointer-events) */
.lqd-megamenu-dropdown:has(.fwm)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; }
.lqd-megamenu-dropdown:has(.fwm) > .elementor { align-self: stretch; width: 100%; }
body .lqd-megamenu-dropdown .e-con:has(> .elementor-widget-shortcode .fwm) { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px 0px; --row-gap: 0px; --column-gap: 0px; padding: 0 !important; gap: 0 !important; width: 100%; background: none; border: 0; }
/* keyboard: the theme opens dropdowns on hover only, so Tab skipped every product page; open the panel while
   its menu item or anything inside it has keyboard focus (:focus-visible, so a mouse click does not pin it open) */
.lqd-menu-li-top:has(> a:focus-visible) > .lqd-megamenu-dropdown:has(.fwm),
.lqd-menu-li-top > .lqd-megamenu-dropdown:has(.fwm):has(:focus-visible) { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.fwm-wrap { width: min(1280px, calc(100% - 160px)); margin: 0 auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; padding: 30px 0 34px; }

/* product line card: illustration from the homepage tech stack on top, text anchored at the bottom;
   the card stretches to the height of the lists next to it */
.fwm-feat { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 296px; padding: 0 24px 22px; overflow: hidden; border-radius: 16px; border: 1px solid var(--fwm-line2); background: #070a12; transition: border-color .25s ease; }
.fwm-feat:hover { border-color: rgba(116, 196, 246, .42); }
.fwm-media { position: absolute; left: 0; right: 0; top: 0; z-index: -1; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #070a12; } /* the images were flattened on this colour */
.fwm-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 10, 18, 0) 34%, rgba(7, 10, 18, .72) 72%, #070a12 96%); }
.fwm .fwm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.19, 1, .22, 1); }
.fwm-feat:hover .fwm-media img { transform: scale(1.035); }
.fwm-num { display: flex; align-items: center; gap: 12px; width: 100%; font: 600 12.5px/1 var(--fwm-sans); letter-spacing: .06em; color: var(--fwm-a1); }
.fwm-num::after { content: ""; flex: 1; height: 1px; background: var(--fwm-line2); }
.fwm-nm { font: 600 11.5px/1 var(--fwm-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fwm-dim); }
.fwm .fwm-title:not(#_) { display: block; margin-top: 14px; font: 700 21px/1.3 var(--fwm-display) !important; letter-spacing: -.018em; color: #fff; text-wrap: balance; }
.fwm-desc { display: block; margin-top: 6px; font: 400 14px/1.6 var(--fwm-sans); color: var(--fwm-muted); text-wrap: balance; }
.fwm-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 14px/1 var(--fwm-sans); color: #fff; }
.fwm-link svg { width: 14px; height: 14px; color: var(--fwm-a1); transition: transform .2s ease; }
.fwm-feat:hover .fwm-link svg { transform: translateX(3px); }

/* capability lists */
.fwm-main { min-width: 0; }
.fwm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-content: start; }
.fwm-h { display: flex; align-items: center; gap: 10px; padding: 2px 0 15px; border-bottom: 1px solid var(--fwm-line); font: 600 11.5px/1 var(--fwm-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--fwm-a3); }
.fwm-h::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fwm-a1); box-shadow: 0 0 10px var(--fwm-a1); }
.fwm-list { list-style: none; }
.fwm-list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 3), auto); grid-auto-flow: column; column-gap: 48px; }
.fwm-list li { list-style: none; border-bottom: 1px solid var(--fwm-line); }
.fwm-list a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; column-gap: 16px; align-items: center; height: 100%; margin-left: -10px; padding: 13px 2px 13px 10px; transition: background .25s ease; }
.fwm-list a:focus-visible { outline-offset: -2px; border-radius: 10px; }
.fwm-t { grid-column: 1; display: block; font: 600 15px/1.4 var(--fwm-sans); color: rgba(243, 245, 249, .9); transition: color .2s ease; }
.fwm-d { grid-column: 1; display: block; margin-top: 3px; font: 400 13px/1.5 var(--fwm-sans); color: var(--fwm-dim); transition: color .2s ease; }
.fwm-list svg { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: rgba(226, 232, 245, .32); transition: transform .2s ease, color .2s ease; }
.fwm-list a:hover { background: linear-gradient(90deg, rgba(116, 196, 246, .08), transparent 78%); }
.fwm-list a:hover .fwm-t { color: #fff; }
.fwm-list a:hover .fwm-d { color: var(--fwm-muted); }
.fwm-list a:hover svg { color: var(--fwm-a1); transform: translateX(3px); }
.fwm-list a[aria-current="page"] .fwm-t { color: var(--fwm-a3); }
.fwm-list a[aria-current="page"] svg { color: var(--fwm-a1); }

.fwm[lang="zh-CN"] .fwm-nm { letter-spacing: .1em; }
.fwm[lang="zh-CN"] .fwm-h { letter-spacing: .12em; }

/* narrower desktops (1200–1359px): same x = 80px edge as the homepage, tighter columns and type */
@media (max-width: 1359px) {
  .fwm-wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
  .fwm-cols, .fwm-list--2 { column-gap: 32px; }
  .fwm-feat { padding: 0 22px 20px; }
  .fwm .fwm-title:not(#_) { font-size: 19px !important; }
  .fwm-desc { font-size: 13px; }
  .fwm-nm { white-space: nowrap; letter-spacing: .1em; }
  .fwm-t { font-size: 14px; }
  .fwm-d { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fwm *, .fwm *::after { transition: none !important; }
  .fwm-feat:hover .fwm-media img, .fwm-list a:hover svg, .fwm-feat:hover .fwm-link svg { transform: none; }
}
