/* ============================================================
   NXPR Virtual Commerce Services — Design Tokens & Base Styles
   Used by every artboard in the canvas.
   ============================================================ */

:root {
  /* Color */
  --nx-navy-900: #060f24;
  --nx-navy-800: #0a1f44;   /* primary */
  --nx-navy-700: #14274d;
  --nx-navy-600: #1f3461;
  --nx-ink-900:  #0d1220;
  --nx-ink-800:  #1a1f2e;   /* body text */
  --nx-ink-600:  #4a5169;
  --nx-ink-500:  #6b7388;
  --nx-ink-400:  #9097ab;
  --nx-line:     #e3e6ee;
  --nx-line-2:   #ecf0f6;
  --nx-bg:       #ffffff;
  --nx-bg-soft:  #f5f7fa;
  --nx-bg-2:     #fafbfd;
  --nx-blue:     #0066ff;   /* accent */
  --nx-blue-600: #0057db;
  --nx-blue-50:  #e8f0ff;
  --nx-mint:     #14a187;   /* success / verified */

  /* Type */
  --nx-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nx-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;

  /* Radius / shadow */
  --nx-r-sm: 6px;
  --nx-r-md: 10px;
  --nx-r-lg: 14px;
  --nx-shadow-1: 0 1px 2px rgba(10, 31, 68, 0.04), 0 1px 1px rgba(10, 31, 68, 0.03);
  --nx-shadow-2: 0 8px 24px -8px rgba(10, 31, 68, 0.12), 0 2px 6px rgba(10, 31, 68, 0.05);
  --nx-shadow-3: 0 24px 64px -16px rgba(10, 31, 68, 0.18), 0 8px 16px -8px rgba(10, 31, 68, 0.08);

  /* Layout */
  --nx-container: 1200px;
}

/* ---------- Reset within an artboard ---------- */
.nx-page * { box-sizing: border-box; }
.nx-page {
  font-family: var(--nx-sans);
  font-feature-settings: 'cv11', 'ss01';
  color: var(--nx-ink-800);
  background: var(--nx-bg);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.nx-page h1, .nx-page h2, .nx-page h3, .nx-page h4 {
  margin: 0; color: var(--nx-navy-800); font-weight: 600;
  letter-spacing: -0.022em; line-height: 1.15;
}
.nx-page p { margin: 0; }
.nx-page a { color: inherit; text-decoration: none; }
.nx-page button { font: inherit; cursor: pointer; }
.nx-page ul, .nx-page ol { margin: 0; padding: 0; list-style: none; }
.nx-page svg { display: block; }

/* ---------- Typography scale ---------- */
.nx-display { font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.nx-h1      { font-size: 48px; line-height: 1.1;  letter-spacing: -0.025em; font-weight: 600; }
.nx-h2      { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em;  font-weight: 600; }
.nx-h3      { font-size: 22px; line-height: 1.3;  letter-spacing: -0.012em; font-weight: 600; }
.nx-h4      { font-size: 17px; line-height: 1.35; font-weight: 600; }
.nx-lead    { font-size: 19px; line-height: 1.6;  color: var(--nx-ink-600); font-weight: 400; }
.nx-body    { font-size: 16px; line-height: 1.7;  color: var(--nx-ink-600); }
.nx-small   { font-size: 14px; line-height: 1.55; color: var(--nx-ink-500); }
.nx-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--nx-blue);
}
.nx-mono {
  font-family: var(--nx-mono); font-feature-settings: 'zero', 'ss02';
  font-size: 13px; letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--nx-r-md);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent; transition: all .15s ease;
  white-space: nowrap;
}
.nx-btn--primary,
a.nx-btn--primary,
.nx-page a.nx-btn--primary {
  background: var(--nx-navy-800); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--nx-shadow-1);
}
.nx-btn--primary:hover,
a.nx-btn--primary:hover { background: var(--nx-navy-700); color: #fff; }
.nx-btn--secondary,
a.nx-btn--secondary,
.nx-page a.nx-btn--secondary {
  background: #fff; color: var(--nx-navy-800);
  border-color: var(--nx-line);
}
.nx-btn--secondary:hover,
a.nx-btn--secondary:hover { border-color: var(--nx-ink-400); color: var(--nx-navy-800); }
.nx-btn--accent,
a.nx-btn--accent,
.nx-page a.nx-btn--accent {
  background: var(--nx-blue); color: #fff;
}
.nx-btn--accent:hover,
a.nx-btn--accent:hover { background: var(--nx-blue-600); color: #fff; }
.nx-btn--ghost,
a.nx-btn--ghost,
.nx-page a.nx-btn--ghost {
  background: transparent; color: var(--nx-ink-800);
}
.nx-btn--ghost:hover,
a.nx-btn--ghost:hover { background: var(--nx-bg-soft); color: var(--nx-ink-800); }
.nx-btn--lg { padding: 16px 28px; font-size: 16px; border-radius: var(--nx-r-md); }
.nx-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: var(--nx-r-sm); }

/* ---------- Layout primitives ---------- */
.nx-container {
  max-width: var(--nx-container); margin: 0 auto;
  padding-left: 32px; padding-right: 32px;
}
.nx-section { padding: 96px 0; }
.nx-section--tight { padding: 64px 0; }
.nx-divider { height: 1px; background: var(--nx-line); border: 0; }

/* ---------- Top nav ---------- */
.nx-nav {
  position: relative; z-index: 5;
  border-bottom: 1px solid rgba(227, 230, 238, 0.6);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
}
.nx-nav__inner {
  max-width: var(--nx-container);
  margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 40px;
}
.nx-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; color: var(--nx-navy-800);
  letter-spacing: -0.01em;
}
.nx-logo__mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--nx-navy-800);
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  font-family: var(--nx-mono);
  position: relative; overflow: hidden;
}
.nx-logo__mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,102,255,0.35) 100%);
}
.nx-nav__links {
  display: flex; gap: 4px; flex: 1;
}
.nx-nav__links a {
  padding: 8px 14px; border-radius: var(--nx-r-sm);
  color: var(--nx-ink-600); font-size: 14.5px; font-weight: 450;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.nx-nav__links a:hover { color: var(--nx-navy-800); background: var(--nx-bg-soft); }
.nx-nav__links a[aria-current="page"] { color: var(--nx-navy-800); }

/* ---------- Cards ---------- */
.nx-card {
  background: #fff; border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: 28px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nx-card:hover { border-color: var(--nx-ink-400); box-shadow: var(--nx-shadow-2); }

.nx-icon-tile {
  width: 40px; height: 40px; border-radius: var(--nx-r-sm);
  background: var(--nx-blue-50); color: var(--nx-blue);
  display: grid; place-items: center;
}
.nx-icon-tile svg { width: 20px; height: 20px; stroke-width: 1.75; }

/* ---------- Footer ---------- */
.nx-footer {
  background: var(--nx-navy-900); color: #c2c8d4;
  padding: 72px 0 32px;
}
.nx-footer__inner {
  max-width: var(--nx-container); margin: 0 auto; padding: 0 32px;
}
.nx-footer__cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nx-footer h4 {
  color: #fff; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
}
.nx-footer ul { display: flex; flex-direction: column; gap: 12px; }
.nx-footer li a { color: #c2c8d4; font-size: 14px; transition: color .12s; }
.nx-footer li a:hover { color: #fff; }
.nx-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 13px; color: #7a8294;
}

/* ---------- Misc ---------- */
.nx-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--nx-blue-50); color: var(--nx-blue);
  font-size: 12px; font-weight: 500; letter-spacing: -0.005em;
}
.nx-pill__dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--nx-blue);
}

.nx-fact-strip {
  display: flex; gap: 48px; align-items: center;
  padding: 22px 28px; border-radius: var(--nx-r-lg);
  background: var(--nx-bg-soft); border: 1px solid var(--nx-line);
}
.nx-fact { display: flex; flex-direction: column; gap: 2px; }
.nx-fact__k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--nx-ink-500); font-weight: 500; }
.nx-fact__v { font-family: var(--nx-mono); font-size: 14px; color: var(--nx-navy-800); }

/* ============================================================
   v2 — Alternating dark / light section system
   ============================================================ */

/* ---------- Dark section base ---------- */
.nx-dark {
  background: var(--nx-navy-800);
  color: #e7ebf3;
  position: relative;
  overflow: hidden;
}
.nx-dark h1, .nx-dark h2, .nx-dark h3, .nx-dark h4 { color: #fff; }
.nx-dark .nx-lead   { color: #b9c0d2; }
.nx-dark .nx-body   { color: #b9c0d2; }
.nx-dark .nx-small  { color: #8b94aa; }
.nx-dark .nx-eyebrow { color: #5aa0ff; }

.nx-dark--deep { background: #050e25; }

/* Pattern overlays — render via ::before so content sits above */
.nx-pattern { position: relative; isolation: isolate; }
.nx-pattern > * { position: relative; z-index: 1; }
.nx-pattern::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  z-index: 0;
}

/* Dot grid — for hero on dark */
.nx-pattern--dots::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 40%, #000 40%, transparent 100%);
}

/* Diagonal lines — for "Why NXPR" on dark */
.nx-pattern--diag::before {
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.05) 0 1px,
    transparent 1px 40px);
}

/* Glow blob — for hero / CTA */
.nx-blob {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.nx-blob--cyan { background: radial-gradient(circle, #00bfff 0%, transparent 70%); }
.nx-blob--blue { background: radial-gradient(circle, #0066ff 0%, transparent 70%); }

/* ---------- Logo on dark backgrounds (neon variant) ---------- */
.nx-page a.nx-logo--dark,
.nx-logo--dark { color: #fff; }
.nx-logo--dark .nx-logo__mark {
  background: linear-gradient(135deg, #0066ff 0%, #00bfff 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.45);
}
.nx-logo--dark .nx-logo__mark::after { display: none; }

/* ---------- Dark nav ---------- */
.nx-nav--dark {
  background: var(--nx-navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}
.nx-nav--dark .nx-nav__links a { color: #b9c0d2; }
.nx-nav--dark .nx-nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nx-nav--dark .nx-nav__links a[aria-current="page"] { color: #fff; }

/* ---------- Buttons on dark ---------- */
.nx-btn--on-dark-primary {
  background: #fff; color: var(--nx-navy-800);
  border: 1px solid #fff;
}
.nx-btn--on-dark-primary:hover { background: #e8f0ff; border-color: #e8f0ff; }
.nx-btn--on-dark-secondary {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.nx-btn--on-dark-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.04); }
.nx-btn--on-dark-accent {
  background: linear-gradient(135deg, #0066ff 0%, #00bfff 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 191, 255, 0.35);
  border: none;
}
.nx-btn--on-dark-accent:hover { filter: brightness(1.08); }

/* Dark fact strip */
.nx-fact-strip--dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nx-fact-strip--dark .nx-fact__k { color: #8b94aa; }
.nx-fact-strip--dark .nx-fact__v { color: #fff; }
.nx-fact-strip--dark > div[style*="background"] { background: rgba(255,255,255,0.08) !important; }

/* Dark trust bar variant */
.nx-trustbar-light {
  background: var(--nx-bg-soft);
  border-top: 1px solid var(--nx-line);
  border-bottom: 1px solid var(--nx-line);
}

/* Dark pill */
.nx-pill--dark {
  background: rgba(0, 191, 255, 0.10);
  color: #5aa0ff;
  border: 1px solid rgba(0, 191, 255, 0.18);
}
.nx-pill--dark .nx-pill__dot { background: #00bfff; box-shadow: 0 0 8px #00bfff; }

/* Card on dark sections */
.nx-card--dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e7ebf3;
}
.nx-card--dark .nx-h4 { color: #fff; }
.nx-card--dark .nx-icon-tile {
  background: rgba(0, 191, 255, 0.10);
  color: #5aa0ff;
}

/* ---------- Service card hover lift (light bg) ---------- */
.nx-card--lift { will-change: transform; }
.nx-card--lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(10, 31, 68, 0.18);
  border-color: var(--nx-line);
}

/* ---------- Mobile-specific (used inside the 375px artboard) ---------- */
.nx-page--mobile { font-size: 15px; }
.nx-page--mobile .nx-display { font-size: 36px; line-height: 1.1; }
.nx-page--mobile .nx-h2 { font-size: 26px; }
.nx-page--mobile .nx-h3 { font-size: 18px; }
.nx-page--mobile .nx-lead { font-size: 16px; }
.nx-page--mobile .nx-section { padding: 56px 0; }
.nx-page--mobile .nx-container { padding: 0 20px; }

/* ============================================================
   NXPR Cookie Banner
   ============================================================ */
#nxpr-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--nx-navy-900);
  color: #fff;
  border-top: 1px solid rgba(0, 191, 255, 0.15);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  font-family: var(--nx-sans);
}

#nxpr-cookie-banner.nxpr-cb--visible {
  transform: translateY(0);
}

.nxpr-cb__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}

.nxpr-cb__text {
  font-size: 14px;
  line-height: 1.6;
  color: #cdd6e8;
  flex: 1;
  min-width: 0;
}

.nxpr-cb__text strong {
  color: #fff;
  font-weight: 600;
}

.nxpr-cb__text a {
  color: #5aa0ff;
  text-decoration: underline;
  text-decoration-color: rgba(90, 160, 255, 0.4);
  text-underline-offset: 2px;
}

.nxpr-cb__text a:hover {
  color: #80b5ff;
  text-decoration-color: #80b5ff;
}

.nxpr-cb__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.nxpr-cb__btn {
  font-family: var(--nx-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.nxpr-cb__btn--primary {
  background: var(--nx-blue);
  color: #fff;
}

.nxpr-cb__btn--primary:hover {
  background: var(--nx-blue-600);
}

.nxpr-cb__btn--primary:active {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .nxpr-cb__inner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    align-items: stretch;
  }
  .nxpr-cb__actions {
    justify-content: flex-end;
  }
  .nxpr-cb__text {
    font-size: 13px;
  }
}

/* ============================================================
   NXPR Logo image variants (header)
   ============================================================ */
.nx-logo--img {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.nx-logo--img img {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .nx-logo--img img { height: 30px; }
}

/* ============================================================
   NXPR 404 page
   ============================================================ */
.nx-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px;
  text-align: center;
}

.nx-404__inner {
  max-width: 580px;
}

.nx-404__code {
  font-family: var(--nx-mono);
  font-size: 72px;
  font-weight: 500;
  color: var(--nx-blue);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 0 0 24px rgba(0, 191, 255, 0.25);
}

.nx-404__title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.nx-404__text {
  font-size: 16px;
  color: #b9c0d2;
  line-height: 1.6;
  margin-bottom: 36px;
}

.nx-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE LAYER (≤768px)
   Overrides inline styles via [style*="..."] selectors.
   Loaded LAST so it wins specificity wars.
   ============================================================ */

@media (max-width: 768px) {

  /* Universal: prevent any element from forcing horizontal scroll */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }

  /* ---- Container padding (tighter on mobile) ---- */
  .nx-container { padding: 0 18px; }

  /* ---- Nav: hide desktop links, show only logo + Contact button ---- */
  .nx-nav__inner {
    padding: 14px 18px !important;
    gap: 12px !important;
  }
  .nx-nav__links {
    display: none !important;
  }
  .nx-logo--img img { height: 30px !important; }
  /* Contact us button stays visible but smaller */
  .nx-nav__inner .nx-btn--sm {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  /* ---- Hero mesh SVG: hide on mobile (decorative only, causes overflow) ---- */
  div[style*="perspective(900px)"] {
    display: none !important;
  }
  /* Reduce blob sizes (background ambience) */
  .nx-blob {
    max-width: 320px !important;
    max-height: 320px !important;
  }

  /* ---- Hero typography ---- */
  .nx-display { font-size: 36px !important; line-height: 1.1 !important; }
  .nx-h1 { font-size: 30px !important; line-height: 1.15 !important; }
  .nx-h2 { font-size: 24px !important; line-height: 1.2 !important; }
  .nx-h3 { font-size: 18px !important; }
  .nx-lead { font-size: 16px !important; }
  .nx-body { font-size: 15px !important; }

  /* ---- Hero section padding ---- */
  section[class*="nx-dark"] > div[style*="padding:96px"] { padding: 56px 0 64px !important; }
  .nx-section { padding: 56px 0 !important; }

  /* ---- Fact strip: stack vertical ---- */
  .nx-fact-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px 18px !important;
  }
  .nx-fact-strip > div[style*="width:1px"] {
    width: 100% !important;
    height: 1px !important;
  }

  /* ---- Trust bar: wrap, stack ---- */
  section[style*="border-bottom"] > .nx-container[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 20px 18px !important;
  }

  /* ---- All grid layouts → single column ---- */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1.6fr"],
  div[style*="grid-template-columns:1fr 2.4fr"],
  div[style*="grid-template-columns:1.4fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ---- Sidebar TOC: not sticky on mobile, full width ---- */
  aside[style*="position:sticky"] {
    position: static !important;
    margin-bottom: 24px !important;
  }
  aside[style*="position:sticky"] ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 1px solid var(--nx-line);
    border-radius: 10px;
    overflow: hidden;
  }
  aside[style*="position:sticky"] ul li a {
    border-radius: 0 !important;
    border-left: none !important;
    border-bottom: 1px solid var(--nx-line);
    padding: 12px 14px !important;
  }
  aside[style*="position:sticky"] ul li:last-child a {
    border-bottom: none;
  }

  /* ---- Cards: tighter padding ---- */
  article[style*="padding:28px"],
  article[style*="padding:32px"],
  div[style*="padding:36px"],
  a[class*="nx-card-lift"][style*="padding:32px"] {
    padding: 22px !important;
  }

  /* ---- Nav grid in footer: stack ---- */
  footer .nx-container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 32px !important;
  }
  footer .nx-container { padding: 48px 18px 24px !important; }
  /* Footer bottom row: stack */
  footer div[style*="border-top:1px solid"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
  }

  /* ---- CTA flex row: stack ---- */
  section.nx-section > .nx-container > div[style*="justify-content:space-between"][style*="align-items:center"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* ---- Tables (e.g. cookie policy) ---- */
  table { font-size: 12px !important; }
  table th, table td { padding: 8px 6px !important; }

  /* ---- Address blocks: smaller mono font ---- */
  address[style*="font-family:var(--nx-mono)"] {
    font-size: 13px !important;
    padding: 14px 16px !important;
  }

  /* ---- Buttons in hero: full width / wrap ---- */
  div[style*="display:flex"][style*="gap:12px"][style*="margin-bottom:56px"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .nx-btn--lg { width: 100%; justify-content: center; }

  /* ---- 404 page ---- */
  .nx-404 { padding: 64px 18px !important; }
  .nx-404__code { font-size: 56px !important; }
  .nx-404__title { font-size: 24px !important; }
  .nx-404__actions { flex-direction: column; align-items: stretch; }

  /* ---- Cookie banner: tighter ---- */
  .nxpr-cb__inner { padding: 14px 18px !important; }
  .nxpr-cb__text { font-size: 12px !important; }

  /* ---- TOC links inside content (anchor links above each section heading) ---- */
  /* Make sure they don't force layout out of viewport */

  /* ---- Map iframe ---- */
  iframe { max-width: 100% !important; }

  /* ---- "Why NXPR" section blob containment ---- */
  section.nx-section[class*="nx-pattern"] {
    overflow: hidden !important;
  }
}

/* ============================================================
   Tablet/small desktop (769px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  div[style*="grid-template-columns:1.4fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* ============================================================
   Mobile hamburger menu (≤768px)
   Activated by toggling .nx-nav__links--open class via JS
   ============================================================ */

.nx-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.nx-mobile-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.nx-mobile-toggle svg { width: 20px; height: 20px; color: #cdd6e8; display: block; }
.nx-nav--dark .nx-mobile-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* Mobile CTA inside nav drawer - hidden by default (desktop) */
.nx-mobile-cta { display: none; }

@media (max-width: 768px) {
  .nx-mobile-toggle { display: inline-flex; }

  /* Hide standalone Contact us button to make room for hamburger */
  .nx-nav__inner > div:last-child .nx-btn--sm {
    display: none !important;
  }

  /* Mobile nav drawer */
  .nx-nav__links {
    display: none !important;
  }
  .nx-nav__links--open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--nx-navy-900) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    padding: 12px 18px !important;
    gap: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  }
  .nx-nav__links--open a {
    display: block !important;
    padding: 14px 12px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #cdd6e8 !important;
  }
  .nx-nav__links--open a:last-child {
    border-bottom: none !important;
  }
  .nx-nav__links--open a[aria-current="page"] {
    color: #5aa0ff !important;
    font-weight: 500;
  }
  .nx-nav__links--open .nx-mobile-cta {
    display: block !important;
    margin-top: 8px !important;
    background: var(--nx-blue) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 14px !important;
    text-align: center !important;
    font-weight: 500 !important;
    border-bottom: none !important;
  }
}

/* ============================================================
   CARD ALIGNMENT - equal heights & footer alignment in grids
   For card patterns where multiple cards share a row, tytuły mają
   różną długość a opisy też - ale chcemy żeby "Learn more" link
   był zawsze na dole karty w równej linii.
   ============================================================ */

/* All article/div grid items in card layouts: become flex columns */
section article.nx-card--lift,
section article[style*="background:rgba(255,255,255,0.03)"],
section a.nx-card-lift,
section div[style*="border:1px solid var(--nx-line)"][style*="border-radius:12px"][style*="padding:36px"],
section div[style*="border:1px solid var(--nx-line)"][style*="border-radius:10px"][style*="padding:18px"] {
  display: flex !important;
  flex-direction: column !important;
}

/* The description paragraph inside each card grows to fill space */
section article.nx-card--lift > p,
section a.nx-card-lift > p {
  flex: 1 1 auto;
}

/* "Learn more" links and similar bottom-aligned elements */
section article.nx-card--lift > a:last-child,
section a.nx-card-lift > div:last-child {
  margin-top: auto;
}

/* "Why NXPR" cards on dark - align inner content top */
section.nx-pattern--diag article > p {
  flex: 1 1 auto;
}

/* About / Legal Notice corporate info cards - equal heights in row */
.nx-container > div > div[style*="grid-template-columns:1fr 1fr"] > div[style*="border:1px solid var(--nx-line)"],
.nx-container article > div[style*="grid-template-columns:1fr 1fr"] > div[style*="border:1px solid var(--nx-line)"] {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 76px;
}

/* ============================================================
   Service cards specific - 6 cards in 3-col grid
   Make titles always take same vertical space (2 lines worth)
   ============================================================ */
@media (min-width: 769px) {
  section article.nx-card--lift > h3.nx-h3 {
    min-height: 2.4em;
    display: flex;
    align-items: flex-start;
  }
}
