/* Marquee Data: site-wide "enterprise" design layer.
   Loaded after bootstrap on every page. Restyles existing markup only;
   no copy or structure changes. Remove the <link> to roll back. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --md-red: #a63d40;
  --md-red-dark: #7f2b2e;
  --md-red-glow: rgba(166, 61, 64, .35);
  --md-ink: #0b1220;
  --md-ink-2: #121a2b;
  --md-slate: #475467;
  --md-line: #e4e7ec;
  --md-bg-soft: #f6f7f9;
  --md-radius: 10px;
  --md-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -8px rgba(16, 24, 40, .14);
}

/* ---------- Type ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--md-slate); background: #fff;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; color: var(--md-ink);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}
h1, .h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3, .h3 { font-size: 1.35rem; }
.lead { font-size: 1.2rem; color: var(--md-slate); }
p { max-width: 72ch; }
.text-center p, .text-center .lead { margin-left: auto; margin-right: auto; }
a { color: var(--md-red); }
a:hover { color: var(--md-red-dark); }
code, kbd, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
mark, .mark { background: transparent; color: var(--md-red); padding: 0; }

/* ---------- Layout ---------- */
.container { max-width: 1240px; }
section.py-5 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
section.border.border-primary { border: 0 !important; background: var(--md-bg-soft); border-top: 1px solid var(--md-line) !important; border-bottom: 1px solid var(--md-line) !important; }
.container-fluid { padding-left: 0; padding-right: 0; }

/* ---------- Nav ---------- */
.navbar.sticky-top, nav.navbar {
  padding: .9rem 2rem; background: rgba(255, 255, 255, .82) !important;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--md-line) !important;
}
.navbar-brand img { width: 210px; height: auto; }
.navbar .nav-link { font-weight: 500; font-size: .95rem; color: var(--md-ink) !important; }
.navbar .nav-link:hover { color: var(--md-red) !important; }
.dropdown-menu {
  border: 1px solid var(--md-line); border-radius: var(--md-radius); box-shadow: var(--md-shadow);
  padding: .5rem; font-size: .93rem;
}
.dropdown-item { border-radius: 6px; padding: .5rem .85rem; color: var(--md-ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--md-bg-soft); color: var(--md-red); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 8px; padding: .75rem 1.5rem; letter-spacing: .005em; transition: all .18s ease; }
.btn-primary {
  background: linear-gradient(180deg, #b8474a 0%, var(--md-red) 100%); border: 1px solid var(--md-red-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px -6px var(--md-red-glow);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(180deg, #a63d40 0%, var(--md-red-dark) 100%); border-color: var(--md-red-dark);
  transform: translateY(-1px); box-shadow: 0 12px 28px -6px var(--md-red-glow);
}
.btn-outline-primary { color: var(--md-ink); border: 1px solid var(--md-line); background: #fff; }
.btn-outline-primary:hover { background: var(--md-ink); border-color: var(--md-ink); color: #fff; }
.fe-pulse-w-pause { animation: none; }

/* ---------- Hero ---------- */
.hero-plexus { min-height: 0; display: flex; align-items: center; }
.hero-plexus > .container { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.hero-plexus .card { margin-top: 3rem !important; margin-bottom: 3rem !important; padding: 2.5rem 3rem !important; }
.hero-plexus .card h1 { margin-top: 0 !important; }
.hero-plexus::after { /* dark vignette so the card and lines read as "tech" */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(11,18,32,0) 0%, rgba(11,18,32,.45) 100%);
}
.hero-plexus > .container { position: relative; z-index: 1; }
.hero-plexus .card {
  background: rgba(255, 255, 255, .94) !important; border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(11, 18, 32, .55); border: 1px solid rgba(255,255,255,.6) !important;
  text-align: left;
}
.hero-plexus .card h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); min-height: 2.4em !important; }
.hero-plexus .card center { text-align: left; }
.hero-plexus .card .btn { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* ---------- Cards, images ---------- */
.card { border: 1px solid var(--md-line); border-radius: var(--md-radius); box-shadow: var(--md-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card-deck .card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -12px rgba(16,24,40,.2); }
.card-body { padding: 2rem; }
.blockquote { font-size: 1.02rem; }
.blockquote p { color: var(--md-ink); }
.blockquote-footer { color: var(--md-slate); font-weight: 600; margin-top: 1rem; }
.img-fluid.border.border-primary { border: 1px solid var(--md-line) !important; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(16,24,40,.3) !important; }

/* ---------- Brand band (bg-primary) -> dark tech band ---------- */
.bg-primary {
  background: radial-gradient(1000px 400px at 85% 0%, rgba(166,61,64,.45), transparent 60%),
              linear-gradient(180deg, var(--md-ink) 0%, var(--md-ink-2) 100%) !important;
  position: relative;
}
.bg-primary::before { /* faint grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-primary > * { position: relative; }
.bg-primary h1, .bg-primary h2, .bg-primary h3 { color: #fff; }
.bg-primary p { color: rgba(255,255,255,.75); }
.bg-primary img { border-radius: 12px; }

/* ---------- Feature columns (icon + h3 + p) ---------- */
.row:has(> .col-md-4.p-4) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin: 2.5rem 0 0; }
.row > .col-md-4.p-4 {
  max-width: none; background: #fff; border: 1px solid var(--md-line); border-radius: var(--md-radius);
  text-align: left; padding: 2.25rem !important; transition: border-color .2s, box-shadow .2s;
}
.row > .col-md-4.p-4:hover { border-color: rgba(166,61,64,.4); box-shadow: var(--md-shadow); }
.row > .col-md-4.p-4 img { width: 56px; height: 56px; object-fit: contain; padding: 10px; border-radius: 12px; background: rgba(166,61,64,.08); }
@media (max-width: 767.98px) { .row:has(> .col-md-4.p-4) { grid-template-columns: 1fr; } }

/* ---------- Forms / modal ---------- */
.form-control { border-radius: 8px; border-color: var(--md-line); padding: .7rem .9rem; height: auto; }
.form-control:focus { border-color: var(--md-red); box-shadow: 0 0 0 4px rgba(166,61,64,.12); }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 40px 100px -20px rgba(11,18,32,.5); }
.modal-header { border-bottom: 1px solid var(--md-line); padding: 1.5rem 2rem; }
.modal-body { padding: 1.5rem 2rem 2rem; }

/* ---------- Footer -> dark ---------- */
footer:not(.blockquote-footer) { background: var(--md-ink); color: rgba(255,255,255,.62); padding: 4.5rem 2rem 2rem !important; font-size: .93rem; }
footer:not(.blockquote-footer) h5 a, footer h5 { color: #fff !important; font-weight: 700; }
footer:not(.blockquote-footer) h6 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 1rem; }
footer:not(.blockquote-footer) a { color: rgba(255,255,255,.72); }
footer:not(.blockquote-footer) a:hover { color: #fff; text-decoration: none; }
footer:not(.blockquote-footer) .border-top { border-color: rgba(255,255,255,.1) !important; }
footer:not(.blockquote-footer) .text-muted { color: rgba(255,255,255,.45) !important; }

/* ---------- Scroll reveal (paired with enterprise.js) ---------- */
.md-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.md-reveal.md-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .md-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Homepage illustrations + rating block ---------- */
.md-illustration { border-radius: 18px; box-shadow: 0 40px 80px -24px rgba(11,18,32,.45); }
.row > .col-md-4.p-4 img[src$=".svg"] { padding: 13px; }
.md-rating {
  display: inline-block; padding: 2.5rem 3.25rem; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.md-rating-score { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 5rem; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -0.04em; }
.md-rating-stars { color: #f5b942; font-size: 1.6rem; letter-spacing: .2em; margin: .75rem 0 .5rem; }
.md-rating-label { color: rgba(255,255,255,.6); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
a:hover .md-rating { border-color: rgba(255,255,255,.3); }
.md-btn-light { background: #fff; color: var(--md-ink) !important; border: 0; }
.md-btn-light:hover { background: #f1f2f5; transform: translateY(-1px); }

/* ---------- Homepage research ticker ---------- */
.md-ticker { position: relative; z-index: 1031; background: var(--md-ink); font-size: .75rem; line-height: 1; }
.md-ticker-link { display: block; overflow: hidden; white-space: nowrap; padding: .35rem 2.5rem .35rem 0; color: rgba(255,255,255,.85) !important; text-decoration: none !important; }
.md-ticker-link:hover { color: #fff !important; }
.md-ticker-track { display: inline-flex; animation: md-ticker 60s linear infinite; }
.md-ticker-link:hover .md-ticker-track { animation-play-state: paused; }
.md-ticker-item { display: inline-flex; align-items: center; padding-right: 4rem; }
.md-ticker-tag { background: var(--md-red); color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .12rem .4rem; border-radius: 3px; margin-right: .6rem; }
.md-ticker-cta { color: #f0a3a5; font-weight: 600; margin-left: .6rem; }
.md-ticker-close { position: absolute; top: 0; right: 0; bottom: 0; width: 2.25rem; border: 0; background: var(--md-ink); color: rgba(255,255,255,.6); font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: -12px 0 12px var(--md-ink); }
.md-ticker-close:hover { color: #fff; }
@keyframes md-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .md-ticker-track { animation: none; } }
.md-rating-score { display: flex; align-items: baseline; justify-content: center; gap: 1.25rem; font-size: 4.25rem; }
.md-rating-five { color: #f5b942; display: inline-flex; align-items: baseline; }
.md-rating-star { font-size: .55em; margin-left: .08em; transform: translateY(-.15em); }
.md-rating-big + .md-rating-big { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.18); }
.md-rating-label { margin-top: 1rem; }
.md-rating-phrase { margin: 0; color: rgba(255,255,255,.8); font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.5rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.md-num { font-size: 3.75rem; font-weight: 700; color: #fff; letter-spacing: -0.04em; line-height: 1; vertical-align: -0.12em; }
.md-num-gold { color: #f5b942; }
.md-num:not(.md-num-gold) { margin-right: .35em; }
.md-rating .md-rating-stars { margin: 0 0 .9rem; font-size: 1.75rem; }

/* ---------- The Marquee Data Difference ---------- */
.md-difference { background: var(--md-bg-soft); border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); }
.md-difference .lead { max-width: 60rem; }
.md-diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-top: 3rem; }
.md-diff-item { background: #fff; border: 1px solid var(--md-line); border-radius: var(--md-radius); padding: 2.25rem; transition: border-color .2s, box-shadow .2s; }
.md-diff-item:hover { border-color: rgba(166,61,64,.4); box-shadow: var(--md-shadow); }
.md-diff-item img { width: 56px; height: 56px; padding: 13px; border-radius: 12px; background: rgba(166,61,64,.08); }
.md-diff-item p { margin-bottom: 0; }
@media (max-width: 767.98px) { .md-diff-grid { grid-template-columns: 1fr; } }
.md-screenshot { border: 1px solid var(--md-line); border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(16,24,40,.35); }

/* ---------- Inner-page hero (plexus band) ---------- */
.md-page-hero > .container { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.md-page-hero h1, .md-page-hero h2, .md-page-hero h3 { color: #fff; }
.md-page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.md-page-hero h3 { font-weight: 500; color: rgba(255,255,255,.8); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.md-page-hero .lead { color: rgba(255,255,255,.85); }
.md-page-hero .btn-primary { background: #fff; color: var(--md-ink); border-color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4); }
.md-page-hero .btn-primary:hover { background: #f1f2f5; color: var(--md-ink); }

/* ---------- Process step numbers ---------- */
.display-3 { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 2.6rem; font-weight: 500; color: var(--md-red); display: block; letter-spacing: -0.02em; }
.md-page-hero::after { background: radial-gradient(ellipse at 50% 50%, rgba(11,18,32,.55) 0%, rgba(11,18,32,.35) 60%, rgba(11,18,32,.5) 100%); }
.md-page-hero h1, .md-page-hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
