/* ===================================================
   CMD Consulting — Main Stylesheet
   =================================================== */

/* ---- Web Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.cdnfonts.com/css/versa');

/* ---- CSS Variables ---- */
:root {
  --navy:       #0B1E3D;
  --navy-light: #132849;
  --blue:       #2563EB;
  --blue-dark:  #1d4ed8;
  --blue-light: #EFF6FF;
  --slate:      #F0F4FA;
  --white:      #FFFFFF;
  --text:       #1e293b;
  --muted:      #64748b;
  --border:     #e2e8f0;

  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --indigo-tint: #f5f3ff;

  --radius:     8px;
  --radius-lg:  20px;
  --radius-pill:100px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 56px rgba(0,0,0,0.18);

  --transition: 0.25s ease;
  --max-width:  1180px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; }

p { color: var(--muted); line-height: 1.75; }
p + p { margin-top: 1rem; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ---- Section Labels ---- */
.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Versa', var(--font);
  color: #3939be;
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,30,61,0.25);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255,255,255,0.12);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--slate);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,30,61,0.15);
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

/* Nav on dark hero */
.site-nav.nav-dark .nav-links a { color: rgba(255,255,255,0.85); }
.site-nav.nav-dark .nav-links a:hover { color: var(--white); }
.site-nav.scrolled.nav-dark .nav-links a { color: var(--navy); }
.site-nav.scrolled.nav-dark .nav-links a:hover { color: var(--blue); }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.site-nav.nav-dark .nav-hamburger span { background: var(--white); }
.site-nav.scrolled.nav-dark .nav-hamburger span { background: var(--navy); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 0;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* ---- Hero (Dark) ---- */
.hero {
  background: var(--navy);
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 65%);
  pointer-events: none;
}

/* No left-side gradient — keep area behind text clean */

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 { color: var(--white); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 1.25rem 0 2.5rem;
  max-width: 580px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Hero right-side devices (phone + desktop) ---- */
.hero-devices {
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
  width: min(500px, 43vw);
  height: 400px;
  z-index: 0;
  pointer-events: none;
  /* Shared 3D perspective: both devices share the same vanishing point */
  perspective: 1100px;
  perspective-origin: 20% 50%;
}

/* ---- Desktop monitor ---- */
.hero-desktop {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 82%;
  height: 265px;
  transform-style: preserve-3d;
  /* Screens face left toward the hero text */
  transform: rotateY(-34deg) rotateX(5deg);
}

/* Monitor display bezel */
.hero-desktop-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  background: linear-gradient(170deg, #243352 0%, #111d30 60%, #0a1322 100%);
  border: 2px solid rgba(255,255,255,0.13);
  /* Thick bottom chin = monitor look */
  border-bottom-width: 20px;
  border-radius: 8px 8px 5px 5px;
  box-shadow: 0 20px 48px -10px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
}

.hero-desktop-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: #334f72;
  border-radius: 50%;
  z-index: 1;
}

/* Screen inset — leaves visible chin below due to thick border-bottom */
.hero-desktop-screen {
  position: absolute;
  top: 14px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: linear-gradient(145deg, #0d1117 0%, #1a0f3c 55%, #0e2240 100%);
  border-radius: 5px;
  overflow: hidden;
}

/* Left-side depth face — rotated perpendicular to front face, visible when screens face left */
.hero-desktop-depth {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 26px;
  background: linear-gradient(170deg, #162238 0%, #07101e 100%);
  border-top: 2px solid rgba(255,255,255,0.07);
  border-bottom: 20px solid rgba(255,255,255,0.04);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px 0 0 4px;
  transform-origin: right center;
  transform: rotateY(-90deg);
}

/* Monitor neck */
.hero-monitor-neck {
  position: absolute;
  top: 210px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 26px;
  background: linear-gradient(180deg, #1c2c46 0%, #0e1928 100%);
  border-left: 1px solid rgba(255,255,255,0.07);
  border-right: 1px solid rgba(255,255,255,0.07);
}

/* Monitor base */
.hero-monitor-base {
  position: absolute;
  top: 236px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 15px;
  background: linear-gradient(180deg, #1c2c46 0%, #0c1625 100%);
  border-radius: 4px 4px 8px 8px;
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 1px solid rgba(255,255,255,0.14);
}

/* ---- Phone ---- */
.hero-phone {
  position: absolute;
  top: 14px;
  right: 0;
  width: 122px;
  height: 258px;
  z-index: 2;
  transform-style: preserve-3d;
  /* Same pivot angle as desktop — screens face left */
  transform: rotateY(-34deg) rotateX(5deg);
}

.hero-phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(170deg, #243352 0%, #111d30 60%, #0a1322 100%);
  border: 2px solid rgba(255,255,255,0.13);
  border-radius: 26px;
  box-shadow: 0 22px 50px -12px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
}

.hero-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 7px;
  background: #080f1c;
  border-radius: 4px;
  z-index: 3;
}

.hero-phone-screen {
  position: absolute;
  top: 26px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  background: linear-gradient(145deg, #0d1117 0%, #1a0f3c 55%, #0e2240 100%);
  border-radius: 19px;
  overflow: hidden;
}

/* Left-side depth face for phone */
.hero-phone-depth {
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 100%;
  width: 18px;
  background: linear-gradient(170deg, #162238 0%, #07101e 100%);
  border-radius: 8px 0 0 8px;
  transform-origin: right center;
  transform: rotateY(-90deg);
}

/* ---- Hero Screen Content (hsc) ---- */
.hsc {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Desktop layout: sidebar + body */
.hsc--desktop {
  display: flex;
  gap: 6px;
  padding: 10px 8px 8px;
}

.hsc-sidebar {
  width: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-top: 6px;
}

.hsc-sb-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.hsc-sb-dot--active {
  background: rgba(37,99,235,0.75);
  box-shadow: 0 0 6px rgba(37,99,235,0.5);
}

.hsc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.hsc-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 12px;
}
.hsc-tb-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
}
.hsc-tb-line--wide { flex: 1; }
.hsc-tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.hsc-tb-dot--blue {
  background: rgba(37,99,235,0.75);
  box-shadow: 0 0 5px rgba(37,99,235,0.5);
}

/* KPI row */
.hsc-kpis {
  display: flex;
  gap: 5px;
}
.hsc-kpi {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hsc-kpi-num {
  display: block;
  height: 8px;
  width: 60%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 0 6px rgba(59,130,246,0.4);
}
.hsc-kpi-num--teal {
  background: linear-gradient(90deg, #2dd4bf, #14b8a6);
  box-shadow: 0 0 6px rgba(20,184,166,0.4);
}
.hsc-kpi-num--purple {
  background: linear-gradient(90deg, #c084fc, #a855f7);
  box-shadow: 0 0 6px rgba(168,85,247,0.4);
}
.hsc-kpi-lbl {
  display: block;
  height: 4px;
  width: 80%;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

/* Shared chart */
.hsc-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 44px;
}
.hsc-chart--phone {
  padding: 0 2px;
  min-height: 36px;
}

.hsc-bar {
  display: block;
  flex: 1;
  height: var(--bh, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(59,130,246,0.92) 0%, rgba(37,99,235,0.55) 100%);
  box-shadow: 0 0 6px rgba(59,130,246,0.2);
}
.hsc-bar--teal {
  background: linear-gradient(180deg, rgba(45,212,191,0.92) 0%, rgba(20,184,166,0.55) 100%);
  box-shadow: 0 0 6px rgba(20,184,166,0.2);
}
.hsc-bar--purple {
  background: linear-gradient(180deg, rgba(192,132,252,0.92) 0%, rgba(168,85,247,0.55) 100%);
  box-shadow: 0 0 6px rgba(168,85,247,0.2);
}

/* Desktop rows at bottom */
.hsc-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hsc-row {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  width: 85%;
}
.hsc-row--short { width: 60%; }

/* Phone layout */
.hsc--phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 8px 10px;
}

.hsc-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hsc-st-line {
  display: block;
  height: 4px;
  width: 32px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.hsc-st-icons {
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

.hsc-metric-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
}
.hsc-mh-num {
  display: block;
  height: 10px;
  width: 55%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #2dd4bf);
  box-shadow: 0 0 8px rgba(59,130,246,0.45);
}
.hsc-mh-label {
  display: block;
  height: 5px;
  width: 75%;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

/* Phone list */
.hsc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hsc-li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.hsc-li-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hsc-li-dot--teal   { background: #2dd4bf; box-shadow: 0 0 4px rgba(45,212,191,0.6); }
.hsc-li-dot--orange { background: #f97316; box-shadow: 0 0 4px rgba(249,115,22,0.6); }
.hsc-li-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.hsc-li-bar--short { flex: 0.6; }
.hsc-li-val {
  display: block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}

/* ---- Floating Pop-out Cards ---- */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 5;
}

.hfc-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.hfc-icon--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 10px rgba(34,197,94,0.45);
}
.hfc-icon--teal {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  box-shadow: 0 0 10px rgba(20,184,166,0.45);
}

.hfc-line {
  display: block;
  border-radius: 2px;
}
.hfc-line--num {
  height: 8px;
  width: 52px;
  background: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}
.hfc-line--label {
  height: 5px;
  width: 36px;
  background: rgba(255,255,255,0.28);
}
.hfc-line--title {
  height: 6px;
  width: 44px;
  background: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}
.hfc-line--sub {
  height: 4px;
  width: 30px;
  background: rgba(255,255,255,0.28);
}

/* Desktop card: floats just above the monitor frame, near top-right */
.hero-float-card--desktop {
  bottom: 268px;
  left: 50%;
  transform: translateX(-20%);
}

/* Phone card: floats to the left of the phone near the top */
.hero-float-card--phone-card {
  top: 24px;
  right: 128px;
}

@media (max-width: 960px) {
  .hero-devices { display: none; }
}

/* Page Hero (lighter, for inner pages) */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .section-label { color: rgba(255,255,255,0.55); }
.page-hero h1 { color: var(--white); max-width: 700px; }
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 580px;
  margin-top: 1rem;
}

/* ---- Trust Bar / Logo Carousel ---- */
.trust-bar {
  padding: 3rem 0;
  background: var(--slate);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logo-marquee 28s linear infinite;
  animation-delay: -9.33s;
}

@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.logo-track img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter var(--transition);
  margin-right: 5rem;
}
.logo-track img:hover { filter: grayscale(0%) opacity(1); }

/* ---- Services Grid ---- */
.services-intro {
  max-width: 620px;
  margin-bottom: 3rem;
}
.services-intro h2 { margin: 0.5rem 0 1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--blue); }

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; }

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ---- Why CMD ---- */
.why-cmd {
  background: var(--slate);
}

.why-cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-cmd-text h2 { margin: 0.5rem 0 1.25rem; }
.why-cmd-text p { font-size: 1rem; }
.why-cmd-text p + p { margin-top: 1rem; }
.why-cmd-text .btn { margin-top: 2rem; }

.why-cmd-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---- CMD Cycle Visual (6-segment) ---- */
.cmd-cycle {
  position: relative;
  width: 320px;
  height: 320px;
}

.cmd-cycle svg {
  width: 100%;
  height: 100%;
}

.cmd-cycle-labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmd-cycle-center {
  text-align: center;
}
.cmd-cycle-center span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmd-cycle-center strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 0.2rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-banner-text h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner-text p { color: rgba(255,255,255,0.68); font-size: 1.05rem; max-width: 480px; }
.cta-banner-action { flex-shrink: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo img { height: 40px; width: auto; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}
.footer-social svg { width: 18px; height: 18px; }

/* ---- About: Origin ---- */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.origin-text h2 { margin: 0.5rem 0 1.5rem; }
.origin-text p { font-size: 1rem; }
.origin-text blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.origin-text blockquote p {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--navy);
}

/* ---- About: CMD Method ---- */
.cmd-method {
  background: var(--slate);
}

.cmd-method-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 4rem;
}
.cmd-method-header h2 { margin: 0.5rem 0 1rem; }

.cmd-method-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.cmd-stage-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cmd-stage {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cmd-stage:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.stage-number {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.stage-content h4 { font-size: 1rem; color: var(--navy); margin-bottom: 0.3rem; }
.stage-content p  { font-size: 0.88rem; line-height: 1.6; }

/* ---- About: Values ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.value-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }

.value-card h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.value-card h4::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.value-card p { font-size: 0.92rem; }

/* ---- Services Page ---- */
.service-section {
  padding: 5rem 0;
}
.service-section:nth-child(even) { background: var(--slate); }

.service-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.service-section-text h2 { margin: 0.5rem 0 1.25rem; }
.service-section-text p  { font-size: 1rem; }

.service-what-to-expect {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37,99,235,0.15);
}
.service-what-to-expect h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.expect-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.expect-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.expect-list li::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232563EB'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-large {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid rgba(37,99,235,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon-large svg {
  width: 80px; height: 80px;
  color: var(--blue);
}

/* How engagements work */
.process-section {
  background: var(--navy);
  padding: 5rem 0;
}
.process-section .section-label { color: rgba(255,255,255,0.45); }
.process-section h2 { color: var(--white); margin: 0.5rem 0 1.25rem; }
.process-section p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 620px; }
.process-section .btn { margin-top: 2rem; }

/* ---- Insights / Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-thumb {
  height: 200px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-thumb-1 { background: linear-gradient(135deg, #0B1E3D 0%, #1e3a5f 100%); }
.blog-card-thumb-2 { background: linear-gradient(135deg, #0f2a1a 0%, #1a4731 100%); }
.blog-card-thumb-3 { background: linear-gradient(135deg, #1a1040 0%, #2d1b69 100%); }

.blog-card-thumb svg {
  width: 64px; height: 64px;
  color: rgba(255,255,255,0.2);
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--blue); }

.blog-card p { font-size: 0.92rem; flex: 1; }

.blog-card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-date { font-size: 0.8rem; color: var(--muted); }
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.blog-read-more svg { width: 14px; height: 14px; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin: 0.5rem 0 1.25rem; }
.contact-info p  { font-size: 1rem; }

.contact-detail {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-detail-item svg {
  width: 20px; height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}

.form-submit { margin-top: 1.5rem; width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-cmd-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cmd-method-grid { grid-template-columns: 1fr; }
  .cmd-method-grid .cmd-cycle { display: none; }
  .origin-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .service-section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-visual { display: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-text p { max-width: 100%; margin: 0 auto; }
}

@media (max-width: 680px) {
  section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-logo img { height: 44px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ---- Wave Dividers ---- */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
}
.wave-divider--navy { background: var(--navy); }
.wave-divider--slate { background: var(--slate); }
.wave-divider--white { background: var(--white); }

/* ---- Indigo tint sections ---- */
.section-indigo { background: var(--indigo-tint); }

/* ---- Honeypot / utility ---- */
.hidden { display: none; }
