/* ============================================================
   RATNA HEALTHPLEX — Design System
   design-system.css | v1.0
   ============================================================ */

/* ---- Local Aptos Fonts ---- */
@font-face { font-family: 'Aptos'; src: url('../Aptos-Fonts/Aptos-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../Aptos-Fonts/Aptos.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../Aptos-Fonts/Aptos.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../Aptos-Fonts/Aptos-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../Aptos-Fonts/Aptos-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos'; src: url('../Aptos-Fonts/Aptos-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos Display'; src: url('../Aptos-Fonts/Aptos-Display.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aptos Display'; src: url('../Aptos-Fonts/Aptos-Display-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-primary-50:  #e8f0fb;
  --color-primary-100: #c5d8f5;
  --color-primary-200: #93b5ec;
  --color-primary-300: #5c8de1;
  --color-primary-400: #2f6dd6;
  --color-primary-500: #0651a2;
  --color-primary-600: #054492;
  --color-primary-700: #043576;
  --color-primary-800: #02255a;
  --color-primary-900: #011640;

  --color-accent-50:  #fef3e6;
  --color-accent-100: #fce0b4;
  --color-accent-200: #f9c878;
  --color-accent-300: #f5a93d;
  --color-accent-400: #ec8e17;
  --color-accent-500: #e9830c;
  --color-accent-600: #c26d09;
  --color-accent-700: #9b5707;
  --color-accent-800: #774205;
  --color-accent-900: #5a3004;

  /* --- Neutral --- */
  --color-neutral-0:   #ffffff;
  --color-neutral-50:  #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;

  /* --- Semantic --- */
  --color-success-50:  #f0fdf4;
  --color-success-500: #22c55e;
  --color-success-700: #15803d;
  --color-warning-50:  #fffbeb;
  --color-warning-500: #f59e0b;
  --color-warning-700: #b45309;
  --color-danger-50:   #fef2f2;
  --color-danger-500:  #ef4444;
  --color-danger-700:  #b91c1c;
  --color-info-50:     #eff6ff;
  --color-info-500:    #3b82f6;
  --color-info-700:    #1d4ed8;

  /* --- Surfaces (light theme) --- */
  --surface-page:      var(--color-neutral-50);
  --surface-card:      var(--color-neutral-0);
  --surface-card-alt:  var(--color-neutral-100);
  --surface-nav:       rgba(255,255,255,0.96);
  --surface-hero:      var(--color-neutral-0);
  --surface-section-alt: var(--color-primary-50);
  --surface-dark:      var(--color-neutral-900);

  /* --- Text --- */
  --text-primary:   var(--color-neutral-900);
  --text-secondary: var(--color-neutral-600);
  --text-muted:     var(--color-neutral-400);
  --text-inverse:   var(--color-neutral-0);
  --text-brand:     var(--color-primary-600);
  --text-accent:    var(--color-accent-600);

  /* --- Borders --- */
  --border-default: var(--color-neutral-200);
  --border-subtle:  var(--color-neutral-100);
  --border-strong:  var(--color-neutral-300);
  --border-brand:   var(--color-primary-300);

  /* --- Typography --- */
  --font-display: 'Aptos Display', 'Aptos', 'Segoe UI', sans-serif;
  --font-body:    'Aptos', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.875rem;  /* 14px — minimum */
  --text-sm:   0.9375rem; /* 15px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-wider:  0.08em;

  --fw-light:      300;
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;
  --fw-extrabold:  800;

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-3xl:  28px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-xs:  0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md:  0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-lg:  0 10px 24px -3px rgb(0 0 0 / 0.1), 0 4px 8px -4px rgb(0 0 0 / 0.07);
  --shadow-xl:  0 20px 40px -5px rgb(0 0 0 / 0.12), 0 8px 16px -6px rgb(0 0 0 / 0.08);
  --shadow-2xl: 0 40px 80px -10px rgb(0 0 0 / 0.18);
  --shadow-brand: 0 8px 24px -4px rgb(6 81 162 / 0.35);
  --shadow-card-hover: 0 16px 36px -6px rgb(0 0 0 / 0.13);

  /* --- Transitions --- */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --container-max:   1280px;
  --container-xl:    1140px;
  --container-lg:    960px;
  --nav-height:      72px;
  --banner-height:   0px;
  --section-py:      var(--space-24);
}

/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* --- Accessible Focus States (WCAG 2.2) --- */
:focus-visible {
  outline: 3px solid var(--color-primary-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary-600);
  color: white;
  font-weight: var(--fw-semibold);
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   3. TYPOGRAPHY SYSTEM
   ============================================================ */
.display-2xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--text-7xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-6xl));
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, var(--text-3xl));
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
}
.heading-md {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
}
.heading-sm {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
}
.body-lg  { font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.body-md  { font-size: var(--text-lg); line-height: var(--leading-normal); }
.body-sm  { font-size: var(--text-sm); line-height: var(--leading-normal); }
.label-lg { font-size: var(--text-sm); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.label-sm { font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; }

.text-gradient {
  color: var(--color-accent-500);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (max-width: 576px) {
  .container { padding-inline: var(--space-4); }
}

.section { padding-block: var(--section-py); }
.section-sm { padding-block: var(--space-16); }
.section-lg { padding-block: calc(var(--section-py) * 1.5); }

.section-header {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  /* margin-bottom: var(--space-16); */
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-primary-200);
}
.section-eyebrow i { font-size: 14px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   5. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn:focus-visible {
  outline: 3px solid var(--color-primary-500);
  outline-offset: 3px;
}

/* Primary */
.btn-primary {
  background: var(--color-primary-600);
  color: white;
  border-color: var(--color-primary-600);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
  box-shadow: 0 10px 28px -4px rgb(6 81 162 / 0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary */
.btn-secondary {
  background: var(--color-accent-500);
  color: white;
  border-color: var(--color-accent-500);
  box-shadow: 0 8px 24px -4px rgb(233 131 12 / 0.3);
}
.btn-secondary:hover {
  background: var(--color-accent-600);
  border-color: var(--color-accent-600);
  box-shadow: 0 10px 28px -4px rgb(233 131 12 / 0.4);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-ghost:hover {
  background: var(--color-neutral-100);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Dark */
.btn-dark {
  background: var(--color-neutral-900);
  color: white;
  border-color: var(--color-neutral-900);
}
.btn-dark:hover {
  background: var(--color-neutral-800);
  transform: translateY(-1px);
}

/* Sizes */
.btn-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); border-radius: var(--radius-md); }
.btn-lg  { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-xl); }
.btn-xl  { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); border-radius: var(--radius-xl); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-lg); }
.btn-icon-sm { width: 32px; height: 32px; padding: 0; border-radius: var(--radius-md); }

/* ============================================================
   6. BADGE / TAG SYSTEM
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-primary { background: var(--color-primary-50); color: var(--color-primary-700); border-color: var(--color-primary-200); }
.badge-success { background: var(--color-success-50); color: var(--color-success-700); border-color: #bbf7d0; }
.badge-warning { background: var(--color-warning-50); color: var(--color-warning-700); border-color: #fde68a; }
.badge-danger  { background: var(--color-danger-50);  color: var(--color-danger-700);  border-color: #fecaca; }
.badge-info    { background: var(--color-info-50);    color: var(--color-info-700);    border-color: #bfdbfe; }
.badge-neutral { background: var(--color-neutral-100); color: var(--color-neutral-700); border-color: var(--border-default); }
.badge-dark    { background: var(--color-neutral-900); color: white; }

/* ============================================================
   7. CARD SYSTEM
   ============================================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-sm  { padding: var(--space-5); border-radius: var(--radius-xl); }
.card-lg  { padding: var(--space-10); border-radius: var(--radius-3xl); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin-bottom: var(--space-5);
}
.card-icon-primary { background: var(--color-primary-50); color: var(--color-primary-600); }
.card-icon-accent  { background: var(--color-accent-50);  color: var(--color-accent-600); }
.card-icon-dark    { background: var(--color-neutral-900); color: white; }

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}
.card-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

/* Featured card */
.card-featured {
  border-color: var(--color-primary-200);
  background: linear-gradient(145deg, var(--color-primary-50) 0%, white 60%);
  position: relative;
  overflow: hidden;
}
.card-featured::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--color-primary-200) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

/* ============================================================
   8. FORM SYSTEM
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.form-label .required { color: var(--color-danger-500); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: white;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgb(6 81 162 / 0.12);
}
.form-control.is-invalid { border-color: var(--color-danger-500); }
.form-control.is-valid   { border-color: var(--color-success-500); }

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger-600);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================================
   9. ANNOUNCEMENT BANNER + NAVIGATION SYSTEM
   ============================================================ */

/* Pages that render an announcement banner set this class on <body>
   so the navbar and hero automatically shift down to avoid overlap. */
.has-banner {
  --banner-height: 42px;
}

.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--color-primary-600);
}

.navbar {
  position: fixed;
  top: var(--banner-height); left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0;
  background: var(--surface-nav);
  border-bottom: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: all var(--transition-base);
  flex-wrap: nowrap;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--space-6);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
  padding: 0;
  margin-right: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--color-primary-600);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.brand-name span { color: var(--color-primary-600); }

.navbar-logo { height: 44px; width: auto; display: block; }
.footer-logo { height: 32px; width: auto; display: block; }

.navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-item { position: relative; }
/* Invisible bridge over the gap between the nav link and the mega-menu below it.
   Without this, moving the mouse from the link toward the menu crosses a dead
   zone with no hoverable element, dropping :hover and closing the menu before
   the user can reach it. */
.nav-item::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary-600);
  background: var(--color-primary-50);
}
.nav-link svg.lucide { transition: transform var(--transition-fast); }
.nav-item.open > .nav-link svg.lucide { transform: rotate(180deg); }

/* ── Mega Menu v2 ── */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  max-width: calc(100vw - 32px);
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(6,81,162,0.13), 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
  transform: translateX(-50%) translateY(6px);
  z-index: 200;
}
.mega-menu.show,
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-item[data-align="left"] .mega-menu {
  left: -20px;
  transform: translateY(6px);
}
.nav-item[data-align="left"] .mega-menu.show,
.nav-item[data-align="left"]:hover .mega-menu {
  transform: translateY(0);
}
/* Anchoring to the nav-item's own (narrow) box pushes this wide menu
   off the left edge of the viewport whenever "Management" isn't
   already near the page's right margin (e.g. below ~1400px, since FAQ
   and Differentiators still sit to its right). Fix it to the viewport
   instead, flush with the same right gutter .container uses, so it
   stays fully visible regardless of where the trigger sits in the row. */
/* .nav-item[data-align="right"] .mega-menu {
  position: fixed;
  top: calc(var(--banner-height) + var(--nav-height) + 2px);
  left: auto;
  right: max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-6)));
  transform: translateY(6px);
} */
/* .nav-item[data-align="right"] .mega-menu.show,
.nav-item[data-align="right"]:hover .mega-menu {
  transform: translateY(0);
} */

/* Inner layout */
.mega-menu-inner {
  display: flex;
  padding: var(--space-5);
  gap: var(--space-5);
}
.mega-menu-content { flex: 1; min-width: 0; }

/* Section header */
.mega-menu-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-neutral-100);
}
.mega-menu-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-menu-header-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.mega-menu-header-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
}

/* Items grid */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  color: inherit;
}
.mega-menu-item:hover { background: var(--color-primary-50); }
.mega-menu-item:hover .mega-menu-title { color: var(--color-primary-600); }
.mega-item-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-item-icon svg.lucide { width: 16px; height: 16px; }

/* Icon color variants */
.mega-icon-primary { background: #eff6ff; color: var(--color-primary-600); }
.mega-icon-blue    { background: #eff6ff; color: #2563eb; }
.mega-icon-indigo  { background: #eef2ff; color: #4f46e5; }
.mega-icon-violet  { background: #f5f3ff; color: #7c3aed; }
.mega-icon-cyan    { background: #ecfeff; color: #0891b2; }
.mega-icon-teal    { background: #f0fdfa; color: #0d9488; }
.mega-icon-green   { background: #f0fdf4; color: #16a34a; }
.mega-icon-orange  { background: #fff7ed; color: var(--color-accent-500); }

.mega-menu-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  transition: color var(--transition-fast);
  margin-bottom: 2px;
  line-height: 1.3;
}
.mega-menu-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

/* Featured sidebar */
.mega-menu-featured {
  width: 275px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-left: 1px solid var(--color-neutral-100);
  padding-left: var(--space-5);
}
.mega-doc-img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  background: var(--color-neutral-100);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: block;
}

.mega-infographic {
  width: 100%;
  height: 168px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.mega-infographic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mega-feat-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  padding-left: var(--space-2);
  border-left: 2px solid var(--color-primary-200);
}
.mega-feat-credit {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  display: none;
}

/* Stats card (Management) */
.mega-feat-stat-card {
  background: linear-gradient(135deg, #032f6e 0%, var(--color-primary-600) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  text-align: center;
}
.mega-feat-num {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: white;
  line-height: 1.2;
}
.mega-feat-lbl {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* Quick-link tab row (Management dropdown) — mirrors .platform-tab styling */
.mega-menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5) var(--space-3);
  border-top: 2px solid var(--border-subtle);
}
.mega-menu-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.mega-menu-tab svg.lucide, .mega-menu-tab i { width: 15px; height: 15px; }
.mega-menu-tab:hover { color: var(--color-primary-600); background: var(--color-primary-50); }

/* Management dropdown — tighter spacing (fewer items than Features/Advanced
   left the featured sidebar taller than the grid, reading as excess gap) */
.nav-item[data-align="right"] .mega-menu-header { margin-bottom: var(--space-2); padding-bottom: var(--space-2); }
.nav-item[data-align="right"] .mega-menu-item { padding: var(--space-1) var(--space-3); }
.nav-item[data-align="right"] .mega-menu-featured { gap: var(--space-2); }

/* Footer bar */
.mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-neutral-100);
  background: var(--color-neutral-50);
}
.mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-primary-600);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.mega-footer-link:hover { gap: 7px; color: var(--color-primary-700); }
.mega-footer-link svg.lucide { width: 13px; height: 13px; }
.mega-footer-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.mega-footer-stat svg.lucide { width: 12px; height: 12px; color: #16a34a; }

/* Mobile hamburger */
.navbar-toggler {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default);
  background: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.navbar-toggler:hover { background: var(--color-neutral-100); color: var(--text-primary); }

/* ── Mobile Nav Accordion ── */
.mob-acc-group {
  border-bottom: 1px solid var(--color-neutral-100);
}
.mob-acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mob-acc-toggle:hover { background: var(--color-neutral-50); color: var(--color-primary-600); }
.mob-acc-toggle[aria-expanded="true"] { color: var(--color-primary-600); background: #eff6ff; }
.mob-acc-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.mob-acc-label svg.lucide { width: 15px; height: 15px; color: var(--color-primary-600); }
.mob-acc-chevron { width: 15px; height: 15px; transition: transform 0.25s ease; flex-shrink: 0; }
.mob-acc-toggle[aria-expanded="true"] .mob-acc-chevron { transform: rotate(180deg); }
.mob-acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  background: var(--color-neutral-50);
}
.mob-acc-panel.open { max-height: 600px; }
.mob-acc-panel .mobile-nav-link { padding-left: 44px; }
.mob-acc-flat { border-bottom: none; }
.mob-acc-flat .mobile-nav-link { padding-left: var(--space-5); border-bottom: 1px solid var(--color-neutral-100); }
.mob-acc-flat .mobile-nav-link:last-child { border-bottom: none; }

@media (max-width: 1200px) {
  .mega-menu { width: 540px; }
  .mega-menu-featured { display: none; }
}
@media (max-width: 992px) {
  .navbar-nav { display: none; }
  .navbar-toggler { display: flex; }
  .navbar-actions .btn-secondary { display: none; }
}

/* ============================================================
   10. HERO SLIDER SYSTEM
   ============================================================ */
.hero {
  margin-top: calc(var(--nav-height) + var(--banner-height));
  position: relative;
  overflow: hidden;
  background: var(--surface-hero);
}
.hero-slider {
  position: relative;
  height: calc(90vh - var(--nav-height));
  min-height: 580px;
  max-height: 720px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: all;
}
.hero-content {
  max-width: 640px;
  padding-block: var(--space-16);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-4);
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-700);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-primary-500);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: var(--fw-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}
.hero-desc {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  /* color: var(--text-muted); */
  font-weight: var(--fw-semibold);
  color: #f59e0b !important;
}
.trust-item i { color: var(--color-primary-500); font-size: 15px; }

/* Hero visual */
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: var(--space-8);
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-200);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  padding: 0;
}
.slider-dot.active {
  background: var(--color-primary-600);
  width: 28px;
}
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: white;
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}
.slider-arrow:hover {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: white;
  box-shadow: var(--shadow-brand);
}

/* ============================================================
   11. STATS / METRIC SYSTEM
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, #054492 0%, #0c2260 50%, #07122e 100%);
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8);
}
.stats-bar-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 20% 50%, rgba(233,131,12,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(59,130,246,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.stats-bar-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.stats-bar-inner {
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-4);
  position: relative;
  gap: var(--space-2);
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent);
}
.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.stat-item:hover .stat-icon-wrap {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.stat-icon-wrap svg.lucide {
  width: 19px;
  height: 19px;
  color: rgba(255,255,255,0.85);
}
.stat-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: var(--fw-extrabold);
  color: white;
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}
.stat-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-accent-400, #fb923c);
  font-weight: var(--fw-medium);
  margin-top: 2px;
}
.stat-sub svg.lucide { width: 11px; height: 11px; }

/* ============================================================
   12. FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   13. TABLE SYSTEM
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.table thead tr {
  border-bottom: 1px solid var(--border-default);
}
.table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: var(--fw-bold);
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.table th svg.lucide { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.table td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.table-feat-icon { display: inline-block; margin-right: var(--space-3); vertical-align: -4px; color: var(--color-primary-500); }
.table-feat-icon svg.lucide { width: 17px; height: 17px; }
.table tbody tr:nth-child(even) td { background: var(--color-primary-50); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--color-primary-100); }

.table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: var(--space-2);
  vertical-align: -6px;
}
.table-badge svg.lucide { width: 13px; height: 13px; }
.table-badge-check { background: var(--color-primary-600); color: #fff; }
.table-badge-cross { background: var(--color-neutral-200); color: var(--color-neutral-500); }
.table-yes { color: var(--color-primary-600); font-weight: var(--fw-semibold); }
.table-no { color: var(--color-neutral-500); font-weight: var(--fw-medium); }
.table-dash { color: var(--color-neutral-300); font-weight: var(--fw-semibold); }

/* ============================================================
   14. ACCORDION / FAQ
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion-item {
  background: white;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}
.accordion-item.open { border-color: var(--color-primary-300); box-shadow: var(--shadow-sm); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
}
.accordion-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: var(--leading-snug);
  flex: 1;
}
.accordion-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.accordion-item.open .accordion-icon {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  transform: rotate(45deg);
}
.accordion-body {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}
.accordion-item.open .accordion-body { display: block; }

/* ============================================================
   15. FOOTER SYSTEM
   ============================================================ */
.footer {
  background: var(--color-neutral-900);
  color: white;
  padding-top: var(--space-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  /* margin-bottom: var(--space-16); */
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 320px; }
.footer-brand-logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; margin-bottom: var(--space-4);
}
.footer-brand-desc {
  font-size: var(--text-lg);
  color: var(--color-neutral-200);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.footer-social {
  display: flex; gap: var(--space-3);
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-800);
  color: var(--color-neutral-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--color-primary-600);
  color: white;
}
.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: white;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); padding: 0px; }
.footer-link {
  font-size: var(--text-base);
  color: var(--color-neutral-100);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex; align-items: center; gap: var(--space-2);
}
.footer-link:hover { color: var(--color-primary-400); }
.footer-bottom {
  border-top: 1px solid var(--color-neutral-800);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-neutral-200);
}
.footer-bottom-links {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
}
.footer-bottom-link {
  font-size: var(--text-sm);
  color: var(--color-neutral-200);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-bottom-link:hover { color: var(--color-primary-400); }

/* ============================================================
   16. UTILITY CLASSES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }
.text-primary-color { color: var(--color-primary-600); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin-block: var(--space-8);
}

/* ============================================================
   18. NOTIFICATION / TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 380px;
}
.toast {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--color-success-500); }
.toast-error .toast-icon   { color: var(--color-danger-500); }
.toast-info .toast-icon    { color: var(--color-info-500); }
.toast-warning .toast-icon { color: var(--color-accent-500); }

/* ============================================================
   19. SECTION BACKGROUNDS
   ============================================================ */
.bg-white    { background: white; }
.bg-light    { background: var(--surface-page); }
.bg-primary-light { background: var(--color-primary-50); }
.bg-gradient-brand {
  background: var(--color-primary-500);
  color: white;
}
.bg-dark     { background: var(--color-neutral-900); color: white; }
.bg-dots {
  background-image: radial-gradient(circle, var(--color-neutral-200) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-grid {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================================
   20. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.animate-fade-up { animation: fadeUp 0.6s ease both; }
.animate-fade-up-delay-1 { animation: fadeUp 0.6s ease 0.1s both; }
.animate-fade-up-delay-2 { animation: fadeUp 0.6s ease 0.2s both; }
.animate-fade-up-delay-3 { animation: fadeUp 0.6s ease 0.3s both; }
.animate-fade-up-delay-4 { animation: fadeUp 0.6s ease 0.4s both; }
.float { animation: float 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   21. MOBILE NAVIGATION DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.mobile-nav.open { pointer-events: all; }
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.mobile-nav.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav-drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(360px, 90vw);
  background: white;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-body { flex: 1; padding: var(--space-4); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.mobile-nav-link:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}
.mobile-nav-link i { font-size: 18px; color: var(--color-primary-500); }
.mobile-nav-section-title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-4) var(--space-4) var(--space-2);
}
.mobile-nav-footer {
  padding: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================================
   22. LUCIDE ICON INTEGRATION
   ============================================================ */
svg.lucide {
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-link svg.lucide { width: 14px; height: 14px; }
.section-eyebrow svg.lucide { width: 14px; height: 14px; }
.trust-item svg.lucide { width: 15px; height: 15px; color: var(--color-primary-500); }
.fh-item svg.lucide { width: 15px; height: 15px; flex-shrink: 0; }
.mega-item-icon svg.lucide { width: 16px; height: 16px; }
.mobile-nav-link svg.lucide { width: 18px; height: 18px; color: var(--color-primary-500); }
.social-btn svg.lucide { width: 17px; height: 17px; }
.footer-link svg.lucide { width: 14px; height: 14px; }
.card-icon svg.lucide { width: 22px; height: 22px; }
.slider-arrow svg.lucide { width: 18px; height: 18px; }
.btn svg.lucide { width: 16px; height: 16px; }
.btn-lg svg.lucide, .btn-xl svg.lucide { width: 18px; height: 18px; }
.btn-sm svg.lucide { width: 14px; height: 14px; }
.infra-icon svg.lucide { width: 22px; height: 22px; }
.accordion-icon svg.lucide { width: 16px; height: 16px; }
.pcc-header > svg.lucide { width: 36px; height: 36px; }
.pcc-badge svg.lucide { width: 22px; height: 22px; }
.hms-icon svg.lucide { width: 18px; height: 18px; }
.hms-module-card svg.lucide { width: 26px; height: 26px; }
.arch-node svg.lucide { width: 20px; height: 20px; }
.scale-value-card svg.lucide { width: 28px; height: 28px; color: rgba(255,255,255,0.9); }
.dp-alert svg.lucide { width: 18px; height: 18px; color: var(--color-primary-500); flex-shrink: 0; }

/* ============================================================
   23. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  left: var(--space-6);
  bottom: var(--space-6);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-primary-600);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base), background var(--transition-fast);
  z-index: 900;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-primary-700);
  transform: translateY(-3px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--color-primary-300);
  outline-offset: 2px;
}
.back-to-top svg.lucide { width: 20px; height: 20px; }
@media (max-width: 575px) {
  .back-to-top {
    left: var(--space-4);
    bottom: var(--space-4);
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity var(--transition-fast), visibility var(--transition-fast); transform: none; }
  .back-to-top:hover, .back-to-top:focus-visible { transform: none; }
}

/* ============================================================
   24. CTA SECTION — WORLD MAP OVERLAY
   Targets every "cta-heading" section site-wide via its ARIA
   attribute (not a class), so it applies uniformly regardless
   of each page's own scoped class name — no page-specific CSS
   needed. Layered on ::after so it never overrides each page's
   own ::before decorative glow; existing background is untouched.
   ============================================================ */
section[aria-labelledby="cta-heading"] {
  position: relative;
}
section[aria-labelledby="cta-heading"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../images/banner-world-map-1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.dp-stat-num { display: block; }

/* ============================================================
   25. SEAMLESS INTEGRATION SECTION — PREMIUM ENHANCEMENT
   Every inner page defines its own scoped classes for this section
   (e.g. .cds-integration-section, .hms-int-card, .rbac-int-icon —
   one prefix per page). Rather than duplicate the same enhancement
   16 times, this targets the shared NAME FRAGMENT every page already
   uses via substring attribute selectors, so one block here reaches
   every page with zero page-specific CSS edits.

   Purely additive: every property below is one no page already sets
   on these classes (verified against all 16 pages), so there is no
   cascade-order conflict with each page's own existing card/icon/
   hover rules — this only layers new depth and motion on top.
   ============================================================ */
[class*="-integration-section"] {
  position: relative;
  overflow: hidden;
}
[class*="-integration-section"]::before {
  content: '';
  position: absolute;
  top: -12%;
  right: -8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,81,162,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[class*="-integration-section"] > .container {
  position: relative;
  z-index: 1;
}

[class*="-int-card"] {
  position: relative;
  overflow: hidden;
}
[class*="-int-card"]::after {
  content: '';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-500);
  animation: int-card-pulse 2.4s ease-in-out infinite;
}

[class*="-int-icon"] {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
[class*="-int-card"]:hover [class*="-int-icon"] {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 6px 16px -6px rgba(6,81,162,0.35);
}

/* Staggered reveal — layers on top of the shared [data-animate]
   fade/slide from page.css by delaying when each card's own
   opacity/transform transition begins, so cards cascade in left to
   right / row by row instead of all fading in at once. */
[class*="-int-card"][data-animate]:nth-child(1) { transition-delay: 0ms; }
[class*="-int-card"][data-animate]:nth-child(2) { transition-delay: 60ms; }
[class*="-int-card"][data-animate]:nth-child(3) { transition-delay: 120ms; }
[class*="-int-card"][data-animate]:nth-child(4) { transition-delay: 180ms; }
[class*="-int-card"][data-animate]:nth-child(5) { transition-delay: 240ms; }
[class*="-int-card"][data-animate]:nth-child(6) { transition-delay: 300ms; }
[class*="-int-card"][data-animate]:nth-child(7) { transition-delay: 360ms; }
[class*="-int-card"][data-animate]:nth-child(8) { transition-delay: 420ms; }

@keyframes int-card-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  [class*="-int-card"]::after { animation: none; }
  [class*="-int-card"]:hover [class*="-int-icon"] {
    transition: none;
  }
}

/* ============================================================
   26. INTEGRATION CARD CAROUSEL
   Generic auto-scrolling marquee for the "-integration-grid"
   containers. Driven by the IntegrationCarousel module in main.js,
   which wraps each track's cards in a ".int-carousel-inner" strip
   (duplicated enough times for a seamless loop) and animates it
   with a CSS transform on every rAF tick — no native scrollLeft
   involved, so the wrap point is an exact, deterministic value
   with no scrollWidth/clientWidth timing to get wrong. A page opts
   in just by adding ".int-carousel-track" to its existing grid
   element; the JS builds the inner strip at runtime, no other
   markup changes needed.

   ".xxx-integration-grid { display: flex; }" (set per-page for the
   card redesign) still targets this same element, but its role has
   changed from "the flex row of cards" to "the fixed-width, clipped
   viewport onto the inner strip" — display:block here overrides
   that flex so the single .int-carousel-inner child never gets
   flex-shrunk to fit, which would otherwise squeeze the whole
   scrolling strip back down to the viewport's own width.
   ============================================================ */
.int-carousel-track {
  display: block !important;
  overflow: hidden;
  position: relative;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.int-carousel-track.is-dragging { cursor: grabbing; }
.int-carousel-track.is-dragging [class*="-int-card"] { pointer-events: none; }
.int-carousel-inner {
  display: flex;
  width: max-content;
  will-change: transform;
}
.int-carousel-inner > * {
  flex: 0 0 200px;
  margin-right: var(--space-5);
}
@media (max-width: 575px) {
  .int-carousel-inner > * { flex: 0 0 165px; margin-right: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .int-carousel-inner { transition: none; }
}
