/* ============================================================
   MARQUIS DATA — Shared Stylesheet
   marquis.css · All pages link to this file
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Change values here → updates everywhere
   ──────────────────────────────────────────────────────────── */
:root {
  /* Background */
  --bg:           #F8F7F4;
  --bg-dark:      #1E1C19;
  --white:        #FFFFFF;
  --card:         #FFFFFF;

  /* Text */
  --ink:          #272520;
  --ink-2:        #5C5750;
  --ink-3:        #9B958D;
  --ink-invert:   #FFFFFF;

  /* Accent — use sparingly (≤4 places per page) */
  --orange:       #FF6C0C;
  --orange-dk:    #E55C00;
  --orange-lt:    #FFA400;
  --orange-bg:    rgba(255, 108, 12, 0.07);
  --orange-bdr:   rgba(255, 108, 12, 0.22);

  /* Orange gradient (logo mark only) */
  --grad-orange:  linear-gradient(135deg, #FFA400 0%, #FF6C0C 55%, #FF5000 100%);

  /* Rules & surfaces */
  --rule:         #E8E5E0;
  --rule-light:   #F0EDE8;
  --surface-2:    #F2F0EC;

  /* Blue (product UI colors — charts only, not brand) */
  --blue:         #2272F2;
  --amber:        #F0960A;

  /* Typography */
  --font:         'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --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;

  /* Layout */
  --max:          1280px;
  --pad:          2.5rem;
  --nav-h:        64px;

  /* Radius */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg:    0 20px 40px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  /* Animation */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:     0.12s;
  --dur-mid:      0.20s;
}


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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
ul, ol { list-style: none; }


/* ────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */

/* Eyebrow / section labels */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* Display headings */
.h-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.h-display em {
  font-style: italic;
  font-weight: 300;
}

/* Section headings */
.h-section {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

.h-section em {
  font-style: italic;
  font-weight: 300;
}

/* Card / component headings */
.h-card {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}

/* Body text */
.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.body-md {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Muted / caption */
.text-muted { color: var(--ink-3); }
.text-orange { color: var(--orange); }
.text-ink    { color: var(--ink); }


/* ────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: var(--space-24) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-sm {
  padding: var(--space-16) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

/* Centered section header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-header.left {
  text-align: left;
  margin-left: 0;
}

/* Divider */
.rule { height: 1px; background: var(--rule); }


/* ────────────────────────────────────────────────────────────
   5. BUTTONS
   ──────────────────────────────────────────────────────────── */

/* Primary — dark fill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--dur-fast);
  white-space: nowrap;
}

.btn-primary:hover { background: var(--orange); }

/* CTA — orange fill */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--dur-fast);
  white-space: nowrap;
}

.btn-cta:hover { background: var(--orange-dk); }

/* Ghost — outlined */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--rule);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--white);
}

/* Ghost inverted (for dark sections) */
.btn-ghost-invert {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.btn-ghost-invert:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* Text link */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--orange);
  background: none;
  border: none;
  padding: 0;
  transition: color var(--dur-fast);
}

.btn-link:hover { color: var(--orange-dk); }

/* Small nav CTA */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: none;
  transition: background var(--dur-fast);
  white-space: nowrap;
}

.btn-nav-cta:hover { background: var(--orange); }

.btn-nav-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 0.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.btn-nav-ghost:hover { color: var(--ink); background: var(--bg); }


/* ────────────────────────────────────────────────────────────
   6. NAVIGATION
   ──────────────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
}

nav {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

/* Logo mark */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2rem;
}
.nav-logo-img { height: 28px; width: auto; display: block; }

.logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 22px;
}

.logo-bar {
  border-radius: 2.5px 2.5px 0 0;
  width: 6px;
}

.logo-bar:nth-child(1) { height: 11px; background: #FFA400; }
.logo-bar:nth-child(2) { height: 16px; background: #FF6C0C; }
.logo-bar:nth-child(3) { height: 22px; background: #FF5000; }

.nav-wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}

/* Nav items */
.nav-items {
  display: flex;
  flex: 1;
  align-items: stretch;
  height: 100%;
}

.nav-item { position: static; }

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.875rem;
  height: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
  transition: color var(--dur-fast);
  white-space: nowrap;
  position: relative;
}

.nav-trigger:hover,
.nav-item.open .nav-trigger { color: var(--ink); }

.nav-trigger::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--orange);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.nav-item.open .nav-trigger::after,
.nav-trigger.nav-current::after { opacity: 1; }

.nav-trigger.nav-current { color: var(--ink); }

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-mid) var(--ease-out);
  flex-shrink: 0;
  opacity: 0.5;
}

.nav-item.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}

/* Backdrop */
.mega-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: 90;
}

.mega-backdrop.active { display: block; }

/* ── Mega panel base ── */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  z-index: 95;
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}

.nav-item.open .mega-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mega-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.mega-col-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Bottom bar */
.mega-bottom-bar {
  border-top: 1px solid var(--rule-light);
  padding: 0.875rem 2.5rem;
  background: var(--bg);
}

.mega-bottom-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mega-bottom-label { font-size: 0.8125rem; color: var(--ink-3); }

.mega-bottom-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
}

.mega-bottom-link:hover { color: var(--orange-dk); }

/* ── Featured panel (right column, reused) ── */
.mega-featured {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mega-featured-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange);
}

.mega-featured-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
}

.mega-featured-link:hover { color: var(--orange-dk); }

/* ── Platform mega ── */
.mega-platform .mega-inner { grid-template-columns: 1fr 1fr 240px; }

.nav-link-list { display: flex; flex-direction: column; gap: 0.125rem; }

.nav-link-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.nav-link-item:hover { background: var(--bg); border-color: var(--rule); }

.nav-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-link-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color var(--dur-fast);
  margin-bottom: 0.125rem;
}

.nav-link-item:hover .nav-link-name { color: var(--orange); }

.nav-link-sub { font-size: 0.75rem; color: var(--ink-3); line-height: 1.4; }

/* IQ Module list */
.iq-list { display: flex; flex-direction: column; gap: 0.125rem; }

.iq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.iq-item:hover { background: var(--bg); border-color: var(--rule); }

.iq-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color var(--dur-fast);
}

.iq-item:hover .iq-item-name { color: var(--orange); }

.iq-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  flex-shrink: 0;
}

/* Platform how-it-works flow */
.hiw-flow { display: flex; flex-direction: column; gap: 0; margin: var(--space-2) 0; }

.hiw-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.375rem 0;
  position: relative;
}

.hiw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: calc(50% + 11px);
  width: 1px;
  height: calc(100% - 4px);
  background: var(--rule);
}

.hiw-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-bg);
  border: 1.5px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 0.5625rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.hiw-label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.hiw-sub   { font-size: 0.75rem; color: var(--ink-3); }
.hiw-text  { display: flex; flex-direction: column; gap: 0.05rem; }

/* ── Solutions mega ── */
.mega-solutions .mega-inner { grid-template-columns: 1fr 260px; }

.fn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.fn-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.fn-card:hover { background: var(--bg); border-color: var(--rule); }
.fn-card:hover .fn-arrow { opacity: 1; transform: translateX(2px); }

.fn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.fn-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.fn-arrow {
  opacity: 0;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  color: var(--ink-3);
  flex-shrink: 0;
}

.fn-sub { font-size: 0.75rem; color: var(--ink-2); line-height: 1.45; margin-bottom: var(--space-2); }

.fn-modules { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.fn-module-tag {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--rule-light);
  border-radius: 3px;
  padding: 0.1rem 0.375rem;
  letter-spacing: 0.02em;
}

/* Pull quote (Solutions featured) */
.pull-quote {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pq-mark { font-size: 2rem; line-height: 1; color: var(--orange); font-family: Georgia, serif; margin-bottom: -0.5rem; }
.pq-text { font-size: 0.9375rem; font-style: italic; color: var(--ink); line-height: 1.6; }

.pq-attr {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

.pq-name { font-size: 0.8125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.pq-co   { font-size: 0.75rem; color: var(--ink-3); }

/* ── ERP mega ── */
.mega-erp .mega-inner { grid-template-columns: 1fr 260px; }

.erp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }

.erp-group {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  display: block;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.erp-group:hover { background: var(--bg); border-color: var(--rule); }
.erp-group:hover .erp-name { color: var(--orange); }

.erp-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; margin-bottom: var(--space-1); transition: color var(--dur-fast); }
.erp-subs { display: flex; flex-direction: column; gap: 0.125rem; }
.erp-sub  { font-size: 0.75rem; color: var(--ink-3); line-height: 1.5; }

.erp-catch {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--rule);
  text-decoration: none;
  margin-top: var(--space-2);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.erp-catch:hover { border-color: var(--orange-bdr); background: var(--orange-bg); }

.erp-catch-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.erp-catch-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 0.125rem; }
.erp-catch-sub  { font-size: 0.75rem; color: var(--ink-3); }

.mega-connector {
  background: linear-gradient(135deg, rgba(255,164,0,0.06), rgba(255,80,0,0.06));
  border: 1px solid var(--orange-bdr);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.connector-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.connector-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.connector-body  { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.6; }
.connector-link  { font-size: 0.8125rem; font-weight: 600; color: var(--orange); display: flex; align-items: center; gap: 4px; margin-top: auto; }
.connector-link:hover { color: var(--orange-dk); }

/* ── Resources mega ── */
.mega-resources .mega-inner { grid-template-columns: repeat(3, 1fr) 260px; gap: 2rem; }

.res-list { display: flex; flex-direction: column; gap: 0.125rem; }

.res-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.res-item:hover { background: var(--bg); border-color: var(--rule); }

.res-item-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; transition: color var(--dur-fast); margin-bottom: 0.125rem; }
.res-item:hover .res-item-name { color: var(--orange); }
.res-item-sub { font-size: 0.75rem; color: var(--ink-3); line-height: 1.4; }

.nav-link-item.nav-disabled,
.res-item.nav-disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}
.nav-link-item.nav-disabled:hover,
.res-item.nav-disabled:hover { background: transparent; border-color: transparent; }
.nav-link-item.nav-disabled:hover .nav-link-name,
.res-item.nav-disabled:hover .res-item-name { color: var(--ink); }
.mega-featured-link.nav-disabled { opacity: 0.38; pointer-events: none; cursor: default; }

.res-featured {
  background: linear-gradient(135deg, rgba(255,164,0,0.06), rgba(255,80,0,0.06));
  border: 1px solid var(--orange-bdr);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.res-featured-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--orange); }
.res-featured-title { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; }
.res-featured-body  { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.6; }

/* ── About mega ── */
.mega-about .mega-inner { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }


/* ────────────────────────────────────────────────────────────
   7. FOOTER
   ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--white);
  padding: var(--space-16) var(--pad) var(--space-8);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--rule);
}

.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); }

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo-img { height: 24px; width: auto; display: block; }

.footer-tagline { font-size: 0.875rem; color: var(--ink-3); line-height: 1.5; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.footer-col-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-link {
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-link:hover { color: var(--ink); }
.footer-link.footer-link-disabled { opacity: 0.38; pointer-events: none; cursor: default; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
}

.footer-copy { font-size: 0.8125rem; color: var(--ink-3); }

.footer-legal { display: flex; align-items: center; gap: var(--space-5); }

.footer-legal-link {
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-legal-link:hover { color: var(--ink-2); }


/* ────────────────────────────────────────────────────────────
   8. SHARED PAGE COMPONENTS
   ──────────────────────────────────────────────────────────── */

/* ── Icon well ── */
.icon-well {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.icon-well-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-hover {
  transition: box-shadow var(--dur-mid), border-color var(--dur-mid), transform var(--dur-mid);
}

.card-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rule);
  transform: translateY(-2px);
}

/* ── Stat / BAN ── */
.stat-block { display: flex; flex-direction: column; gap: var(--space-1); }

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.stat-value .orange { color: var(--orange); }

.stat-label {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ── Browser chrome frame ── */
.browser-frame {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rule);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 32px 64px rgba(0,0,0,0.12),
    0 8px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule);
  gap: 0.375rem;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chrome-dot:nth-child(1) { background: #FF5F57; }
.chrome-dot:nth-child(2) { background: #FFBD2E; }
.chrome-dot:nth-child(3) { background: #28C840; }

.chrome-url {
  margin-left: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  padding: 0.2rem 0.875rem;
  font-size: 0.6875rem;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── Section with dark background ── */
.section-dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: var(--space-20) var(--pad);
}

.section-dark .h-section { color: var(--white); }
.section-dark .eyebrow   { color: var(--orange); }
.section-dark .body-lg,
.section-dark .body-md   { color: rgba(255,255,255,0.65); }

.section-dark-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── ERP logo strip ── */
.erp-strip {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.erp-strip-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.erp-strip-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  flex-shrink: 0;
}

.erp-name-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── Step indicator ── */
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-bg);
  border: 1.5px solid var(--orange-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}

/* ── Tag / badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  background: var(--orange-bg);
  border: 1px solid var(--orange-bdr);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Arrow icon inline ── */
.arrow-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* ── Platform Foundation Strip (IQ module pages) ── */
.plat-fdn-wrap {
  padding: 3rem var(--pad);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.plat-fdn-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.plat-fdn-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}
.plat-fdn-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.plat-fdn-pillar {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--rule);
}
.plat-fdn-pillar:last-child { border-right: none; }
.plat-fdn-name {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.plat-fdn-desc {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.55;
}
@media (max-width: 640px) {
  .plat-fdn-pillars { grid-template-columns: 1fr; }
  .plat-fdn-pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .plat-fdn-pillar:last-child { border-bottom: none; }
}


/* ────────────────────────────────────────────────────────────
   9. ERP FAMILY PAGES — Shared layout (erp-fam-*)
   Used by erp-epicor, erp-sage, erp-netsuite, erp-acumatica,
   erp-infor, erp-sap. erp-salesforce uses its own sf-* inline.
   ──────────────────────────────────────────────────────────── */

/* Hero */
.erp-fam-hero-wrap { border-bottom: 1px solid var(--rule); background: var(--bg); overflow: hidden; }
.erp-fam-hero { max-width: var(--max); margin: 0 auto; padding: 5rem var(--pad); display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }
.erp-fam-h1 { font-size: clamp(2rem, 3.5vw, 2.875rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); margin-bottom: 1.375rem; }
.erp-fam-sub { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 2rem; max-width: 480px; }
.erp-fam-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Version panel */
.erp-fam-panel { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 40px rgba(39,37,32,0.07); }
.erp-fam-panel-header { padding: 0.75rem 1.125rem; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 0.4rem; background: var(--bg); }
.erp-fam-pdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.erp-fam-panel-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin-left: 0.375rem; }
.erp-fam-panel-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.125rem; font-size: 0.8125rem; border-bottom: 1px solid #f4f2ee; }
.erp-fam-panel-row:last-child { border-bottom: none; }
.erp-fam-panel-version { font-weight: 600; color: var(--ink); flex: 1; }
.erp-fam-panel-method { font-size: 0.6875rem; color: var(--ink-3); white-space: nowrap; }
.erp-fam-panel-footer { padding: 0.75rem 1.125rem; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; background: var(--bg); }
.erp-fam-panel-total { font-size: 0.75rem; color: var(--ink-3); }
.erp-fam-panel-cert { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--orange); color: #fff; border-radius: 4px; padding: 0.2rem 0.5rem; }

/* Deployment badges (shared) */
.erp-badge-cloud  { background: rgba(34,114,242,0.08);  color: #2272F2; }
.erp-badge-prem   { background: rgba(155,149,141,0.12); color: var(--ink-2); }
.erp-badge-hybrid { background: rgba(240,150,10,0.10);  color: #b36800; }
.erp-fam-badge { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 4px; padding: 0.2rem 0.45rem; white-space: nowrap; }

/* Stats bar */
.erp-fam-stats-wrap { background: var(--ink); padding: 2.5rem var(--pad); }
.erp-fam-stats-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: center; }
.erp-fam-stat { text-align: center; padding: 0 3.5rem; border-right: 1px solid rgba(255,255,255,0.1); }
.erp-fam-stat:last-child { border-right: none; }
.erp-fam-stat-num { font-size: 2.125rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.erp-fam-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 0.375rem; line-height: 1.35; }

/* Pain */
.erp-fam-pain-wrap { padding: 6rem var(--pad); border-bottom: 1px solid var(--rule); }
.erp-fam-pain-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.erp-fam-pain-h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); line-height: 1.2; margin-bottom: 1.25rem; }
.erp-fam-pain-body { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 1rem; }
.erp-fam-pain-body:last-child { margin-bottom: 0; }

/* Pain visual — stack */
.erp-fam-stack { display: flex; flex-direction: column; gap: 0; }
.erp-fam-stack-item { background: #fff; border: 1px solid var(--rule); padding: 0.875rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: none; }
.erp-fam-stack-item:first-child { border-radius: 10px 10px 0 0; }
.erp-fam-stack-item.last { border-bottom: 1px solid var(--rule); border-radius: 0 0 10px 10px; }
.erp-fam-stack-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.erp-fam-stack-note { font-size: 0.75rem; color: var(--ink-3); margin-top: 0.1rem; }
.erp-fam-stack-tag { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; padding: 0.2rem 0.5rem; color: var(--ink-3); flex-shrink: 0; white-space: nowrap; }
.erp-fam-bridge { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); position: relative; padding: 0.75rem 0; }
.erp-fam-bridge::before { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: var(--rule); }
.erp-fam-bridge span { position: relative; background: var(--bg); padding: 0 0.75rem; }
.erp-fam-result { background: rgba(255,108,12,0.06); border: 1px solid rgba(255,108,12,0.2); border-radius: 10px; padding: 1.125rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.erp-fam-result-icon { color: var(--orange); flex-shrink: 0; }
.erp-fam-result-title { font-size: 0.9375rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.erp-fam-result-sub { font-size: 0.75rem; color: var(--ink-2); margin-top: 0.2rem; }

/* Connector cards */
.erp-fam-cards-wrap { padding: 6rem var(--pad); border-bottom: 1px solid var(--rule); background: var(--bg); }
.erp-fam-cards-inner { max-width: var(--max); margin: 0 auto; }
.erp-fam-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.erp-fam-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.erp-fam-card-grid.cols-1 { grid-template-columns: 1fr; max-width: 640px; }
.erp-fam-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.625rem; display: flex; flex-direction: column; }
.erp-fam-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.875rem; }
.erp-fam-card-name { font-size: 1.0625rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.erp-fam-card-deploy { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 4px; padding: 0.25rem 0.5rem; flex-shrink: 0; margin-top: 0.125rem; }
.erp-fam-card-desc { font-size: 0.875rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }
.erp-fam-card-footer { border-top: 1px solid var(--rule); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.375rem; }
.erp-fam-card-method-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.erp-fam-card-method-value { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }

/* Vendor note (SEO / context) */
.erp-fam-vendor-note { padding: 1rem 1.375rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.6; margin-top: 2rem; }
.erp-fam-vendor-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.erp-fam-vendor-note a:hover { color: var(--orange); }

/* Why Marquis for [ERP] */
.erp-fam-why-wrap { padding: 6rem var(--pad); border-bottom: 1px solid var(--rule); }
.erp-fam-why-inner { max-width: var(--max); margin: 0 auto; }
.erp-fam-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 3.5rem; }
.erp-fam-why-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,108,12,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--orange); }
.erp-fam-why-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.erp-fam-why-body { font-size: 0.875rem; color: var(--ink-2); line-height: 1.65; }

/* Quote */
.erp-fam-quote-wrap { background: #131929; padding: 5rem var(--pad); border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.erp-fam-quote-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.erp-fam-quote-mark { font-size: 4rem; line-height: 1; color: rgba(255,108,12,0.35); font-family: Georgia, serif; margin-bottom: -0.5rem; }
.erp-fam-quote-text { font-size: 1.25rem; font-weight: 300; font-style: italic; color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 1.5rem; }
.erp-fam-quote-name { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.erp-fam-quote-co { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 0.25rem; }

/* CTA */
.erp-fam-cta-wrap { background: #1A2035; padding: 6rem var(--pad); text-align: center; }
.erp-fam-cta-inner { max-width: 580px; margin: 0 auto; }
.erp-fam-cta-h2 { font-size: 1.875rem; font-weight: 700; color: #fff; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 1rem; }
.erp-fam-cta-sub { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 2rem; }
.erp-fam-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.erp-fam-cta-note { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

@media (max-width: 960px) {
  .erp-fam-hero { grid-template-columns: 1fr; gap: 3rem; }
  .erp-fam-pain-inner { grid-template-columns: 1fr; gap: 3rem; }
  .erp-fam-card-grid { grid-template-columns: repeat(2, 1fr); }
  .erp-fam-card-grid.cols-1 { grid-template-columns: 1fr; }
  .erp-fam-why-grid { grid-template-columns: repeat(2, 1fr); }
  .erp-fam-stats-inner { flex-wrap: wrap; gap: 2rem; }
  .erp-fam-stat { border-right: none; padding: 0 2rem; }
}
