/* ============================================================
   Business Aim - Design System
   Parent-company visual language for bisaim.com, matched to the
   QBM product site (qbmis.com) navy/blue palette with the shared
   copper accent. Variable names (--deep, --teal, --mint) are kept
   stable so component CSS reads unchanged.
   ============================================================ */

:root {
  /* Brand palette - navy primary, matched to qbmis.com */
  --ink: #0f1a2a;
  --ink-2: #233247;
  --muted: #5e6b7b;
  --muted-2: #8693a3;

  /* --deep family carries the navy primary (previously deep green) */
  --deep: #143a5a;
  --deep-2: #1c4d72;
  --deep-3: #0e2940;
  /* --teal / --mint now read as cool blue and cyan to match the product site */
  --teal: #1c7388;
  --teal-2: #1f6fb2;
  --mint: #3aa8c2;

  --accent: #a06912;          /* refined gold-copper, shared with qbmis.com */
  --accent-bright: #c98a2c;
  --accent-soft: #faecc4;
  --accent-tint: #fff7e3;
  --accent-rgb: 160, 105, 18;

  /* Surfaces */
  --paper: #ffffff;
  --paper-2: #fbfdfc;
  --mist: #eff3f8;
  --mist-2: #e1e8f1;
  --line: #d8e0eb;
  --line-2: #c1cedc;

  /* Effects (rgba shadow tints retuned to a navy base) */
  --shadow-sm: 0 2px 8px rgba(21, 32, 51, 0.06), 0 1px 2px rgba(21, 32, 51, 0.04);
  --shadow-md: 0 12px 28px rgba(21, 32, 51, 0.10), 0 4px 8px rgba(21, 32, 51, 0.05);
  --shadow-lg: 0 28px 60px rgba(21, 32, 51, 0.16), 0 10px 20px rgba(21, 32, 51, 0.08);
  --shadow-glow: 0 0 0 1px rgba(31, 111, 178, 0.18), 0 18px 40px rgba(21, 32, 51, 0.14);
  --ring-accent: 0 0 0 3px rgba(var(--accent-rgb), 0.22);

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max: 1220px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-mid: 220ms;
  --t-slow: 420ms;

  /* Gradients */
  --grad-hero: radial-gradient(120% 80% at 100% 0%, rgba(31, 111, 178, 0.28) 0%, rgba(21, 32, 51, 0) 60%),
               radial-gradient(80% 60% at 0% 100%, rgba(var(--accent-rgb), 0.18) 0%, rgba(21, 32, 51, 0) 55%),
               linear-gradient(160deg, #0e2940 0%, #143a5a 45%, #1c4d72 100%);
  --grad-band: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
  --grad-deep: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
}

/* ============================================================
   Reset / base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--teal-2);
}

:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Accessibility helpers */
.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 50;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--paper);
  background: var(--deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section--tight {
  padding: 80px 0;
}

.section-light {
  background: var(--mist);
}

.section-band {
  background: var(--grad-band);
}

.section-deep {
  color: var(--paper);
  background: var(--grad-deep);
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 16px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-deep .eyebrow,
.section-deep .section-kicker {
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.36);
}

h1,
h2,
h3,
p,
li,
a,
dt,
dd {
  overflow-wrap: break-word;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   Topline + Header
   ============================================================ */

.topline {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  background: var(--deep-3);
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.topline a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.topline a:hover {
  color: var(--accent-bright);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(216, 227, 223, 0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 700;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper);
  background: var(--grad-deep);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(21, 32, 51, 0.22);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-rgb), 0));
  z-index: -1;
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand__text span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav > a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--deep);
  background: var(--mist);
}

.nav-cta {
  margin-left: 8px;
  padding: 11px 18px !important;
  color: var(--paper) !important;
  background: var(--grad-deep);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(21, 32, 51, 0.22);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--grad-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(21, 32, 51, 0.3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
  border-radius: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--paper);
  background: var(--grad-deep);
  box-shadow: 0 6px 18px rgba(21, 32, 51, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--paper);
  background: linear-gradient(135deg, var(--deep-2), var(--teal));
  box-shadow: 0 10px 26px rgba(21, 32, 51, 0.32);
}

.btn-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--paper);
}

.btn-ghost {
  color: var(--deep);
  background: transparent;
  border-color: var(--line-2);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--deep);
  background: var(--mist);
  border-color: var(--deep);
}

.btn-quiet {
  color: var(--deep);
  background: var(--accent-soft);
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  color: var(--deep);
  background: var(--accent-tint);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.22);
}

.btn-arrow::after {
  content: "→";
  font-weight: 600;
  transition: transform var(--t-fast) var(--ease);
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--grad-hero);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__blob {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hero__blob--a {
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(31, 111, 178, 0.7), rgba(31, 111, 178, 0) 70%);
}

.hero__blob--b {
  bottom: -240px;
  left: -120px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), rgba(21, 32, 51, 0) 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 96px 0 110px;
}

.hero__copy {
  max-width: 640px;
}

.hero .eyebrow,
.hero .section-kicker {
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.42);
}

.hero h1 {
  color: var(--paper);
  text-wrap: balance;
}

.hero__accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button-row {
  margin-top: 24px;
}

.hero__metrics {
  display: grid;
  /* Three visible metrics remain after removing public client-count claims. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 640px;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__metrics div {
  padding: 20px 16px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__metrics div:last-child {
  border-right: 0;
}

.hero__metrics dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__metrics dd {
  margin: 6px 0 0;
  color: var(--paper);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.05;
}

/* Hero visual: product anchor */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__visual-card {
  position: relative;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.hero__visual-card img {
  width: 100%;
  height: auto;
  /* Match the supplied hero image shape so the dashboard fills the card cleanly. */
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f7faf9;
  border-radius: 10px;
}

.hero__visual-mini {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--paper);
  background: rgba(13, 77, 67, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hero__visual-mini::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
}

.hero__visual-mini--a {
  top: -12px;
  left: -20px;
}

.hero__visual-mini--b {
  bottom: -14px;
  right: -10px;
  background: rgba(21, 32, 51, 0.95);
}

.hero__visual-mini--b::before {
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

/* ============================================================
   Section heads + split layouts
   ============================================================ */

.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-heading h2 {
  text-wrap: balance;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.split-layout,
.product-layout,
.contact-layout,
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 64px;
  align-items: center;
}

.section-copy p,
.product-copy p,
.contact-layout p {
  color: var(--muted);
  font-size: 1.04rem;
}

/* Evidence panel rows on the Company section */
.evidence-panel {
  display: grid;
  gap: 14px;
}

.evidence-panel__row {
  position: relative;
  padding: 22px 24px 22px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}

.evidence-panel__row::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 2px;
  background: var(--grad-accent);
}

.evidence-panel__row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.evidence-panel__row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.012em;
}

.evidence-panel__row span {
  color: var(--muted);
}

/* ============================================================
   Service cards
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.platform-card,
.proof-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(31, 111, 178, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
  pointer-events: none;
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
}

.service-card:hover,
.service-card:focus-within,
.platform-card:hover,
.platform-card:focus-within,
.proof-item:hover,
.proof-item:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 178, 0.32);
  box-shadow: var(--shadow-md);
}

.service-card h3,
.platform-card h3,
.proof-item strong {
  color: var(--deep);
  font-size: 1.16rem;
}

.service-card p,
.platform-card p,
.proof-item span {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  color: var(--deep);
  background: var(--mist);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ============================================================
   Apps section
   ============================================================ */

.section-apps {
  background: linear-gradient(180deg, var(--paper) 0%, #f3f9f6 100%);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  display: grid;
  grid-column: span 2;
  grid-template-rows: 180px minmax(0, 1fr);
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out),
              border-color var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}

.app-card:hover,
.app-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 178, 0.32);
  box-shadow: var(--shadow-md);
}

.app-card--featured {
  grid-column: span 4;
  grid-template-rows: 240px minmax(0, 1fr);
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 24px 56px rgba(21, 32, 51, 0.14);
  background: linear-gradient(180deg, var(--paper), #fafbf8);
}

.app-card--featured .app-card__media {
  background: linear-gradient(135deg, rgba(21, 32, 51, 0.95), rgba(13, 77, 67, 0.92));
}

.app-card--featured .app-card__media::after {
  background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.6), transparent 50%);
}

.app-card--featured .app-card__body h3 {
  font-size: 1.5rem;
  letter-spacing: -0.022em;
}

.app-card__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(21, 32, 51, 0.10), rgba(var(--accent-rgb), 0.14));
  overflow: hidden;
}

.app-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.5), transparent 50%);
  pointer-events: none;
}

.app-card__media img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.app-card__media--preview {
  align-items: stretch;
  justify-items: stretch;
  padding: 14px;
  background: #eef4f8;
}

.app-card__media--preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid rgba(216, 227, 223, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.app-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 26px;
}

.app-card__body h3 {
  margin: 0;
  color: var(--deep);
  font-size: 1.24rem;
}

.app-card__body p:not(.app-tag) {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.app-card__body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--teal-2);
  font-weight: 700;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.app-card__body a::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}

.app-card__body a:hover {
  color: var(--deep);
}

.app-card__body a:hover::after {
  transform: translateX(3px);
}

.app-tag {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-badge {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: #fff;
  border-radius: 18px;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-badge--qbm {
  background: linear-gradient(135deg, #143a5a, #1c4d72);
}

.app-badge--qcrm {
  background: linear-gradient(135deg, #235d91, #2f7ec0);
}

.app-badge--connect {
  background: linear-gradient(135deg, #4e3f7f, #6755a3);
}

/* QCRM detail */
.qcrm-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: center;
  min-width: 0;
  margin-top: 40px;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.qcrm-detail__visual {
  margin: 0;
  overflow: hidden;
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qcrm-detail__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.qcrm-detail__copy {
  min-width: 0;
}

.qcrm-detail__copy h3 {
  color: var(--deep);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.022em;
}

.feature-bullets {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
}

.feature-bullets li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--grad-deep);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(31, 111, 178, 0.18);
}

.qcrm-detail__actions {
  margin-top: 26px;
}

/* ============================================================
   Product section
   ============================================================ */

.section-product {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
  overflow: hidden;
}

.section-product::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 60%);
  pointer-events: none;
}

.product-layout {
  position: relative;
  z-index: 1;
}

.product-copy h2 {
  text-wrap: balance;
}

.product-visual {
  position: relative;
  margin: 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(31, 111, 178, 0.18), rgba(var(--accent-rgb), 0.14));
  border-radius: 28px;
  filter: blur(28px);
  opacity: 0.7;
}

.product-visual img {
  width: 100%;
  height: auto;
  /* Keep the supplied QSalesView composite scaled proportionally in the spotlight panel. */
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f4faf8;
  border-radius: 10px;
}

.product-visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.product-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.platform-card {
  position: relative;
  padding: 32px 30px;
}

.platform-card h3 {
  color: var(--deep);
  font-size: 1.3rem;
}

.platform-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--teal-2);
  font-weight: 700;
}

.platform-card a::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}

.platform-card a:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   Trust section + testimonials
   ============================================================ */

.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}

.logo-strip img {
  width: 100%;
  height: 110px;
  padding: 22px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(40%);
  opacity: 0.85;
  transition: filter var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.logo-strip img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}

.testimonial-card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 22px;
  color: rgba(var(--accent-rgb), 0.32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 700;
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.6;
  font-weight: 500;
}

.testimonial-card cite {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
}

.testimonial-card cite strong {
  display: block;
  margin-bottom: 2px;
  color: var(--deep);
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.proof-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   Process section
   ============================================================ */

.process-layout {
  align-items: start;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
}

.process-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.process-list li::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 70px;
  bottom: -1px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}

.process-list li:last-child::before {
  display: none;
}

.process-list span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--paper);
  background: var(--grad-deep);
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(21, 32, 51, 0.22);
}

.process-list h3 {
  margin: 4px 0 6px;
  color: var(--deep);
  font-size: 1.16rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

/* ============================================================
   Contact band
   ============================================================ */

.contact-band {
  position: relative;
  padding: 96px 0;
  color: var(--paper);
  background: var(--grad-deep);
  overflow: hidden;
}

.contact-band::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.contact-band h2 {
  color: var(--paper);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-band .eyebrow,
.contact-band .section-kicker {
  color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.42);
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 36px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-lg);
  font-style: normal;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.contact-card strong {
  font-size: 1.18rem;
  color: var(--deep);
  letter-spacing: -0.014em;
}

.contact-card span,
.contact-card a:not(.btn) {
  color: var(--muted);
}

.contact-card a:not(.btn):hover {
  color: var(--teal-2);
}

.contact-card .btn {
  margin-top: 8px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #08111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(170px, 0.6fr));
  gap: 48px;
  padding: 64px 0 40px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--paper);
  letter-spacing: -0.018em;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.6;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease);
}

.site-footer ul a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a:hover {
  color: var(--accent-bright);
}

/* ============================================================
   Policy / 404 pages
   ============================================================ */

.policy-page {
  min-height: 100vh;
  background: var(--mist);
}

.policy-header {
  padding: 24px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.policy-main {
  padding: 76px 0;
}

.policy-panel {
  width: min(840px, 100%);
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.policy-panel h1 {
  color: var(--deep);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.policy-panel h2 {
  margin-top: 36px;
  color: var(--deep);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.policy-panel p,
.policy-panel li {
  color: var(--ink-2);
}

.policy-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.not-found-page {
  min-height: 100vh;
  background: var(--mist);
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 34px;
}

.brand--standalone {
  position: absolute;
  top: 28px;
  left: 28px;
}

.not-found__panel {
  width: min(640px, 100%);
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.not-found__panel h1 {
  color: var(--deep);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 76px 0 88px;
  }

  .hero__visual {
    max-width: 560px;
    margin-inline: auto;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 940px) {
  .topline__inner,
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 12px 14px;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }

  .hero__metrics,
  .service-grid,
  .testimonial-grid,
  .proof-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card,
  .app-card--featured {
    grid-column: auto;
  }

  .split-layout,
  .product-layout,
  .contact-layout,
  .process-layout,
  .qcrm-detail {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 84px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .nav-shell {
    min-height: 68px;
  }

  .hero__inner {
    padding: 60px 0 72px;
  }

  .hero__visual-mini--a {
    top: -10px;
    left: 0;
  }

  .hero__visual-mini--b {
    bottom: -10px;
    right: 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hero__metrics div {
    padding: 18px 12px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 14px;
  }

  .hero__metrics div:nth-child(even) {
    border-right: 0;
  }

  .hero__metrics div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .service-grid,
  .testimonial-grid,
  .proof-grid,
  .logo-strip,
  .footer-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .qcrm-detail {
    padding: 22px;
  }

  .platform-card,
  .testimonial-card {
    padding: 26px;
  }

  .policy-panel,
  .not-found__panel {
    padding: 26px;
  }

  .brand--standalone {
    position: static;
    justify-self: start;
    margin-bottom: 28px;
  }

  .not-found {
    align-content: center;
    justify-items: stretch;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .service-card:hover,
  .app-card:hover,
  .platform-card:hover,
  .proof-item:hover,
  .testimonial-card:hover,
  .evidence-panel__row:hover,
  .logo-strip img:hover,
  .btn:hover {
    transform: none;
  }
}
