/* ==========================================================================
   Forway UI 2026 — shared header, footer, chat popup & brand text colours
   Brand palette: forwaybd.com (main company) · Header/footer pattern: betterbugs.io
   Surface style: marvex.net (glass cards, tight headings, white/gradient pills)
   Every selector is namespaced with .fw- so page-level CSS cannot leak in.
   ========================================================================== */

:root {
  --fw-bg: #0B0F17;            /* forwaybd base */
  --fw-bg-2: #0F141D;          /* raised base */
  --fw-panel: #111826;         /* menus & popups */
  --fw-glass: rgba(255, 255, 255, .03);
  --fw-glass-2: rgba(255, 255, 255, .06);
  --fw-line: rgba(255, 255, 255, .08);
  --fw-line-2: rgba(255, 255, 255, .14);

  --fw-aqua: #00FFCC;          /* primary brand */
  --fw-cyan: #22D3EE;
  --fw-sky: #38BDF8;           /* secondary brand */
  --fw-emerald: #10B981;
  --fw-yellow: #FACC15;
  --fw-wa: #25D366;

  --fw-text: #FFFFFF;
  --fw-text-2: rgba(255, 255, 255, .80);
  --fw-muted: #B0B7BC;
  --fw-dim: rgba(255, 255, 255, .55);
  --fw-ink: #0B0F17;           /* text on aqua */

  --fw-grad: linear-gradient(90deg, #00FFCC, #22D3EE 50%, #38BDF8);
  --fw-font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fw-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fw-bar-h: 64px;
  --fw-topbar-h: 34px;
  --fw-header-h: calc(var(--fw-bar-h) + var(--fw-topbar-h));
  --fw-max: 1280px;
  --fw-ease: cubic-bezier(.2, .8, .2, 1);
}

/* --------------------------------------------------------------------------
   1. Global text colour upgrade (readability + brand)
   -------------------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--fw-header-h) + 16px); }
body.fw-ui ::selection { background: var(--fw-aqua); color: var(--fw-ink); }
body.fw-ui.text-slate-200 { color: rgba(255, 255, 255, .86); }

body.fw-ui h1, body.fw-ui h2 { font-family: var(--fw-font-head); letter-spacing: -.02em; }
body.fw-ui h3 { font-family: var(--fw-font-head); }

body.fw-ui .text-gray-300, body.fw-ui .text-slate-300 { color: rgba(255, 255, 255, .82); }
body.fw-ui .text-gray-400, body.fw-ui .text-slate-400 { color: var(--fw-muted); }
body.fw-ui .text-gray-500, body.fw-ui .text-slate-500 { color: #8B949E; }
body.fw-ui .text-gray-600 { color: #6E7681; }

body.fw-ui .text-gradient,
body.fw-ui .fw-grad-text {
  background: var(--fw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Brand-filled buttons always get dark text for contrast */
body.fw-ui [class*="bg-[#00FFCC]"]:not([class*="bg-[#00FFCC]/"]),
body.fw-ui [class*="bg-[#00ffcc]"]:not([class*="bg-[#00ffcc]/"]) { color: var(--fw-ink); }

/* --------------------------------------------------------------------------
   2. Shared primitives
   -------------------------------------------------------------------------- */
.fw-container { width: 100%; max-width: var(--fw-max); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.fw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fw-skip { position: fixed; left: 16px; top: -60px; z-index: 10001; padding: 10px 16px; border-radius: 10px; background: var(--fw-aqua); color: var(--fw-ink) !important; font: 600 14px var(--fw-font-body); text-decoration: none; transition: top .2s; }
.fw-skip:focus { top: 12px; }

.fw-header *, .fw-footer *, .fw-chat * { box-sizing: border-box; }
.fw-header ul, .fw-footer ul, .fw-chat ul { list-style: none; margin: 0; padding: 0; }
.fw-header a, .fw-footer a, .fw-chat a { text-decoration: none; }
.fw-header button, .fw-footer button, .fw-chat button { font: inherit; cursor: pointer; }
.fw-header :focus-visible, .fw-footer :focus-visible, .fw-chat :focus-visible { outline: 2px solid var(--fw-aqua); outline-offset: 2px; }

.fw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--fw-font-body); white-space: nowrap;
  transition: transform .2s var(--fw-ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.fw-btn svg { width: 16px; height: 16px; flex: none; }
.fw-btn--primary { background: var(--fw-grad); color: var(--fw-ink) !important; box-shadow: 0 6px 24px rgba(0, 255, 204, .18); }
.fw-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(0, 255, 204, .32); }
.fw-btn--ghost { background: var(--fw-glass-2); border-color: var(--fw-line-2); color: var(--fw-text) !important; }
.fw-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.fw-btn--wa { background: var(--fw-wa); color: #fff !important; }
.fw-btn--wa:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(37, 211, 102, .3); }
.fw-btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }

/* --------------------------------------------------------------------------
   3. Header (betterbugs pattern: solid bar · hairline · dropdown mega menus)
   -------------------------------------------------------------------------- */
.fw-header {
  position: fixed !important; top: 0 !important; left: 0; right: 0; z-index: 9990 !important;
  margin: 0 !important; padding: 0 !important; width: 100% !important; height: auto !important;
  background: rgba(11, 15, 23, .82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border: 0 !important; border-bottom: 1px solid var(--fw-line) !important;
  box-shadow: none; color: var(--fw-text);
  font-family: var(--fw-font-body); font-size: 15px; line-height: 1.4;
  transition: background-color .25s, box-shadow .25s;
}
.fw-header.is-scrolled { background: rgba(11, 15, 23, .96) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.fw-header::after { /* brand hairline glow */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, .55), rgba(56, 189, 248, .55), transparent);
  opacity: 0; transition: opacity .3s;
}
.fw-header.is-scrolled::after, .fw-header.is-open::after { opacity: 1; }
.fw-header-spacer { height: var(--fw-header-h); }

.fw-bar { display: flex !important; align-items: center; gap: 22px; height: var(--fw-bar-h); }
.fw-logo { display: inline-flex !important; align-items: center; flex: none; background: none !important; padding: 0 !important; }
.fw-logo img { display: block; height: 38px; width: auto; max-width: none; }

.fw-nav { display: flex !important; align-items: center; gap: 2px; flex: 1; margin: 0; padding: 0; background: none !important; position: static !important; }
.fw-nav > ul { display: flex; align-items: center; gap: 2px; }
.fw-nav-link {
  display: inline-flex !important; align-items: center; gap: 6px; height: 40px; padding: 0 14px !important;
  border: 0 !important; border-radius: 999px; background: transparent !important;
  color: var(--fw-text-2) !important; font: 500 15px/1 var(--fw-font-body) !important;
  letter-spacing: 0 !important; text-transform: none !important;
  transition: color .2s, background-color .2s;
}
.fw-nav-link:hover, .fw-nav-item.is-open > .fw-nav-link { color: var(--fw-text) !important; background: var(--fw-glass-2) !important; }
.fw-nav-link[aria-current="page"] { color: var(--fw-aqua) !important; }
.fw-nav-link .fw-chev { width: 14px; height: 14px; opacity: .7; transition: transform .25s var(--fw-ease); }
.fw-nav-item.is-open > .fw-nav-link .fw-chev { transform: rotate(180deg); }
.fw-new { display: inline-block; padding: 3px 7px; border-radius: 999px; background: rgba(0, 255, 204, .14); color: var(--fw-aqua); font: 600 10px/1 var(--fw-font-body); letter-spacing: .04em; }

.fw-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.fw-text-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--fw-text-2) !important; font: 500 14px/1 var(--fw-font-body); transition: color .2s; }
.fw-text-link:hover { color: var(--fw-text) !important; }
.fw-text-link svg { width: 16px; height: 16px; }
.fw-text-link--wa svg { color: var(--fw-wa); }

/* Mega menu panel */
.fw-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--fw-panel); border-bottom: 1px solid var(--fw-line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--fw-ease), visibility 0s linear .25s;
}
.fw-nav-item.is-open > .fw-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fw-mega-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 32px; padding-top: 32px; padding-bottom: 36px; }
.fw-mega-inner--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) 300px; }
.fw-mega-title { margin: 0 0 12px; padding: 0 12px; color: var(--fw-dim); font: 600 11px/1 var(--fw-font-body); letter-spacing: .14em; text-transform: uppercase; }
.fw-mega-link { display: flex !important; gap: 12px; align-items: flex-start; padding: 10px 12px !important; border-radius: 12px; transition: background-color .2s; }
.fw-mega-link:hover { background: var(--fw-glass-2); }
.fw-mega-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(0, 255, 204, .08); border: 1px solid rgba(0, 255, 204, .18); color: var(--fw-aqua); }
.fw-mega-ico svg { width: 18px; height: 18px; }
.fw-mega-link b { display: block; color: var(--fw-text); font: 600 14px/1.3 var(--fw-font-body); }
.fw-mega-link small { display: block; margin-top: 3px; color: var(--fw-muted); font: 400 12.5px/1.45 var(--fw-font-body); }
.fw-mega-link:hover b { color: var(--fw-aqua); }
.fw-mega-plain { display: block !important; padding: 8px 12px !important; border-radius: 10px; color: var(--fw-text-2) !important; font: 500 14px/1.3 var(--fw-font-body); transition: background-color .2s, color .2s; }
.fw-mega-plain:hover { background: var(--fw-glass-2); color: var(--fw-aqua) !important; }

.fw-promo { position: relative; display: flex !important; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 22px !important; border-radius: 18px; overflow: hidden; border: 1px solid var(--fw-line-2); background: #0d1520; }
.fw-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s var(--fw-ease); }
.fw-promo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 15, 23, .96) 20%, rgba(11, 15, 23, .2)); }
.fw-promo:hover img { transform: scale(1.05); }
.fw-promo > *:not(img) { position: relative; z-index: 2; }
.fw-promo em { align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 255, 204, .14); color: var(--fw-aqua); font: 600 11px/1.2 var(--fw-font-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.fw-promo strong { color: #fff; font: 700 18px/1.3 var(--fw-font-head); }
.fw-promo span { margin-top: 8px; color: var(--fw-aqua); font: 600 13px/1 var(--fw-font-body); }

/* Mobile toggle + drawer */
.fw-burger { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--fw-line-2) !important; background: var(--fw-glass-2) !important; color: #fff !important; padding: 0 !important; align-items: center; justify-content: center; }
.fw-burger svg { width: 20px; height: 20px; }
.fw-burger .fw-x { display: none; }
.fw-header.is-open .fw-burger .fw-x { display: block; }
.fw-header.is-open .fw-burger .fw-lines { display: none; }

.fw-drawer { display: none; }

@media (max-width: 1320px) {
  .fw-nav-link { padding: 0 10px !important; font-size: 14.5px !important; }
  .fw-bar { gap: 14px; }
}
@media (max-width: 1199px) {
  :root { --fw-bar-h: 64px; --fw-topbar-h: 0px; }
  .fw-topbar { display: none !important; }
  .fw-nav, .fw-text-link, .fw-actions .fw-btn--ghost, .fw-icon-btn { display: none !important; }
  .fw-bar { justify-content: space-between; gap: 12px; }
  .fw-logo img { height: 32px; }
  .fw-burger { display: inline-flex; }
  .fw-drawer {
    display: block; position: fixed; left: 0; right: 0; top: var(--fw-bar-h); bottom: auto;
    height: calc(100vh - var(--fw-bar-h)); height: calc(100dvh - var(--fw-bar-h)); /* header's backdrop-filter is the containing block */
    background: var(--fw-bg); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 20px 40px; border-top: 1px solid var(--fw-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--fw-ease), visibility 0s linear .25s;
  }
  .fw-header.is-open .fw-drawer { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .fw-drawer details { border-bottom: 1px solid var(--fw-line); }
  .fw-drawer summary, .fw-drawer-link {
    display: flex !important; align-items: center; justify-content: space-between; padding: 16px 4px !important;
    color: var(--fw-text) !important; font: 600 17px/1.2 var(--fw-font-head); list-style: none; cursor: pointer;
  }
  .fw-drawer summary::-webkit-details-marker { display: none; }
  .fw-drawer summary svg { width: 18px; height: 18px; opacity: .6; transition: transform .25s; }
  .fw-drawer details[open] summary svg { transform: rotate(180deg); }
  .fw-drawer-link { border-bottom: 1px solid var(--fw-line); }
  .fw-drawer-link[aria-current="page"] { color: var(--fw-aqua) !important; }
  .fw-drawer-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 0 0 16px; }
  .fw-drawer-sub a { padding: 8px 4px !important; color: var(--fw-muted) !important; font: 500 14px/1.35 var(--fw-font-body); }
  .fw-drawer-sub a:hover { color: var(--fw-aqua) !important; }
  .fw-drawer-sub h6 { grid-column: 1 / -1; margin: 10px 0 2px; color: var(--fw-dim); font: 600 11px/1 var(--fw-font-body); letter-spacing: .14em; text-transform: uppercase; }
  .fw-drawer-cta { display: grid; gap: 10px; margin-top: 24px; }
  .fw-drawer-cta .fw-btn { height: 50px; width: 100%; }
  body.fw-lock { overflow: hidden; }
  body.fw-lock .fw-chat { display: none; }
}
@media (max-width: 420px) {
  .fw-actions .fw-btn--primary { padding: 0 14px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   4. Footer (betterbugs columns + forwaybd content + marvex closing CTA)
   -------------------------------------------------------------------------- */
.fw-footer {
  position: relative; overflow: hidden; margin: 0 !important; padding: 0 !important;
  background: var(--fw-bg) !important; border-top: 1px solid var(--fw-line) !important;
  color: var(--fw-text); font: 400 14px/1.6 var(--fw-font-body); text-align: left;
}
.fw-footer::before { content: ""; position: absolute; top: -260px; left: 50%; width: 900px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 255, 204, .10), rgba(56, 189, 248, .05) 55%, transparent); pointer-events: none; }

.fw-cta {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  margin: 72px 0 64px; padding: 44px 48px; border-radius: 24px;
  background: var(--fw-glass); border: 1px solid var(--fw-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}
.fw-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, rgba(0, 255, 204, .5), transparent 35%, transparent 65%, rgba(56, 189, 248, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.fw-cta small { display: inline-flex; align-items: center; gap: 8px; color: var(--fw-aqua); font: 600 12px/1 var(--fw-font-body); letter-spacing: .14em; text-transform: uppercase; }
.fw-cta small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fw-aqua); box-shadow: 0 0 12px var(--fw-aqua); }
.fw-cta h2 { margin: 12px 0 8px !important; color: #fff !important; font: 800 clamp(26px, 3.2vw, 40px)/1.15 var(--fw-font-head) !important; letter-spacing: -.02em; }
.fw-cta p { margin: 0 !important; max-width: 560px; color: var(--fw-muted) !important; font-size: 15px; }
.fw-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fw-foot-grid { position: relative; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.45fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--fw-line); }
.fw-foot-brand img { height: 42px; width: auto; max-width: none; }
.fw-foot-brand p { margin: 18px 0 22px !important; max-width: 320px; color: var(--fw-muted) !important; font-size: 14px; line-height: 1.7; }
.fw-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.fw-socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--fw-glass-2); border: 1px solid var(--fw-line); color: var(--fw-text-2) !important; transition: background-color .2s, color .2s, transform .2s; }
.fw-socials a:hover { background: var(--fw-aqua); color: var(--fw-ink) !important; transform: translateY(-2px); }
.fw-socials svg { width: 16px; height: 16px; }

.fw-foot-col h4 { margin: 0 0 18px !important; color: #fff !important; font: 600 14px/1.2 var(--fw-font-body) !important; letter-spacing: 0 !important; text-transform: none !important; }
.fw-foot-col li + li { margin-top: 11px; }
.fw-foot-col a, .fw-foot-col span { color: var(--fw-muted) !important; font-size: 14px; transition: color .2s; }
.fw-foot-col a:hover { color: var(--fw-aqua) !important; }

.fw-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.fw-contact-list svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--fw-aqua); }
.fw-contact-list em { display: block; color: var(--fw-dim); font: 500 11px/1.3 var(--fw-font-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.fw-news { margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--fw-glass); border: 1px solid var(--fw-line); }
.fw-news b { display: block; color: #fff; font-size: 14px; }
.fw-news p { margin: 4px 0 12px !important; color: var(--fw-muted) !important; font-size: 12.5px; }
.fw-news form { display: flex; gap: 8px; margin: 0; }
.fw-news input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--fw-line-2); background: var(--fw-bg); color: #fff; font: 400 13px var(--fw-font-body); outline: none; }
.fw-news input::placeholder { color: var(--fw-dim); }
.fw-news input:focus { border-color: var(--fw-aqua); box-shadow: 0 0 0 3px rgba(0, 255, 204, .15); }
.fw-news button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--fw-grad); color: var(--fw-ink); font: 700 13px var(--fw-font-body); }
.fw-news .newsletter-status, .fw-news .newsletter-status + p { font-size: 11px !important; margin-top: 8px !important; color: var(--fw-dim) !important; }
.fw-news .newsletter-status + p a { font-size: inherit !important; text-decoration: underline; }

.fw-foot-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; color: var(--fw-dim); font-size: 13px; }
.fw-foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fw-foot-bottom a { color: var(--fw-muted) !important; }
.fw-foot-bottom a:hover { color: var(--fw-aqua) !important; }
.fw-totop { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--fw-line-2) !important; background: var(--fw-glass-2) !important; color: var(--fw-text-2) !important; font: 600 12px/1 var(--fw-font-body) !important; }
.fw-totop:hover { border-color: var(--fw-aqua) !important; color: var(--fw-aqua) !important; }
.fw-totop svg { width: 14px; height: 14px; }

.fw-wordmark { position: relative; margin: 0 0 -0.18em; text-align: center; font: 800 clamp(80px, 19vw, 280px)/.9 var(--fw-font-head); letter-spacing: -.05em; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }

@media (max-width: 1100px) {
  .fw-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fw-foot-brand { grid-column: 1 / -1; }
  .fw-foot-contact { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .fw-foot-contact .fw-news { margin-top: 0; }
}
@media (max-width: 720px) {
  .fw-cta { grid-template-columns: 1fr; padding: 30px 22px; margin: 48px 0 44px; }
  .fw-cta-actions .fw-btn { flex: 1 1 auto; }
  .fw-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .fw-foot-contact { grid-template-columns: 1fr; }
  .fw-foot-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
}

/* --------------------------------------------------------------------------
   5. Right-side chat popup (forwaybd speed-dial, upgraded to a chat panel)
   -------------------------------------------------------------------------- */
.fw-chat { position: fixed; right: 22px; bottom: 22px; z-index: 9995; font: 400 14px/1.5 var(--fw-font-body); color: var(--fw-text); }
.fw-chat-fab {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0;
  border: 0; border-radius: 50%; background: var(--fw-grad); color: var(--fw-ink);
  box-shadow: 0 12px 34px rgba(0, 255, 204, .35), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  transition: transform .25s var(--fw-ease), box-shadow .25s;
}
.fw-chat-fab:hover { transform: scale(1.06); box-shadow: 0 16px 44px rgba(0, 255, 204, .5); }
.fw-chat-fab svg { width: 26px; height: 26px; transition: transform .3s var(--fw-ease), opacity .2s; }
.fw-chat-fab .fw-x { position: absolute; opacity: 0; transform: rotate(-90deg); }
.fw-chat.is-open .fw-chat-fab .fw-bubble { opacity: 0; transform: rotate(90deg); }
.fw-chat.is-open .fw-chat-fab .fw-x { opacity: 1; transform: none; }
.fw-chat-fab .fw-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fw-emerald); border: 2px solid var(--fw-bg); }
.fw-chat-fab .fw-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--fw-emerald); animation: fw-ping 1.8s infinite; }
.fw-chat.is-open .fw-dot { display: none; }
@keyframes fw-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }

.fw-teaser {
  position: absolute; right: 0; bottom: 74px; width: 250px; padding: 14px 36px 14px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--fw-panel); border: 1px solid var(--fw-line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  color: var(--fw-text-2); font-size: 13.5px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s var(--fw-ease), visibility 0s linear .3s;
}
.fw-teaser b { color: #fff; }
.fw-chat.has-teaser:not(.is-open) .fw-teaser { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fw-teaser-close { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--fw-glass-2); color: var(--fw-muted); font-size: 12px; line-height: 22px; }

.fw-chat-panel {
  position: absolute; right: 0; bottom: 76px; width: 370px; max-width: calc(100vw - 32px);
  max-height: min(740px, calc(100vh - 110px)); display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; background: var(--fw-panel); border: 1px solid var(--fw-line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 255, 204, .06);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .22s, transform .3s var(--fw-ease), visibility 0s linear .3s;
}
.fw-chat.is-open .fw-chat-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.fw-chat-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; background: radial-gradient(120% 140% at 0% 0%, rgba(0, 255, 204, .20), transparent 55%), radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, .18), transparent 55%), var(--fw-bg-2); border-bottom: 1px solid var(--fw-line); }
.fw-chat-avatar { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--fw-bg); border: 1px solid var(--fw-line-2); }
.fw-chat-avatar img { width: 30px; height: auto; }
.fw-chat-avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--fw-emerald); border: 2px solid var(--fw-bg-2); }
.fw-chat-head b { display: block; color: #fff; font: 700 15px/1.2 var(--fw-font-head); }
.fw-chat-head span { display: block; margin-top: 3px; color: var(--fw-muted); font-size: 12px; }
.fw-chat-close { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: var(--fw-glass-2); color: var(--fw-text-2); }
.fw-chat-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fw-chat-close svg { width: 16px; height: 16px; }

.fw-chat-body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fw-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--fw-glass-2); border: 1px solid var(--fw-line); color: var(--fw-text-2); font-size: 14px; }
.fw-msg--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: rgba(0, 255, 204, .12); border-color: rgba(0, 255, 204, .25); color: #fff; }
.fw-msg time { display: block; margin-top: 4px; color: var(--fw-dim); font-size: 11px; }
.fw-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-topic { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fw-line-2); background: transparent; color: var(--fw-text-2); font: 500 12.5px var(--fw-font-body); transition: border-color .2s, color .2s, background-color .2s; }
.fw-topic:hover, .fw-topic[aria-pressed="true"] { border-color: var(--fw-aqua); color: var(--fw-aqua); background: rgba(0, 255, 204, .07); }

.fw-chat-dial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 14px; }
.fw-dial { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--fw-glass); border: 1px solid var(--fw-line); color: var(--fw-text-2) !important; font: 500 11.5px/1.2 var(--fw-font-body); text-align: center; transition: border-color .2s, transform .2s, background-color .2s; }
.fw-dial:hover { transform: translateY(-2px); background: var(--fw-glass-2); border-color: var(--fw-line-2); color: #fff !important; }
.fw-dial i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; }
.fw-dial i svg { width: 17px; height: 17px; }
.fw-dial--wa i { background: var(--fw-wa); }
.fw-dial--zoom i { background: var(--fw-sky); }
.fw-dial--call i { background: var(--fw-yellow); color: var(--fw-ink); }

.fw-chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--fw-line); background: var(--fw-bg-2); }
.fw-chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--fw-line-2); background: var(--fw-bg); color: #fff; font: 400 14px/1.45 var(--fw-font-body); outline: none; }
.fw-chat-form textarea::placeholder { color: var(--fw-dim); }
.fw-chat-form textarea:focus { border-color: var(--fw-aqua); box-shadow: 0 0 0 3px rgba(0, 255, 204, .14); }
.fw-chat-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: var(--fw-grad); color: var(--fw-ink); transition: transform .2s; }
.fw-chat-send:hover { transform: scale(1.05); }
.fw-chat-send svg { width: 18px; height: 18px; }
.fw-chat-note { margin: 0; padding: 0 16px 12px; background: var(--fw-bg-2); color: var(--fw-dim); font-size: 11px; text-align: center; }

@media (max-width: 520px) {
  .fw-chat { right: 14px; bottom: 14px; }
  .fw-chat-fab { width: 56px; height: 56px; }
  .fw-chat-panel { position: fixed; left: 10px; right: 10px; bottom: 82px; width: auto; max-width: none; max-height: calc(100dvh - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .fw-header *, .fw-footer *, .fw-chat *, .fw-header, .fw-chat-panel, .fw-mega { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   6. Forway AI agent (Aimdoc) inside the chat popup
   -------------------------------------------------------------------------- */
.fw-ai-on { display: none; }
html.fw-ai-ready .fw-ai-on { display: inline; }
.fw-chat-head span .fw-ai-on, .fw-chat-head span .fw-ai-off { margin: 0; }
.fw-chat-head span .fw-ai-on { display: none; }
html.fw-ai-ready .fw-chat-head span .fw-ai-on { display: inline; }
html.fw-ai-ready .fw-chat-head span .fw-ai-off { display: none; }
.fw-chat-head span .fw-ai-off { display: inline; }
html.fw-ai-ready .fw-ai-off { display: none; }

.fw-ai-card {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 36px); margin: 0 18px 12px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid rgba(0, 255, 204, .35);
  background: linear-gradient(120deg, rgba(0, 255, 204, .14), rgba(56, 189, 248, .10));
  color: var(--fw-text); text-align: left;
  transition: transform .2s var(--fw-ease), border-color .2s, box-shadow .2s;
}
.fw-ai-card:hover { transform: translateY(-1px); border-color: var(--fw-aqua); box-shadow: 0 10px 30px rgba(0, 255, 204, .15); }
.fw-ai-card[aria-busy="true"] { opacity: .7; cursor: progress; }
.fw-ai-card b { display: block; color: #fff; font: 700 14px/1.2 var(--fw-font-head); }
.fw-ai-card small { display: block; margin-top: 3px; color: var(--fw-muted); font: 400 12px/1.35 var(--fw-font-body); }
.fw-ai-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--fw-grad); color: var(--fw-ink); }
.fw-ai-ico svg { width: 19px; height: 19px; }
.fw-ai-badge { margin-left: auto; flex: none; padding: 4px 8px; border-radius: 999px; background: rgba(16, 185, 129, .16); color: #34D399; font: 700 10.5px/1 var(--fw-font-body); letter-spacing: .04em; }
html.fw-ai-failed .fw-ai-card { display: none; }

/* While the Aimdoc panel is open, hide our launcher so the two never overlap */
html.fw-ai-open .fw-chat { opacity: 0; visibility: hidden; pointer-events: none; }

/* --------------------------------------------------------------------------
   7. Header v2 — info bar, card dropdowns, marketplace tiles
   -------------------------------------------------------------------------- */
.fw-topbar { height: var(--fw-topbar-h); background: #070A10; border-bottom: 1px solid var(--fw-line); font: 500 12.5px/1 var(--fw-font-body); color: var(--fw-muted); }
.fw-topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.fw-topbar-msg { display: flex; align-items: center; gap: 8px; margin: 0 !important; color: var(--fw-muted) !important; font-size: 12.5px; }
.fw-topbar-msg b { color: var(--fw-text); font-weight: 600; }
.fw-topbar svg { width: 14px; height: 14px; color: var(--fw-aqua); flex: none; }
.fw-topbar-links { display: flex; align-items: center; gap: 18px; }
.fw-topbar-links a, .fw-topbar-links span { display: inline-flex; align-items: center; gap: 6px; color: var(--fw-muted) !important; white-space: nowrap; transition: color .2s; }
.fw-topbar-links a:hover { color: var(--fw-aqua) !important; }
.fw-topbar-links li + li { padding-left: 18px; border-left: 1px solid var(--fw-line); }
.fw-topbar-login { color: var(--fw-text) !important; font-weight: 600; }
@media (max-width: 1360px) { .fw-hide-md { display: none; } }

.fw-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .3); color: var(--fw-wa) !important; transition: background-color .2s, transform .2s; }
.fw-icon-btn:hover { background: rgba(37, 211, 102, .22); transform: translateY(-1px); }
.fw-icon-btn svg { width: 18px; height: 18px; }
.fw-nav-link.is-current { color: var(--fw-aqua) !important; }

.fw-mega-inner--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fw-mega-inner--about { grid-template-columns: minmax(0, 1fr) 320px; }
.fw-mega-inner--mp { grid-template-columns: minmax(0, 1fr) 300px; }
.fw-mega-inner--res { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.fw-mega-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.fw-mega-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid var(--fw-line); font: 500 13.5px/1.4 var(--fw-font-body); color: var(--fw-muted); }
.fw-mega-foot a { color: var(--fw-aqua) !important; font-weight: 600; }
.fw-mega-foot span { margin-left: auto; }
.fw-mega-foot span a { margin-left: 4px; }

.fw-mp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fw-mp-tile { position: relative; display: flex !important; align-items: center; gap: 12px; padding: 12px !important; border-radius: 14px; background: var(--fw-glass); border: 1px solid var(--fw-line); overflow: hidden; transition: border-color .2s, transform .2s, background-color .2s; }
.fw-mp-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--mp), var(--mp2)); }
.fw-mp-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--mp) 55%, transparent); background: color-mix(in srgb, var(--mp) 8%, transparent); }
.fw-mp-mono { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--mp), var(--mp2)); color: #fff; font: 800 17px/1 var(--fw-font-head); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.fw-mp-tile b { display: block; color: #fff; font: 600 14px/1.25 var(--fw-font-body); }
.fw-mp-tile small { display: block; margin-top: 2px; color: var(--fw-muted); font: 400 12px/1.35 var(--fw-font-body); }
@media (max-width: 1320px) { .fw-mega-inner--4 .fw-mega-link small { display: none; } }

/* marketplace logo icons in the menu */
.fw-mp-mono { background: var(--mp); }
.fw-mp-mono.is-logo { background: none; object-fit: cover; border-radius: 50%; }
.fw-mp-tile .fw-mp-mono.is-logo { width: 38px; height: 38px; }

/* recognition badges in the footer */
.fw-awards { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 0 0 40px; margin: 0 0 44px; border-bottom: 1px solid var(--fw-line); }
.fw-awards p { margin: 0 12px 0 0 !important; color: var(--fw-muted) !important; font: 600 12px/1.3 var(--fw-font-body); letter-spacing: .14em; text-transform: uppercase; }
.fw-awards img { height: 62px; width: auto; border-radius: 12px; transition: transform .2s; }
.fw-awards img:hover { transform: translateY(-3px); }
@media (max-width: 640px) { .fw-awards img { height: 52px; } }
