/* ============================================================
   Atlas-MPS Public Marketing Site — style.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #282320;          /* bark — darker text against the warm cream */
  background: #F2F0EE;     /* linen — palette base, not white */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Design Tokens ----------
   Sage & Atlas brand palette — warm earth/brown system.
   "Legacy" --navy/--blue/--teal variables are kept as aliases so existing
   selectors throughout the file continue to work; their values now point
   to the new brand colors. New code should prefer the named tokens
   (--bark, --umber, --tan, --sand, --linen).
*/
:root {
  /* New brand tokens (preferred) */
  --espresso:    #110E0D;  /* deepest dark */
  --bark-deep:   #1A1715;  /* very dark brown */
  --bark:        #282320;  /* main dark surface (was --navy) */
  --bark-light:  #3A322E;  /* lighter dark brown */
  --umber:       #463C37;  /* primary action / accent brown */
  --umber-dark:  #3D3833;  /* darker umber for hover/borders */
  --tan:         #C5B9A7;  /* warm khaki accent */
  --tan-light:   #D6CDB9;  /* slightly lighter tan */
  --sand:        #E8E0D4;  /* cream / soft surface */
  --linen:       #F2F0EE;  /* off-white background */
  --clay:        #A0613D;  /* warm terracotta — module AtlasCD */
  --sage:        #7A8C6E;  /* sage green — module AtlasCM */
  --plum:        #876C7C;  /* dusty plum — module AtlasSD */
  --olive:       #7C7553;  /* olive — module AtlasLO */

  /* Legacy aliases — keep names, point at new colors */
  --navy:       #110E0D;
  --navy-light: #1A1715;
  --navy-mid:   #282320;
  --blue:       #463C37;
  --blue-dark:  #282320;
  --blue-light: #C5B9A7;
  --teal:       #C5B9A7;
  --green:      #7A8C6E;
  --purple:     #876C7C;
  --orange:     #A0613D;

  /* Neutrals — warmed greys (no longer cool slate) */
  --slate-50:   #F8F6F3;
  --slate-100:  #EFEBE5;
  --slate-200:  #D8D0C3;
  --slate-300:  #B5AB9D;
  --slate-400:  #847C70;
  --slate-500:  #6E6660;
  --slate-600:  #524A45;
  --slate-700:  #3D3833;
  --slate-800:  #2A2622;
  --slate-900:  #1A1715;
  --white:      #FFFFFF;

  --shadow-sm:  0 1px 2px rgba(40,35,32,.06);
  --shadow-md:  0 4px 6px -1px rgba(40,35,32,.10), 0 2px 4px -2px rgba(40,35,32,.08);
  --shadow-lg:  0 10px 15px -3px rgba(40,35,32,.10), 0 4px 6px -4px rgba(40,35,32,.08);
  --shadow-xl:  0 20px 25px -5px rgba(40,35,32,.12), 0 8px 10px -6px rgba(40,35,32,.08);
  --max-w:      1200px;
  --max-w-narrow: 800px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--slate-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--slate-600); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--gray { background: var(--linen); }
.section--dark { background: var(--espresso); color: var(--linen); }
.section--dark h2, .section--dark h3 { color: var(--linen); }
.section--dark p { color: var(--tan); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--clay) 0%, var(--umber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  letter-spacing: .02em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--umber) 0%, var(--bark) 100%);
  color: var(--linen);
  box-shadow: 0 4px 14px rgba(40,35,32,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(70,60,55,.5);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn--outline-dark {
  background: transparent;
  color: var(--slate-800);
  border: 2px solid var(--slate-200);
}
.btn--outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}
.btn--small {
  padding: .6rem 1.5rem;
  font-size: .85rem;
}
.btn--white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,.3);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(17,14,13,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .7rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  text-decoration: none;
}
.navbar__logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__links a {
  color: rgba(255,255,255,.7);
  font-weight: 500;
  font-size: .9rem;
  transition: color .2s;
  position: relative;
}
.navbar__links a:hover { color: var(--white); }
.navbar__links a.active { color: var(--white); }
.navbar__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
.navbar__cta { display: flex; gap: .75rem; align-items: center; }
.navbar__cta .btn { padding: .6rem 1.5rem; font-size: .85rem; }

/* ---------- Nav Dropdown (Modules submenu) ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  font-size: .9rem;
  transition: color .2s;
  cursor: pointer;
  text-decoration: none;
}
.nav-dropdown__trigger:hover { color: var(--white); }
.nav-dropdown__trigger.active { color: var(--white); }
.nav-dropdown__trigger.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 24px;
  height: 2px;
  background: var(--blue);
}
.nav-dropdown__chevron {
  transition: transform .2s ease;
  opacity: .8;
}
.nav-dropdown.is-open .nav-dropdown__chevron,
.nav-dropdown:hover .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  background: rgba(17,14,13,.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1001;
}
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem .85rem;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown__item:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
}
.nav-dropdown__item.is-current {
  background: rgba(70,60,55,.12);
  color: var(--white);
}
.nav-dropdown__item--overview {
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 8px 8px 0 0;
  margin-bottom: .25rem;
  padding-bottom: .85rem;
}
.nav-dropdown__item-logo {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown__item-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: invert(1) hue-rotate(180deg);
}
.nav-dropdown__item-text { display: flex; flex-direction: column; line-height: 1.3; }
.nav-dropdown__item-title { font-size: .9rem; font-weight: 600; }
.nav-dropdown__item-sub   { font-size: .75rem; color: rgba(255,255,255,.55); }

/* Mobile nav toggle */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 40%, var(--navy-mid) 100%);
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
}
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  width: 100%;
  min-width: 0;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  background: rgba(70,60,55,.15);
  border: 1px solid rgba(70,60,55,.3);
  color: var(--blue-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(1.625rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}
.hero__title .highlight { display: inline; }
.hero__title .highlight {
  background: linear-gradient(135deg, var(--tan) 0%, #D9A687 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--slate-400);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat { text-align: center; }
.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero__stat-label {
  font-size: .8rem;
  color: var(--slate-400);
  margin-top: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Inner page hero (shorter) */
.hero--inner {
  min-height: auto;
  padding: 10rem 1.5rem 4rem;
}
.hero--inner .hero__title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }

/* Larger, platform-first hero used on the marketing homepage */
.hero--xl .hero__content { max-width: 1000px; }
.hero--xl .hero__title { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -.035em; }
.hero--xl .hero__sub   { font-size: clamp(1.05rem, 2.4vw, 1.4rem); max-width: 760px; }

/* Module-pill row under hero CTAs — visualizes the 4-module modular shape */
.hero__platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2.5rem;
}
.hero__platform-pills__label {
  width: 100%;
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: .25rem;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem .5rem .55rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}
.platform-pill:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.platform-pill__logo {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,.85);
  border-radius: 5px;
  padding: .15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-pill__logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Platform architecture stack (homepage) — 3 stacked tiers showing
   modules on top, shared services in the middle, infrastructure at the base */
.platform-stack {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.platform-tier {
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  position: relative;
}
.platform-tier__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.platform-tier__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.platform-tier__title { font-size: 1.05rem; font-weight: 700; }

.platform-tier--modules {
  background: rgba(70,60,55,.06);
  border: 1px solid rgba(70,60,55,.15);
}
.platform-tier--modules .platform-tier__label { color: var(--blue); }
.platform-tier--services {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}
.platform-tier--services .platform-tier__label { color: var(--slate-500); }
.platform-tier--infra {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy-mid);
}
.platform-tier--infra .platform-tier__label { color: var(--blue-light); }

.platform-tier__grid {
  display: grid;
  gap: .75rem;
}
.platform-tier__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.platform-tier__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .platform-tier__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-tier__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.platform-node {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1rem .85rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--slate-900);
  transition: all .2s ease;
}
.platform-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.platform-tier--infra .platform-node {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  color: var(--white);
}
.platform-tier--infra .platform-node:hover {
  background: rgba(255,255,255,.08);
}
.platform-node__logo {
  width: 32px;
  height: 32px;
  background: var(--slate-50);
  border-radius: 6px;
  padding: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-node__logo img { max-width: 100%; max-height: 100%; }
.platform-node__text { line-height: 1.25; }
.platform-node__title { font-size: .85rem; font-weight: 600; }
.platform-node__sub   { font-size: .7rem; color: var(--slate-500); }
.platform-tier--infra .platform-node__sub { color: var(--slate-400); }
.platform-node--simple { justify-content: center; text-align: center; }
.platform-node--simple .platform-node__text { display: block; }

/* Down-arrow connector between tiers */
.platform-tier__connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0;
  position: relative;
}
.platform-tier__connector::before {
  content: '';
  position: absolute;
  top: -.5rem;
  width: 2px;
  height: 1rem;
  background: var(--slate-200);
  z-index: 1;
}

/* ---------- Section Headers ---------- */
.section__header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section__title { margin-bottom: 1rem; }
.section__desc {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ---------- Feature Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--slate-200);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--umber) 0%, var(--clay) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-card__icon--blue   { background: rgba(70,60,55,.1);    color: var(--umber); }
.feature-card__icon--teal   { background: rgba(122,140,110,.12); color: var(--sage); }
.feature-card__icon--green  { background: rgba(124,117,83,.14);  color: var(--olive); }
.feature-card__icon--purple { background: rgba(135,108,124,.12); color: var(--plum); }
.feature-card__icon--orange { background: rgba(160,97,61,.12);   color: var(--clay); }
.feature-card__title { font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card__desc { font-size: .9rem; line-height: 1.6; }

/* ---------- Module Showcase ---------- */
.module-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.module-showcase--reverse { direction: rtl; }
.module-showcase--reverse > * { direction: ltr; }
.module-showcase__visual {
  position: relative;
  overflow: hidden;
}
.module-showcase__img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.module-showcase__img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,.15);
}
.module-showcase__placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: .9rem;
  position: relative;
}
.module-showcase__placeholder::before {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border: 1px dashed rgba(255,255,255,.15);
}
.module-showcase__content { padding: 1rem 0; }
.module-showcase__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.module-showcase__label--blue   { color: var(--clay); }
.module-showcase__label--teal   { color: var(--sage); }
.module-showcase__label--purple { color: var(--plum); }
.module-showcase__title { margin-bottom: 1rem; }
.module-showcase__desc { margin-bottom: 1.5rem; line-height: 1.7; }
.module-showcase__features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}
.module-showcase__feature {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--slate-600);
}
.module-showcase__feature svg {
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--green);
}

/* ---------- How It Works / Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(70,60,55,.1);
  border: 2px solid rgba(70,60,55,.2);
}
.step__title { font-size: 1.1rem; margin-bottom: .6rem; }
.step__desc { font-size: .9rem; color: var(--slate-500); line-height: 1.6; }

/* Connector line between steps */
.steps .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(2rem + 28px);
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--slate-200);
}

/* ---------- Screenshots / App Preview ---------- */
.app-preview {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3rem;
  position: relative;
}
.app-preview__browser {
  background: var(--slate-100);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.app-preview__toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--slate-200);
}
.app-preview__dot {
  width: 10px;
  height: 10px;
  background: var(--slate-300);
  border-radius: 50%;
}
.app-preview__dot--red   { background: #ef4444; }
.app-preview__dot--yellow { background: #f59e0b; }
.app-preview__dot--green { background: var(--sage); }
.app-preview__url {
  flex: 1;
  margin-left: .75rem;
  padding: .3rem .75rem;
  background: var(--white);
  font-size: .75rem;
  color: var(--slate-500);
}
.app-preview__screen {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--espresso) 0%, var(--bark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 1rem;
  padding: 2rem;
  text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--slate-200);
  position: relative;
}
.testimonial__stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .1em;
}
.testimonial__text {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--umber) 0%, var(--clay) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--linen);
  font-weight: 700;
  font-size: .9rem;
}
.testimonial__name { font-weight: 600; font-size: .9rem; color: var(--slate-800); }
.testimonial__role { font-size: .8rem; color: var(--slate-500); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--umber) 0%, var(--bark) 55%, var(--espresso) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}
.cta-banner__title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.cta-banner__desc {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand { max-width: 300px; }
.footer__brand-logo {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer__brand-img {
  height: 44px;
  width: auto;
  display: block;
}
.footer__brand-desc { font-size: .85rem; line-height: 1.7; }
.footer__heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a {
  font-size: .9rem;
  color: var(--slate-400);
  transition: color .2s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--slate-400);
  transition: all .2s;
  font-size: .9rem;
}
.footer__social a:hover { background: var(--blue); color: var(--white); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: .4rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background: var(--white);
  font-size: .95rem;
  color: var(--slate-800);
  transition: border-color .2s, box-shadow .2s;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(70,60,55,.15);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* Form inside dark section */
.form--dark .form-input,
.form--dark .form-textarea {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: var(--white);
}
.form--dark .form-input::placeholder,
.form--dark .form-textarea::placeholder { color: var(--slate-400); }
.form--dark .form-label { color: var(--slate-300); }

/* ---------- Legal Pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.legal-content h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.legal-content p { margin-bottom: 1rem; line-height: 1.8; }
.legal-content ul, .legal-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content li { margin-bottom: .5rem; line-height: 1.7; color: var(--slate-600); }

/* ---------- Contact / Demo Layout ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.split-layout__info { padding: 1rem 0; }
.split-layout__info h3 { margin-bottom: .75rem; }
.split-layout__info p { margin-bottom: 1.5rem; }
.info-item {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.info-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(70,60,55,.1);
  color: var(--blue);
}
.info-item__text { font-size: .9rem; color: var(--slate-600); }
.info-item__label { font-weight: 600; color: var(--slate-800); font-size: .9rem; }
.form-card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
}
.form-card__title { font-size: 1.3rem; margin-bottom: .5rem; }
.form-card__desc { font-size: .9rem; color: var(--slate-500); margin-bottom: 1.5rem; }

/* ---------- Support Grid ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.support-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--slate-200);
  text-align: center;
  transition: all .3s;
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.support-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(70,60,55,.1);
  color: var(--blue);
}
.support-card__title { font-size: 1.1rem; margin-bottom: .5rem; }
.support-card__desc { font-size: .9rem; color: var(--slate-500); margin-bottom: 1.25rem; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}
.faq-question:hover { color: var(--blue); }
.faq-question svg { flex-shrink: 0; transition: transform .3s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer__inner {
  padding: 0 0 1.25rem;
  font-size: .9rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .module-showcase { grid-template-columns: 1fr; gap: 2rem; }
  .module-showcase--reverse { direction: ltr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .navbar__links { display: none; }
  .navbar__toggle { display: block; }
  /* Hide outline CTA on mobile — Login moves into mobile menu */
  .navbar__cta { display: none; }

  /* Mobile menu */
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17,14,13,.98);
    backdrop-filter: blur(12px);
    padding: 1rem 1.25rem 1.5rem;
    gap: .25rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .navbar__links.open > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: .85rem .25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .navbar__links.open > a:last-of-type { border-bottom: none; }
  .navbar__links.open [data-mobile-cta] {
    display: inline-flex !important;
    justify-content: center;
    margin-top: .75rem;
    text-align: center;
    border-bottom: none;
  }

  /* Dropdown collapses inline in mobile menu */
  .nav-dropdown { width: 100%; }
  .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    padding: .85rem .25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-dropdown.is-open .nav-dropdown__trigger { border-bottom-color: transparent; }
  .nav-dropdown__menu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 0 .5rem;
    margin: 0 0 .25rem;
    border-left: 2px solid rgba(255,255,255,.1);
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-dropdown__menu::before { display: none; }
  .nav-dropdown.is-open .nav-dropdown__menu {
    max-height: 600px;
    padding: .25rem 0 .5rem .5rem;
  }
  .nav-dropdown__item {
    padding: .6rem .5rem;
    gap: .65rem;
  }
  .nav-dropdown__item-logo { width: 28px; height: 28px; }
  .nav-dropdown__item--overview {
    border-bottom-color: rgba(255,255,255,.1);
    border-radius: 0;
  }
  .nav-dropdown:hover .nav-dropdown__chevron { transform: none; }
  .nav-dropdown.is-open .nav-dropdown__chevron { transform: rotate(180deg); }
  .features-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero__stat-value { font-size: 1.5rem; }
  .steps .step:not(:last-child)::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .btn-group { justify-content: center; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero--inner { padding: 8rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .hero { padding: 6rem 1rem 2.5rem; }
  .hero--inner { padding: 7rem 1rem 2.5rem; }
  .hero__title { font-size: 1.625rem; line-height: 1.2; }
  .hero--xl .hero__title { font-size: 1.875rem; }
  .hero--inner .hero__title { font-size: 1.5rem; }
  .hero__sub { font-size: .95rem; }
  .hero--xl .hero__sub { font-size: 1rem; }
  .btn--large { padding: .85rem 1.5rem; font-size: .95rem; }
  .btn-group { flex-direction: column; align-items: stretch; gap: .75rem; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .split-layout { gap: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .app-preview { padding: 1rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .section { padding: 2.5rem 0; }
  .section__title { font-size: 1.5rem; }
  .section__desc { font-size: .95rem; }
  /* Force any auto-fit grid down to a single column at small viewports */
  .features-grid,
  .pricing-grid,
  .module-cards,
  .together-grid,
  .use-case-grid,
  .platform-tier__grid {
    grid-template-columns: 1fr !important;
  }
  /* CTA banner tightening */
  .cta-banner { padding: 3rem 1rem; }
  .cta-banner__title { font-size: 1.5rem; }
  .cta-banner__desc { font-size: .95rem; }
  /* Module detail hero on phones */
  .module-detail-hero__logo { height: 44px; }
  .module-detail-hero { gap: 1rem; }
  /* Stack 2-column form rows on small screens */
  .form-card [style*="grid-template-columns: 1fr 1fr"],
  .form-card [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Page-specific: Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all .3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: .5rem;
}
.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: .25rem;
}
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--slate-400); }
.pricing-card__desc {
  font-size: .9rem;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}
.pricing-card__features { margin-bottom: 2rem; }
.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--slate-600);
  margin-bottom: .6rem;
}
.pricing-card__feature svg { color: var(--green); flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ---------- Logos / Trust ---------- */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  opacity: .5;
}
.trust-logos img { height: 32px; width: auto; filter: grayscale(1); transition: filter .3s; }
.trust-logos img:hover { filter: grayscale(0); }

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: .75rem; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--slate-600);
}
.checklist__item svg { flex-shrink: 0; margin-top: .2rem; color: var(--green); }

/* ---------- Stat cards ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
  text-align: center;
}
.stat-card__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-card__label {
  font-size: .85rem;
  color: var(--slate-400);
}

/* ---------- Integration icons ---------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}
.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  transition: all .3s;
}
.integration-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.integration-item__icon { font-size: 2rem; }
.integration-item__name { font-size: .8rem; font-weight: 600; color: var(--slate-700); }

/* ---------- Navbar solid variant for light pages ---------- */
.navbar--solid {
  background: var(--navy);
}

/* ---------- Smooth scroll offset for anchor links ---------- */
:target { scroll-margin-top: 5rem; }

/* ---------- Selection color ---------- */
::selection { background: rgba(70,60,55,.2); color: var(--slate-900); }

/* ---------- Focus visible for accessibility ---------- */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

/* ---------- Rounded CTA Banner (MedFlow-style) ---------- */
.cta-banner--rounded {
  border-radius: 20px;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Services Grid (3x3, MedFlow-style) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
}
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: all .3s ease;
}
.service-card:hover {
  background: var(--slate-50);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--slate-900);
}
.service-card__desc {
  font-size: .88rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ---------- Module Cards (4-up) ---------- */
.module-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .module-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (max-width: 600px) {
  .module-cards { grid-template-columns: 1fr; }
}
.module-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 2rem 1.5rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.module-card__desc { flex-grow: 1; }
.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
/* Module accent stripes — each module gets a distinct earth-tone */
.module-card--blue::before   { background: var(--clay); }   /* AtlasCD — terracotta */
.module-card--teal::before   { background: var(--sage); }   /* AtlasCM — sage */
.module-card--purple::before { background: var(--plum); }   /* AtlasSD — plum */
.module-card--green::before  { background: var(--olive); }  /* AtlasLO — olive */
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.module-card__code {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  margin-bottom: 1.25rem;
}
.module-card__code--blue   { background: rgba(160,97,61,.12);  color: var(--clay); }
.module-card__code--teal   { background: rgba(122,140,110,.12); color: var(--sage); }
.module-card__code--purple { background: rgba(135,108,124,.12); color: var(--plum); }
.module-card__code--green  { background: rgba(124,117,83,.14);  color: var(--olive); }
.module-card__name { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.module-card__desc { font-size: .9rem; color: var(--slate-500); line-height: 1.7; }
.module-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.module-card__icon--blue   { background: rgba(160,97,61,.12);  color: var(--clay); }
.module-card__icon--teal   { background: rgba(122,140,110,.12); color: var(--sage); }
.module-card__icon--purple { background: rgba(135,108,124,.12); color: var(--plum); }
.module-card__icon--green  { background: rgba(124,117,83,.14);  color: var(--olive); }

/* Module wordmark at the top of each card — display the real wordmark
   logo at a readable size with no surrounding well, so "ATLAS | CD" etc.
   actually reads as a logo. */
.module-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
  height: 34px;
  max-width: 100%;
}
.module-card__logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .module-card__logo { height: 30px; }
}
[data-theme-mode="dark"] .module-card__logo img,
.section--dark .module-card__logo img {
  filter: invert(1) hue-rotate(180deg);
}
.module-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--clay);
  text-decoration: none;
}
.module-card__cta svg { transition: transform .2s ease; }
.module-card__cta:hover svg { transform: translateX(3px); }
.module-card--blue   .module-card__cta { color: var(--clay); }
.module-card--teal   .module-card__cta { color: var(--sage); }
.module-card--purple .module-card__cta { color: var(--plum); }
.module-card--green  .module-card__cta { color: var(--olive); }

/* Clickable card */
.module-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.module-card--link:hover { text-decoration: none; }

/* ---------- Module Detail Pages ---------- */
/* Centered, brand-mark-first hero. The module wordmark sits at the top,
   followed by a color badge, the title, and the subtitle — no boxy plinth. */
.module-detail-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 820px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}
.module-detail-hero > * { max-width: 100%; }
.module-detail-hero__logo {
  height: clamp(40px, 12vw, 80px);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}
.module-detail-hero__logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}
.module-detail-hero__title { margin: 0; }
.module-detail-hero__sub { margin: 0; }
.module-detail-hero__cta { margin-top: 1rem; }

/* Accent stripe under the wordmark — subtle module-color accent */
.module-detail-hero__accent {
  width: 56px;
  height: 4px;
  border-radius: 4px;
  margin: -.25rem 0 .25rem;
}
.module-detail-hero__accent--blue   { background: var(--clay); }
.module-detail-hero__accent--teal   { background: var(--sage); }
.module-detail-hero__accent--purple { background: var(--plum); }
.module-detail-hero__accent--green  { background: var(--olive); }

.module-detail-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 999px;
}
.module-detail-badge--blue   { background: rgba(160,97,61,.18);  color: #D9A687; border: 1px solid rgba(160,97,61,.40); }
.module-detail-badge--teal   { background: rgba(122,140,110,.18); color: #B5C5A8; border: 1px solid rgba(122,140,110,.40); }
.module-detail-badge--purple { background: rgba(135,108,124,.18); color: #C3A9B8; border: 1px solid rgba(135,108,124,.40); }
.module-detail-badge--green  { background: rgba(124,117,83,.20);  color: #BFB58A; border: 1px solid rgba(124,117,83,.40); }

/* Problem / Solution two-column block on module detail pages */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .problem-solution { grid-template-columns: 1fr; }
}
.problem-solution__block {
  position: relative;
  padding: 2.25rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  background: #fff;
}
.problem-solution__block--problem {
  background: rgba(232, 224, 212, 0.45);
  border-color: rgba(124, 117, 83, 0.22);
}
.problem-solution__block--solution--blue   { background: rgba(160, 97, 61, 0.06);  border-color: rgba(160, 97, 61, 0.28); }
.problem-solution__block--solution--teal   { background: rgba(122, 140, 110, 0.07); border-color: rgba(122, 140, 110, 0.32); }
.problem-solution__block--solution--purple { background: rgba(135, 108, 124, 0.07); border-color: rgba(135, 108, 124, 0.30); }
.problem-solution__block--solution--green  { background: rgba(124, 117, 83, 0.08);  border-color: rgba(124, 117, 83, 0.32); }
.problem-solution__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate-500);
  margin-bottom: .85rem;
}
.problem-solution__block--solution--blue   .problem-solution__label { color: var(--clay); }
.problem-solution__block--solution--teal   .problem-solution__label { color: var(--sage); }
.problem-solution__block--solution--purple .problem-solution__label { color: var(--plum); }
.problem-solution__block--solution--green  .problem-solution__label { color: var(--olive); }
.problem-solution__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}
.problem-solution__desc {
  font-size: .98rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 480px) {
  .problem-solution__block { padding: 1.75rem 1.5rem; }
  .problem-solution__title { font-size: 1.25rem; }
  .problem-solution__desc { font-size: .92rem; }
}

/* Mid-page inline CTA (used between sections on module detail pages) */
.section-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.section-cta__line {
  font-size: .85rem;
  color: var(--slate-500);
  letter-spacing: 0;
}
.section-cta__line a {
  color: var(--slate-700);
  text-decoration: underline;
  font-weight: 500;
}
.section-cta__line a:hover { color: var(--clay); }

/* Use-case / persona cards */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.use-case-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  border-radius: 12px;
  transition: all .3s ease;
}
.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.use-case-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 10px;
  color: var(--white);
}
.use-case-card__icon--blue   { background: var(--clay); }
.use-case-card__icon--teal   { background: var(--sage); }
.use-case-card__icon--purple { background: var(--plum); }
.use-case-card__icon--green  { background: var(--olive); }
.use-case-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--slate-900); }
.use-case-card__desc  { font-size: .9rem; color: var(--slate-500); line-height: 1.7; }

/* Other-modules strip */
.module-other-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.module-other-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  text-decoration: none;
  color: var(--slate-900);
  background: var(--white);
  transition: all .2s ease;
}
.module-other-link:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.module-other-link__logo {
  width: 40px;
  height: 40px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-other-link__logo img { max-width: 100%; max-height: 100%; }
.module-other-link__text { line-height: 1.3; }
.module-other-link__code { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--slate-500); }
.module-other-link__name { font-size: .9rem; font-weight: 600; }

/* ---------- Services Grid Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .cta-banner--rounded { border-radius: 12px; padding: 3rem 1.5rem; }
}

/* ---------- Screenshot Lightbox ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lb-overlay.lb-visible {
  opacity: 1;
  visibility: visible;
}
.lb-content {
  padding: 2rem;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-content > * {
  animation: lbZoomIn .3s ease;
}
@keyframes lbZoomIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
  z-index: 10000;
}
.lb-close:hover { color: #fff; }

/* ---------- Print styles ---------- */
@media print {
  .navbar, .hero__canvas, .footer__social, .cta-banner { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  body { color: #000; }
}

/* ============================================================
   /contact/ — modern two-column layout
   ============================================================ */
.hero--compact {
    min-height: auto;
    padding-block: 7rem 3rem;
}
.hero--compact .hero__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-block-end: .75rem;
}
.hero--compact .hero__sub {
    font-size: 1.05rem;
    max-width: 36rem;
}

.section--contact { padding-block: 3.5rem 5rem; }
.container--narrow { max-width: 720px; }

/* Quick channels row */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-block-end: 2.5rem;
}
@media (max-width: 720px) {
    .contact-channels { grid-template-columns: 1fr; }
}
.contact-channel {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.contact-channel:hover {
    border-color: var(--clay);
    box-shadow: 0 4px 14px rgba(70, 60, 55, 0.06);
    transform: translateY(-1px);
}
.contact-channel__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(160, 97, 61, 0.10);
    color: var(--clay);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-block-end: .25rem;
}
.contact-channel__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--slate-500);
}
.contact-channel__value {
    font-size: .92rem;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.4;
    word-break: break-word;
}

/* Form card */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
@media (max-width: 480px) {
    .contact-form-wrap { padding: 1.5rem; }
}
.contact-form-wrap__header { margin-block-end: 1.5rem; }
.contact-form-wrap__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-800);
    letter-spacing: -.01em;
    margin: 0 0 .25rem;
}
.contact-form-wrap__desc {
    font-size: .9rem;
    color: var(--slate-500);
    margin: 0;
}
.contact-form .form-group { margin-block-end: 1.1rem; }
.contact-form .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #1e293b;
    margin-block-end: .4rem;
    display: block;
    letter-spacing: 0;
}
.contact-form .form-label__req { color: #ef4444; font-weight: 600; }
.contact-form .form-label__opt {
    font-size: .72rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-inline-start: .25rem;
}
.contact-form .form-input,
.contact-form .form-select,
.contact-form .form-textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: .95rem;
    font-family: inherit;
    color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form .form-input:focus,
.contact-form .form-select:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.contact-form .form-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder { color: #9ca3af; }

.form-row {
    display: grid;
    gap: 1rem;
}
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row .form-group { margin-block-end: 1.1rem; }
@media (max-width: 580px) {
    .form-row--2 { grid-template-columns: 1fr; }
}

.btn--full {
    width: 100%;
    justify-content: center;
    padding: .85rem 1.5rem;
    font-size: .95rem;
}

.contact-form__legal {
    font-size: .78rem;
    color: #94a3b8;
    text-align: center;
    margin-block: .85rem 0;
}
.contact-form__legal a {
    color: #64748b;
    text-decoration: underline;
}
.contact-form__legal a:hover { color: var(--blue); }
