/* ==========================================================================
   BeNext — site UI layer (design tokens, header/footer, all nx-* components)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --nx-primary: #2563eb;
  --nx-primary-600: #1d4ed8;
  --nx-primary-700: #1e40af;
  --nx-accent: #06b6d4;
  --nx-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --nx-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, .12) 0%, rgba(6, 182, 212, .12) 100%);

  /* Neutrals */
  --nx-ink: #0b1120;
  --nx-ink-2: #111c31;
  --nx-heading: #0f172a;
  --nx-body: #52627a;
  --nx-muted: #8493a8;
  --nx-line: #e6ebf2;
  --nx-surface: #ffffff;
  --nx-surface-2: #f6f8fc;

  /* Shape & depth */
  --nx-radius-sm: 10px;
  --nx-radius: 16px;
  --nx-radius-lg: 24px;
  --nx-shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --nx-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --nx-shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  /* Layout */
  --nx-header-h: 88px;
  --nx-header-h-sm: 70px;
  --nx-ease: cubic-bezier(.4, 0, .2, 1);

  /* Fonts */
  --nx-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-font-display: "Sora", "Inter", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--nx-font);
  color: var(--nx-body);
  background: var(--nx-surface);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nx-header-h);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nx-font-display);
  color: var(--nx-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

a { color: var(--nx-primary); text-decoration: none; transition: color .25s var(--nx-ease); }
a:hover { color: var(--nx-primary-600); text-decoration: none; }

img { max-width: 100%; }

/* AOS slide-ins start off-canvas; clip them so they never widen the page on
   phones (clip, unlike hidden, does not create a scroll container). */
main { overflow-x: hidden; overflow-x: clip; }

::selection { background: rgba(37, 99, 235, .2); }

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--nx-surface-2); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--nx-muted); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.nx-section { padding: 96px 0; position: relative; }
.nx-section--tight { padding: 64px 0; }
.nx-section--alt { background: var(--nx-surface-2); }
.nx-section--ink { background: var(--nx-ink); }

.nx-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.nx-head--start { margin-left: 0; text-align: left; }

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nx-primary);
  background: var(--nx-gradient-soft);
  border: 1px solid rgba(37, 99, 235, .18);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.nx-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 14px; }
.nx-head p { font-size: 17px; color: var(--nx-body); margin: 0; }

.nx-grad-text {
  background: var(--nx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--nx-font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--nx-ease), box-shadow .25s var(--nx-ease),
              background-color .25s var(--nx-ease), color .25s var(--nx-ease), border-color .25s var(--nx-ease);
}
.nx-btn i { font-size: 18px; }
.nx-btn:hover { transform: translateY(-2px); }

.nx-btn--primary { background: var(--nx-gradient); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.nx-btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(37, 99, 235, .36); }

.nx-btn--ghost { background: transparent; color: var(--nx-heading); border-color: var(--nx-line); }
.nx-btn--ghost:hover { color: var(--nx-primary); border-color: var(--nx-primary); background: rgba(37, 99, 235, .05); }

.nx-btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.nx-btn--light:hover { background: #fff; color: var(--nx-ink); border-color: #fff; }

.nx-btn--sm { padding: 11px 20px; font-size: 14px; }

.nx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}
.nx-link-arrow i { transition: transform .25s var(--nx-ease); }
.nx-link-arrow:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
#header.nx-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: var(--nx-header-h);
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: height .35s var(--nx-ease), box-shadow .35s var(--nx-ease), border-color .35s var(--nx-ease);
}
/* The frosted glass lives on a pseudo-element: backdrop-filter on the header
   itself would make it the containing block of the fixed mobile drawer and
   squeeze the drawer into the header's height. */
#header.nx-header::after {
  content: "";
  position: absolute;
  inset: 0 0 -1px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 14, 27, .94) 0%, rgba(9, 14, 27, .82) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .35s var(--nx-ease);
}
/* hairline of brand colour along the very top edge */
#header.nx-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .7) 20%, rgba(6, 182, 212, .7) 80%, transparent);
  opacity: 0;
  transition: opacity .35s var(--nx-ease);
}
#header.nx-header.header-scrolled {
  height: var(--nx-header-h-sm);
  border-bottom-color: rgba(255, 255, 255, .09);
  box-shadow: 0 10px 40px rgba(2, 6, 23, .5);
}
#header.nx-header.header-scrolled::before { opacity: 1; }
#header.nx-header.header-scrolled::after { background: rgba(8, 12, 24, .97); }

.nx-header .container { position: relative; display: flex; align-items: center; gap: 24px; }

/* Brand ------------------------------------------------------------------ */
/* Mark = image, wordmark = live text, so the lockup stays crisp and can be
   coloured for whatever surface it sits on. */
.nx-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex: 0 0 auto;
  line-height: 1;
}
.nx-brand-mark {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(37, 99, 235, .32));
  transition: height .35s var(--nx-ease), transform .35s var(--nx-ease),
              filter .35s var(--nx-ease);
}
.nx-brand-word {
  font-family: var(--nx-font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
  transition: font-size .35s var(--nx-ease);
}
.nx-brand-word .s1 { color: #fff; }
.nx-brand-word .s2 { color: rgba(255, 255, 255, .58); font-weight: 600; transition: color .3s var(--nx-ease); }

.nx-brand:hover .nx-brand-mark {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 5px 16px rgba(37, 99, 235, .5));
}
.nx-brand:hover .nx-brand-word .s2 { color: rgba(255, 255, 255, .85); }

.header-scrolled .nx-brand-mark { height: 31px; }
.header-scrolled .nx-brand-word { font-size: 21px; }

.nx-brand--footer { margin-right: 0; margin-bottom: 20px; }
.nx-brand--footer .nx-brand-mark { height: 42px; }
.nx-brand--footer .nx-brand-word { font-size: 27px; }

/* Primary nav ------------------------------------------------------------ */
.nx-nav { display: flex; align-items: center; }
.nx-nav > ul {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-nav > ul > li { position: relative; }
/* Wide mega panels are centred on the header container rather than on their
   trigger, so the right-most ones never run off the screen. */
.nx-nav > ul > li.nx-has-panel--wide { position: static; }

/* Drawer-only pieces */
.nx-drawer-head,
.nx-drawer-foot,
.nx-panel-links .nx-panel-all { display: none; }

.nx-nav > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--nx-font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: rgba(233, 239, 248, .72);
  padding: 10px 15px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color .25s var(--nx-ease), background-color .25s var(--nx-ease);
}

/* underline that grows from the centre */
.nx-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--nx-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--nx-ease);
}

.nx-nav > ul > li > a:hover,
.nx-nav > ul > li.nx-open > a {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.nx-nav > ul > li > a:hover::after,
.nx-nav > ul > li.nx-open > a::after { transform: scaleX(1); }

.nx-nav > ul > li > a.active { color: #fff; font-weight: 600; }
.nx-nav > ul > li > a.active::after { transform: scaleX(1); }

.nx-nav .nx-caret {
  font-size: 11px;
  opacity: .5;
  margin-top: 1px;
  transition: transform .3s var(--nx-ease), opacity .3s var(--nx-ease);
}
.nx-nav > ul > li:hover .nx-caret,
.nx-nav > ul > li.nx-open .nx-caret { transform: rotate(180deg); opacity: .95; }

.nx-nav .nx-nav-cta { margin-left: 14px; }
.nx-nav .nx-nav-cta .nx-btn { justify-content: center; color: #fff; box-shadow: 0 6px 20px rgba(37, 99, 235, .35); }

/* Mega / drop panels ----------------------------------------------------- */
.nx-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 264px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 28px 70px rgba(2, 6, 23, .28), 0 2px 8px rgba(2, 6, 23, .08);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s var(--nx-ease), transform .24s var(--nx-ease), visibility .24s;
  z-index: 20;
}
/* invisible bridge so the pointer can travel from the trigger to the panel */
.nx-panel::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
/* little pointer tip */
.nx-panel::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  background: var(--nx-surface);
  border-left: 1px solid var(--nx-line);
  border-top: 1px solid var(--nx-line);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.nx-nav > ul > li:hover > .nx-panel,
.nx-nav > ul > li.nx-open > .nx-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nx-panel--wide { width: min(880px, calc(100vw - 48px)); }
.nx-panel--wide::after { display: none; }

.nx-panel-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 22px; }
.nx-panel--wide .nx-panel-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  align-content: start;
}

.nx-panel-links { list-style: none; margin: 0; padding: 0; }
.nx-panel-links > li { margin: 0; }
.nx-panel-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--nx-heading);
  font-family: var(--nx-font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 11px 12px;
  border-radius: 11px;
  transition: background-color .2s var(--nx-ease), color .2s var(--nx-ease), transform .2s var(--nx-ease);
}
.nx-panel-links a i {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--nx-gradient-soft);
  color: var(--nx-primary);
  font-size: 15px;
  transition: background .2s var(--nx-ease), color .2s var(--nx-ease);
}
.nx-panel-links a:hover { background: var(--nx-surface-2); color: var(--nx-primary); }
.nx-panel-links a:hover i { background: var(--nx-gradient); color: #fff; }

.nx-panel-feature {
  background: var(--nx-surface-2);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.nx-panel-feature img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: var(--nx-radius-sm);
  margin-bottom: 12px;
}
.nx-panel-feature h4 { font-size: 15px; margin-bottom: 6px; }
.nx-panel-feature p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nx-body);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-panel-feature .nx-link-arrow { margin-top: auto; font-size: 14px; }
.nx-panel-empty { font-size: 13.5px; color: var(--nx-muted); padding: 10px 12px; margin: 0; }

/* Mobile toggle & drawer -------------------------------------------------- */
.nx-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 21px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s var(--nx-ease), border-color .25s var(--nx-ease);
}
.nx-burger:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }

.nx-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--nx-ease), visibility .3s;
  z-index: 1029;
}
body.nx-nav-open .nx-backdrop { opacity: 1; visibility: visible; }
body.nx-nav-open { overflow: hidden; }

@media (max-width: 1199.98px) {
  .nx-burger { display: inline-flex; }

  /* Drawer shell */
  .nx-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100%);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: radial-gradient(520px 300px at 100% 0%, rgba(6, 182, 212, .14), transparent 70%),
                radial-gradient(420px 320px at 0% 100%, rgba(37, 99, 235, .16), transparent 70%),
                #0b1222;
    border-left: 1px solid rgba(255, 255, 255, .08);
    box-shadow: -30px 0 80px rgba(2, 6, 23, .55);
    padding: 0 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .42s var(--nx-ease), visibility .42s;
    z-index: 1031;
  }
  body.nx-nav-open .nx-nav { transform: translateX(0); visibility: visible; }

  .nx-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--nx-header-h);
    margin: 0 -18px 10px;
    padding: 0 18px;
    background: rgba(11, 18, 34, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .nx-drawer-head .nx-brand { margin: 0; }
  .nx-drawer-head .nx-brand-mark { height: 30px; }
  .nx-drawer-head .nx-brand-word { font-size: 20px; }
  .nx-drawer-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: background-color .25s var(--nx-ease), transform .3s var(--nx-ease);
  }
  .nx-drawer-close:hover { background: rgba(255, 255, 255, .12); transform: rotate(90deg); }

  /* Top-level rows */
  .nx-nav > ul { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nx-nav > ul > li,
  .nx-nav > ul > li.nx-has-panel--wide { position: relative; }
  .nx-nav > ul > li > a {
    justify-content: space-between;
    padding: 14px 14px;
    font-size: 16.5px;
    font-weight: 500;
    color: rgba(233, 239, 248, .82);
    border-radius: 14px;
  }
  .nx-nav > ul > li > a:hover { background: rgba(255, 255, 255, .05); }
  .nx-nav > ul > li.nx-open > a { background: rgba(255, 255, 255, .06); color: #fff; }
  .nx-nav > ul > li > a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(37, 99, 235, .26), rgba(6, 182, 212, .06));
  }
  /* the desktop underline becomes a gradient bar on the leading edge */
  .nx-nav > ul > li > a::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }
  .nx-nav > ul > li > a:hover::after,
  .nx-nav > ul > li.nx-open > a::after { transform: scaleY(0); }
  .nx-nav > ul > li > a.active::after { transform: scaleY(1); }

  .nx-nav .nx-caret {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    opacity: .85;
    margin: 0;
  }
  .nx-nav > ul > li:hover .nx-caret { transform: none; opacity: .85; }
  .nx-nav > ul > li.nx-open .nx-caret { transform: rotate(180deg); opacity: 1; background: var(--nx-gradient); color: #fff; }

  /* Sub-panels become an animated accordion (0fr -> 1fr grid row) */
  .nx-panel,
  .nx-panel--wide,
  .nx-nav > ul > li:hover > .nx-panel {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: auto;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    transform: none;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: grid-template-rows .38s var(--nx-ease), opacity .3s var(--nx-ease);
  }
  .nx-panel > * { min-height: 0; }
  .nx-panel::before, .nx-panel::after { display: none; }
  .nx-nav > ul > li.nx-open > .nx-panel { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; transform: none; }

  .nx-panel-grid { display: block; }
  .nx-panel-links,
  .nx-panel--wide .nx-panel-links {
    display: block;
    margin: 0 0 0 27px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .1);
  }
  /* vertical breathing room sits inside the list so a collapsed (0fr) panel
     is truly zero-height */
  .nx-panel-links > li:first-child { padding-top: 6px; }
  .nx-panel-links > li:last-child { padding-bottom: 10px; }
  .nx-panel-links a {
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    padding: 9px 10px;
    border-radius: 11px;
  }
  .nx-panel-links a i { flex-basis: 28px; width: 28px; height: 28px; font-size: 14px; background: rgba(255, 255, 255, .06); color: #7dd3fc; }
  .nx-panel-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nx-panel-links a:hover i { background: var(--nx-gradient); color: #fff; }
  .nx-panel-links .nx-panel-all { display: block; }
  .nx-panel-links .nx-panel-all a { color: #7dd3fc; font-weight: 600; }
  .nx-panel-links .nx-panel-all a i { background: transparent; }
  .nx-panel-empty { color: rgba(255, 255, 255, .45); padding: 8px 10px; }
  .nx-panel-feature { display: none; }

  /* CTA + contact footer */
  .nx-nav .nx-nav-cta { margin: 18px 0 0; }
  .nx-nav .nx-nav-cta .nx-btn { width: 100%; padding: 15px 20px; font-size: 15px; }
  .nx-nav .nx-nav-cta .nx-btn::after { display: none; }

  .nx-drawer-foot {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
  }
  .nx-drawer-foot a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    min-width: 0;
  }
  .nx-drawer-foot a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nx-drawer-foot a i { color: #7dd3fc; font-size: 16px; }
  .nx-drawer-foot a:hover { color: #fff; border-color: rgba(125, 211, 252, .35); }

  /* Rows cascade in as the drawer opens */
  body.nx-nav-open .nx-nav > ul > li,
  body.nx-nav-open .nx-drawer-foot { animation: nx-drawer-in .5s var(--nx-ease) both; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(2) { animation-delay: .04s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(3) { animation-delay: .08s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(4) { animation-delay: .12s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(5) { animation-delay: .16s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(6) { animation-delay: .2s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(7) { animation-delay: .24s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(8) { animation-delay: .28s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(9) { animation-delay: .32s; }
  body.nx-nav-open .nx-nav > ul > li:nth-child(10),
  body.nx-nav-open .nx-drawer-foot { animation-delay: .36s; }
}

@keyframes nx-drawer-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-nav, .nx-panel { transition: none !important; }
  body.nx-nav-open .nx-nav > ul > li,
  body.nx-nav-open .nx-drawer-foot { animation: none !important; }
}

/* Between the desktop breakpoint and ~1400px the full menu plus the wordmark
   is tight, so tighten the nav rather than let it wrap. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nx-brand-mark { height: 32px; }
  .nx-brand-word { font-size: 21px; }
  .nx-header .container { gap: 12px; }
  .nx-nav > ul > li > a { padding: 10px 10px; font-size: 13.5px; }
  .nx-nav > ul > li > a::after { left: 10px; right: 10px; }
  .nx-nav .nx-nav-cta { margin-left: 8px; }
  .nx-nav .nx-nav-cta .nx-btn { padding: 10px 16px; }
}

@media (max-width: 575.98px) {
  :root { --nx-header-h: 74px; --nx-header-h-sm: 66px; }
  .nx-brand { gap: 9px; }
  .nx-brand-mark { height: 30px; }
  .nx-brand-word { font-size: 20px; }
  .header-scrolled .nx-brand-mark { height: 27px; }
  .header-scrolled .nx-brand-word { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.nx-hero {
  position: relative;
  background: radial-gradient(1100px 520px at 78% -10%, rgba(6, 182, 212, .22), transparent 60%),
              radial-gradient(900px 480px at 8% 0%, rgba(37, 99, 235, .28), transparent 60%),
              var(--nx-ink);
  color: #fff;
  padding: 96px 0 108px;
  overflow: hidden;
}
.nx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  pointer-events: none;
}
.nx-hero > .container { position: relative; z-index: 2; }

.nx-hero .nx-eyebrow {
  color: #7dd3fc;
  background: rgba(125, 211, 252, .1);
  border-color: rgba(125, 211, 252, .25);
}
.nx-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
  margin-bottom: 22px;
}
.nx-hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, .72);
  max-width: 620px;
  margin-bottom: 34px;
}
.nx-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.nx-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.nx-hero-stats .n { display: block; font-family: var(--nx-font-display); font-size: 32px; font-weight: 800; color: #fff; line-height: 1.1; }
.nx-hero-stats .l { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* Floating solution chips */
.nx-hero-panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--nx-radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(2, 6, 23, .45);
}
.nx-hero-panel h6 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 18px;
}
.nx-chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nx-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--nx-radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: transform .25s var(--nx-ease), background-color .25s var(--nx-ease), border-color .25s var(--nx-ease);
}
.nx-chip:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(125, 211, 252, .4);
  color: #fff;
}
.nx-chip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.nx-chip-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--nx-gradient);
  font-size: 20px;
  color: #fff;
  overflow: hidden;
}
/* Uploaded solution icons keep their own colours on a light tile — inverting
   them to a white silhouette destroyed the artwork. */
.nx-chip-ico--img { background: #fff; padding: 5px; }
.nx-chip-ico--img img { width: 100%; height: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------
   7. Client logo strip
   -------------------------------------------------------------------------- */
.nx-logos { padding: 44px 0; background: var(--nx-surface); border-bottom: 1px solid var(--nx-line); }
.nx-logos .nx-logos-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: 26px;
}
.nx-logos .clients-slider { padding: 4px 0; }
.nx-logos .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}
.nx-logos .swiper-slide img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .3s var(--nx-ease), opacity .3s var(--nx-ease);
}
.nx-logos .swiper-slide img:hover { filter: grayscale(0); opacity: 1; }
/* Swiper places its bullets absolutely over the slides; a continuously
   autoplaying logo strip does not need them at all. */
.nx-logos .swiper-pagination { display: none; }

/* --------------------------------------------------------------------------
   8. Cards & feature blocks
   -------------------------------------------------------------------------- */
.nx-card {
  height: 100%;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 30px 26px;
  transition: transform .3s var(--nx-ease), box-shadow .3s var(--nx-ease), border-color .3s var(--nx-ease);
}
.nx-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow); border-color: rgba(37, 99, 235, .28); }
.nx-card h4 { font-size: 19px; margin-bottom: 10px; }
.nx-card h4 a { color: inherit; }
.nx-card h4 a:hover { color: var(--nx-primary); }
.nx-card p { font-size: 15px; margin: 0 0 16px; }
.nx-card p:last-child { margin-bottom: 0; }

.nx-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--nx-gradient-soft);
  border: 1px solid rgba(37, 99, 235, .16);
  color: var(--nx-primary);
  font-size: 26px;
  margin-bottom: 20px;
  transition: background .3s var(--nx-ease), color .3s var(--nx-ease);
}
.nx-ico img { width: 32px; height: 32px; object-fit: contain; }
.nx-card:hover .nx-ico { background: var(--nx-gradient); color: #fff; }
/* Icons that are real uploaded artwork keep their colours; only the glyph
   variant recolours on hover. */
.nx-ico--img { background: var(--nx-surface-2); border-color: var(--nx-line); }
.nx-card:hover .nx-ico--img { background: var(--nx-surface-2); }

.nx-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Split media block */
.nx-media {
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  box-shadow: var(--nx-shadow);
  position: relative;
}
.nx-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.nx-media--pad { background: var(--nx-surface-2); }

.nx-prose h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 18px; }
.nx-prose p { font-size: 16.5px; }
.nx-prose ul { list-style: none; padding: 0; margin: 22px 0 0; }
.nx-prose ul li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.nx-prose ul li::before {
  content: "\ea5e"; /* remixicon check */
  font-family: "remixicon";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  background: var(--nx-gradient-soft);
  color: var(--nx-primary);
}

/* Feature list (icon + text rows) */
.nx-feature { display: flex; gap: 18px; padding: 22px; border-radius: var(--nx-radius); transition: background-color .3s var(--nx-ease); }
.nx-feature:hover { background: var(--nx-surface); box-shadow: var(--nx-shadow-sm); }
.nx-feature .nx-ico { flex: 0 0 56px; margin-bottom: 0; }
.nx-feature h4 { font-size: 18px; margin-bottom: 6px; }
.nx-feature p { font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   9. Stats band
   -------------------------------------------------------------------------- */
.nx-stats { background: var(--nx-ink-2); color: #fff; padding: 68px 0; }
.nx-stat { text-align: center; padding: 12px; }
.nx-stat i { font-size: 30px; color: #7dd3fc; margin-bottom: 10px; display: block; }
.nx-stat .n { font-family: var(--nx-font-display); font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.nx-stat p { color: rgba(255, 255, 255, .6); font-size: 14.5px; margin: 8px 0 0; }

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
.nx-cta {
  background: var(--nx-gradient);
  border-radius: var(--nx-radius-lg);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nx-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.nx-cta > * { position: relative; z-index: 1; }
.nx-cta h3 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.nx-cta p { color: rgba(255, 255, 255, .85); font-size: 17px; margin: 0; }
.nx-cta .nx-btn--light { border-color: #fff; background: #fff; color: var(--nx-primary-700); }
.nx-cta .nx-btn--light:hover { background: rgba(255, 255, 255, .9); }

/* --------------------------------------------------------------------------
   11. Portfolio / projects
   -------------------------------------------------------------------------- */
.nx-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.nx-filters li {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-body);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  transition: all .25s var(--nx-ease);
}
.nx-filters li:hover { color: var(--nx-primary); border-color: var(--nx-primary); }
.nx-filters li.filter-active { background: var(--nx-gradient); border-color: transparent; color: #fff; }

/* Isotope positions .portfolio-item absolutely, so vertical rhythm has to come
   from the item's own margin rather than from the Bootstrap row gutter. */
.nx-work .portfolio-item { margin-bottom: 24px; }

.nx-work-card {
  position: relative;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-ink);
  box-shadow: var(--nx-shadow-sm);
}
.nx-work-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--nx-ease), opacity .4s var(--nx-ease);
}
.nx-work-card:hover img { transform: scale(1.07); opacity: .35; }

.nx-work-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(to top, rgba(11, 17, 32, .92) 25%, transparent);
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .35s var(--nx-ease), opacity .35s var(--nx-ease);
}
.nx-work-card:hover .nx-work-body { transform: translateY(0); opacity: 1; }
.nx-work-body h4 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.nx-work-body p { color: rgba(255, 255, 255, .7); font-size: 13.5px; margin: 0 0 14px; }
.nx-work-links { display: flex; gap: 10px; }
.nx-work-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 18px;
  transition: background-color .25s var(--nx-ease);
}
.nx-work-links a:hover { background: var(--nx-primary); color: #fff; }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.nx-contact-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow);
  overflow: hidden;
}
.nx-contact-aside { background: var(--nx-ink); color: #fff; padding: 40px 34px; height: 100%; }
.nx-contact-aside h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.nx-contact-aside > p { color: rgba(255, 255, 255, .65); font-size: 15px; margin-bottom: 28px; }

.nx-contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.nx-contact-item i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #7dd3fc;
  font-size: 19px;
}
.nx-contact-item h6 { color: rgba(255, 255, 255, .5); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 2px 0 3px; }
.nx-contact-item p { color: #fff; font-size: 15px; margin: 0; word-break: break-word; }

.nx-map { border: 0; width: 100%; height: 100%; min-height: 260px; display: block; filter: grayscale(.2); }

.nx-form { padding: 40px 34px; }
.nx-field { position: relative; margin-bottom: 22px; }
.nx-field input,
.nx-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--nx-heading);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  padding: 16px 14px;
  outline: none;
  transition: border-color .25s var(--nx-ease), box-shadow .25s var(--nx-ease);
}
.nx-field textarea { resize: vertical; min-height: 130px; }
.nx-field label {
  position: absolute;
  top: 16px;
  left: 12px;
  padding: 0 5px;
  font-size: 15px;
  color: var(--nx-muted);
  background: var(--nx-surface);
  pointer-events: none;
  transition: all .2s var(--nx-ease);
}
.nx-field input:focus,
.nx-field textarea:focus { border-color: var(--nx-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.nx-field input:focus + label,
.nx-field input:not(:placeholder-shown) + label,
.nx-field textarea:focus + label,
.nx-field textarea:not(:placeholder-shown) + label {
  top: -9px;
  left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-primary);
}

.nx-form-status { min-height: 26px; margin-bottom: 8px; font-size: 14.5px; }
.nx-form-status .loading { color: var(--nx-body); }
.nx-form-status .sent-message { color: #059669; }
.nx-form-status .error-message { color: #dc2626; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
#footer.nx-footer {
  background: var(--nx-ink);
  color: rgba(255, 255, 255, .65);
  padding: 0;
  font-size: 15px;
  border: 0;
}
.nx-footer .nx-footer-top { padding: 72px 0 48px; }
.nx-footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 22px;
  padding: 0;
  position: relative;
}
.nx-footer p { color: rgba(255, 255, 255, .6); }

.nx-footer ul { list-style: none; padding: 0; margin: 0; }
.nx-footer ul li { padding: 6px 0; border: 0; }
.nx-footer ul a {
  color: rgba(255, 255, 255, .62);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s var(--nx-ease), transform .25s var(--nx-ease);
}
.nx-footer ul a:hover { color: #fff; transform: translateX(3px); }
.nx-footer ul a i { font-size: 15px; color: var(--nx-accent); }

.nx-footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .6); }
.nx-footer-contact li i { color: var(--nx-accent); font-size: 17px; line-height: 1.7; }

.nx-social { display: flex; gap: 10px; margin-top: 22px; }
.nx-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 18px;
  transition: background .25s var(--nx-ease), transform .25s var(--nx-ease);
}
.nx-social a:hover { background: var(--nx-gradient); color: #fff; transform: translateY(-3px); }

.nx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}
.nx-footer-bottom strong { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   14. Utilities & shared widgets
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 996;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--nx-gradient);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--nx-ease), visibility .3s, transform .3s var(--nx-ease);
}
.back-to-top:hover { color: #fff; transform: translateY(-3px); }
.back-to-top.active { opacity: 1; visibility: visible; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--nx-ink);
}
#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 5px solid var(--nx-accent);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: nx-spin 1s linear infinite;
}
@keyframes nx-spin {
  to { transform: rotate(360deg); }
}

/* AOS: disable the staggered delay on small screens so content is not held back */
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

.nx-divider { height: 1px; background: var(--nx-line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .nx-section { padding: 72px 0; }
  .nx-hero { padding: 64px 0 76px; }
  .nx-hero-stats { gap: 28px; margin-top: 38px; }
  .nx-cta { padding: 40px 28px; text-align: center; }
  .nx-cta .nx-btn { margin-top: 22px; }
  .nx-contact-aside, .nx-form { padding: 32px 24px; }
}

@media (max-width: 575.98px) {
  .nx-section { padding: 56px 0; }
  .nx-head { margin-bottom: 38px; }
  .nx-hero-panel { padding: 18px; }
  .nx-chip-grid { gap: 10px; }
  .nx-chip { padding: 11px; gap: 10px; font-size: 13.5px; }
  .nx-chip-ico { flex-basis: 34px; width: 34px; height: 34px; font-size: 17px; }
  .nx-hero-lead { font-size: 16.5px; }
  .nx-hero-actions .nx-btn { width: 100%; }
  .nx-cta { padding: 34px 22px; }
  .nx-contact-aside, .nx-form { padding: 28px 20px; }
  .back-to-top { right: 14px; bottom: 14px; }
  .nx-hero-stats { gap: 22px; }
  .nx-hero-stats .n { font-size: 26px; }
}

/* --------------------------------------------------------------------------
   16. Page hero (inner pages) + breadcrumb
   -------------------------------------------------------------------------- */
.nx-page-hero {
  position: relative;
  background: var(--nx-ink);
  color: #fff;
  padding: 76px 0 68px;
  overflow: hidden;
  isolation: isolate;
}
.nx-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--nx-hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: .3;
}
.nx-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(900px 420px at 85% -20%, rgba(6, 182, 212, .3), transparent 62%),
              linear-gradient(180deg, rgba(11, 17, 32, .82) 0%, rgba(11, 17, 32, .95) 100%);
}
.nx-page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 0 0 12px; }
.nx-page-hero p { color: rgba(255, 255, 255, .7); font-size: 17px; max-width: 680px; margin: 0; }
.nx-page-hero .nx-eyebrow { color: #7dd3fc; background: rgba(125, 211, 252, .1); border-color: rgba(125, 211, 252, .25); }

.nx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}
.nx-breadcrumb a { color: rgba(255, 255, 255, .78); }
.nx-breadcrumb a:hover { color: #7dd3fc; }
.nx-breadcrumb .sep { opacity: .45; }
.nx-breadcrumb .current { color: #fff; font-weight: 500; }

/* --------------------------------------------------------------------------
   17. Detail pages (gallery + info sidebar)
   -------------------------------------------------------------------------- */
.nx-gallery-slider {
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: var(--nx-surface-2);
  border: 1px solid var(--nx-line);
}
.nx-gallery-slider .swiper-slide { display: flex; align-items: center; justify-content: center; background: var(--nx-surface-2); }
.nx-gallery-slider .swiper-slide img { width: 100%; height: 440px; object-fit: contain; display: block; padding: 12px; }
.nx-gallery-slider .swiper-pagination { position: static; padding: 14px 0; }
.nx-gallery-slider .swiper-pagination-bullet { background: var(--nx-muted); opacity: .5; }
.nx-gallery-slider .swiper-pagination-bullet-active { background: var(--nx-primary); opacity: 1; }

.nx-info-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 26px;
  box-shadow: var(--nx-shadow-sm);
}
.nx-info-card + .nx-info-card { margin-top: 22px; }
.nx-info-card h3 { font-size: 19px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--nx-line); }

.nx-spec { list-style: none; margin: 0; padding: 0; }
.nx-spec li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--nx-line);
  font-size: 15px;
}
.nx-spec li:last-child { border-bottom: 0; padding-bottom: 0; }
.nx-spec .k { color: var(--nx-muted); font-weight: 500; flex: 0 0 auto; }
.nx-spec .v { color: var(--nx-heading); font-weight: 600; text-align: right; word-break: break-word; }

.nx-article h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.nx-article h3 { font-size: 21px; margin: 28px 0 12px; }
.nx-article p { font-size: 16.5px; margin-bottom: 16px; }
.nx-article img { max-width: 100%; height: auto; border-radius: var(--nx-radius); margin: 12px 0; }
.nx-article ul, .nx-article ol { padding-left: 20px; margin-bottom: 16px; list-style: revert; }
.nx-article li { margin-bottom: 8px; }
.nx-article table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.nx-article table td, .nx-article table th { border: 1px solid var(--nx-line); padding: 10px 12px; }

/* --------------------------------------------------------------------------
   18. Listing tiles (services, products, clients, courses, posts)
   -------------------------------------------------------------------------- */
.nx-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  overflow: hidden;
  transition: transform .3s var(--nx-ease), box-shadow .3s var(--nx-ease), border-color .3s var(--nx-ease);
}
.nx-tile:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow); border-color: rgba(37, 99, 235, .28); }
.nx-tile-media { position: relative; background: var(--nx-surface-2); overflow: hidden; }
.nx-tile-media img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .5s var(--nx-ease); }
.nx-tile-media--contain img { object-fit: contain; padding: 18px; }
.nx-tile:hover .nx-tile-media img { transform: scale(1.05); }
.nx-tile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 17, 32, .85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.nx-tile-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.nx-tile-body h3 { font-size: 19px; margin: 0 0 10px; }
.nx-tile-body h3 a { color: inherit; }
.nx-tile-body h3 a:hover { color: var(--nx-primary); }
.nx-tile-body p { font-size: 15px; margin: 0 0 18px; }
.nx-tile-body .nx-link-arrow, .nx-tile-body .nx-btn { margin-top: auto; align-self: flex-start; }

.nx-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-primary);
  margin-bottom: 10px;
}
.nx-meta i { font-size: 15px; }

/* Logo / client tile */
.nx-logo-card {
  height: 100%;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 22px;
  text-align: center;
  transition: transform .3s var(--nx-ease), box-shadow .3s var(--nx-ease), border-color .3s var(--nx-ease);
}
.nx-logo-card:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow); border-color: rgba(37, 99, 235, .28); }
.nx-logo-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s var(--nx-ease), opacity .3s var(--nx-ease);
}
.nx-logo-card:hover img { filter: grayscale(0); opacity: 1; }
.nx-logo-card h5 { font-size: 15px; margin: 16px 0 0; color: var(--nx-heading); }

/* --------------------------------------------------------------------------
   19. Alternating media rows (news, sector projects, course tracks)
   -------------------------------------------------------------------------- */
.nx-row-item { padding: 34px 0; border-bottom: 1px solid var(--nx-line); }
.nx-row-item:last-child { border-bottom: 0; }
.nx-row-media { border-radius: var(--nx-radius); overflow: hidden; background: var(--nx-surface-2); }
.nx-row-media img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s var(--nx-ease); }
.nx-row-media:hover img { transform: scale(1.04); }
.nx-row-body h3 { font-size: clamp(21px, 2.2vw, 28px); margin: 0 0 12px; }
.nx-row-body h3 a { color: inherit; }
.nx-row-body h3 a:hover { color: var(--nx-primary); }
.nx-row-body p { font-size: 16px; }

/* --------------------------------------------------------------------------
   20. Gallery grid (media page)
   -------------------------------------------------------------------------- */
.nx-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-surface-2);
  box-shadow: var(--nx-shadow-sm);
}
.nx-gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .5s var(--nx-ease); }
.nx-gallery-item::after {
  content: "\f4fe"; /* bootstrap-icons zoom-in */
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  background: rgba(11, 17, 32, .6);
  opacity: 0;
  transition: opacity .3s var(--nx-ease);
}
.nx-gallery-item:hover img { transform: scale(1.07); }
.nx-gallery-item:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   21. Forms (careers / generic)
   -------------------------------------------------------------------------- */
.nx-form-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow);
  padding: 40px;
}
.nx-form-card h3 { font-size: 22px; margin-bottom: 6px; }
.nx-form-card > p { margin-bottom: 28px; }

.nx-input-group { margin-bottom: 20px; }
.nx-input-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nx-heading);
  margin-bottom: 8px;
}
.nx-input-group label .req { color: #dc2626; }
.nx-input-group input,
.nx-input-group select,
.nx-input-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--nx-heading);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-sm);
  padding: 13px 14px;
  outline: none;
  transition: border-color .25s var(--nx-ease), box-shadow .25s var(--nx-ease);
}
.nx-input-group textarea { resize: vertical; }
.nx-input-group input:focus,
.nx-input-group select:focus,
.nx-input-group textarea:focus { border-color: var(--nx-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.nx-input-group input[type="file"] { padding: 11px 14px; background: var(--nx-surface-2); cursor: pointer; }

.nx-alert {
  border-radius: var(--nx-radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  margin-top: 18px;
}
.nx-alert--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.nx-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* --------------------------------------------------------------------------
   22. Numbered value blocks (integrations page)
   -------------------------------------------------------------------------- */
.nx-value { display: flex; gap: 16px; margin-bottom: 26px; }
.nx-value .n {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--nx-gradient-soft);
  border: 1px solid rgba(37, 99, 235, .16);
  color: var(--nx-primary);
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 15px;
}
.nx-value p { margin: 0; font-size: 16px; }

/* --------------------------------------------------------------------------
   23. Empty state
   -------------------------------------------------------------------------- */
.nx-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--nx-line);
  border-radius: var(--nx-radius);
  background: var(--nx-surface-2);
  color: var(--nx-muted);
}
.nx-empty i { font-size: 40px; display: block; margin-bottom: 14px; opacity: .5; }
.nx-empty p { margin: 0; font-size: 15.5px; }

/* --------------------------------------------------------------------------
   24. Responsive tweaks for page components
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .nx-page-hero { padding: 56px 0 48px; }
  .nx-gallery-slider .swiper-slide img { height: 320px; }
  .nx-form-card { padding: 28px 22px; }
}

@media (max-width: 575.98px) {
  .nx-row-media img { height: 220px; }
  .nx-gallery-item img { height: 190px; }
  .nx-spec li { flex-direction: column; gap: 2px; }
  .nx-spec .v { text-align: left; }
}

@media (max-width: 359.98px) {
  .nx-chip-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  #header, #footer, .back-to-top, .nx-backdrop { display: none !important; }
  body { padding-top: 0; }
}
