:root {
  --ink: #0b1729;
  --ink-2: #13243d;
  --blue: #176fe8;
  --blue-2: #0759c7;
  --blue-soft: #e8f1ff;
  --paper: #fbfaf7;
  --paper-2: #f1f4f8;
  --white: #ffffff;
  --text: #17243a;
  --muted: #526178;
  --line: #cbd5e1;
  --focus: #ffd24d;
  --shadow: 0 24px 70px rgba(11, 23, 41, .12);
}

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  color: var(--text) !important;
  background: var(--paper) !important;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif !important;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.006em;
}

h1, h2, h3, h4, .logo-text {
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
  line-height: 1.08;
}

p { line-height: 1.72; font-weight: 500; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 4px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .85rem 0 !important;
  background: rgba(251, 250, 247, .96) !important;
  border-bottom: 1px solid rgba(11, 23, 41, .12) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.nav-container { max-width: 1280px !important; }
.logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto;
}
.logo img {
  content: url("shape-msp-logo-header.svg");
  width: 190px !important;
  height: auto !important;
  max-height: 64px !important;
  object-fit: contain;
}
.logo-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.nav-links a { color: #24334a !important; font-weight: 650 !important; }
.nav-links a:not(.btn)::after { background: var(--blue) !important; }
.btn {
  border-radius: 4px !important;
  padding: .9rem 1.25rem !important;
  font-weight: 750 !important;
  letter-spacing: -.01em;
}
.btn-primary { background: var(--blue) !important; color: #fff !important; }
.btn-primary:hover { background: var(--blue-2) !important; transform: none !important; }

.hero, .page-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 34%, rgba(47, 140, 255, .26), transparent 29%),
    linear-gradient(112deg, #081526 0%, #102945 58%, #0b3f78 100%) !important;
  color: #fff !important;
}
.hero::after, .page-header::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  bottom: -290px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025);
  pointer-events: none;
}
.hero { min-height: 690px !important; display: flex; align-items: center; text-align: left !important; }
.hero-content { max-width: 1280px !important; width: 100%; text-align: left !important; }
.hero h1 { max-width: 900px; font-size: clamp(2.8rem, 5vw, 4.7rem) !important; line-height: 1.04 !important; font-weight: 700 !important; }
.hero .subtitle { max-width: 780px; margin: 1.6rem 0 0 !important; color: #e4edf9 !important; font-size: clamp(1.2rem, 2vw, 1.55rem) !important; font-weight: 650 !important; }
.hero .kicker { max-width: 780px; margin: 1.2rem 0 0 !important; color: #c9d5e5 !important; font-weight: 500 !important; }
.hero .badge { display: inline-block; width: auto; border-radius: 3px !important; background: rgba(255,255,255,.1) !important; color: #dceaff !important; }
.hero .cta-buttons { justify-content: flex-start !important; }
.hero .cta-buttons .btn:not(.btn-primary) { border-color: #a9cfff !important; color: #fff !important; }
.page-header { padding: 6rem 2rem !important; }
.page-header h1 { font-size: clamp(2.5rem, 4vw, 3.8rem) !important; max-width: 1040px; margin-left: auto; margin-right: auto; }
.page-header p { color: #d4e0ef !important; }

.container { max-width: 1180px !important; }
.mission, .services, .content-section.light, .service-details { background: var(--paper) !important; }
.why-msp, .content-section.dark, .why-shape { background: var(--paper-2) !important; color: var(--text) !important; }
.section-title, .content-section h2, .why-shape h2 { color: var(--ink) !important; font-size: clamp(2rem, 3.2vw, 3.1rem) !important; }
.section-subtitle, .content-text { color: var(--muted) !important; max-width: 850px !important; }

.services-grid {
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 1px !important;
  border: 1px solid var(--line);
  background: var(--line);
}
.service-card {
  min-height: 300px;
  padding: 2.2rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--white) !important;
}
.service-card:hover { transform: none !important; box-shadow: inset 0 4px 0 var(--blue) !important; }
.service-card .icon, .benefit-card .icon, .why-card .icon, .contact-card .icon { display: none !important; }
.value-icon, .diff-card .icon, .approach-card .icon { display: none !important; }
.service-card h3, .benefit-card h3, .why-card h3 { color: var(--ink) !important; font-size: 1.5rem !important; }
.service-card p, .benefit-card p, .why-card p { color: var(--muted) !important; }
.service-card a { color: var(--blue-2) !important; }
.services-grid .service-card:nth-child(n+5) { display: none !important; }

.benefits-grid, .why-shape-grid, .values-grid, .approach-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 1px !important;
  border: 1px solid var(--line);
  background: var(--line);
}
.benefit-card, .why-card, .value-card, .approach-card {
  margin: 0 !important;
  padding: 2.1rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--white) !important;
  color: var(--text) !important;
}

.testimonial-card, .case-study, .contact-form, .contact-card, .comparison-card {
  border-radius: 4px !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}
.testimonial-card { background: var(--ink) !important; color: #fff !important; }
.testimonial-text { color: #f2f6fc !important; }
.testimonial-author { color: #8fc2ff !important; }

.service-item { padding: 4.5rem 0 !important; }
.service-icon { display: none !important; }
.service-header { display: block !important; }
.service-title-group h2 { font-size: clamp(2rem, 3.5vw, 3.4rem) !important; }
.service-features { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
.feature-item { background: var(--ink-2) !important; }

.comparison-grid { gap: 1.5rem !important; }
.comparison-card h3 { color: var(--ink) !important; }
.comparison-card.negative, .comparison-card.positive { background: var(--white) !important; }
.comparison-card li { color: var(--text) !important; }

.cta-section {
  background: var(--blue) !important;
  color: #fff !important;
}
.footer { background: #07111f !important; }
.footer a { color: #c1cddd !important; }

@media (max-width: 900px) {
  .services-grid, .benefits-grid, .why-shape-grid, .values-grid, .approach-grid { grid-template-columns: 1fr 1fr !important; }
  .service-features { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .logo img { width: 158px !important; max-height: 54px !important; }
  .hero { min-height: 610px !important; }
  .hero h1 { font-size: 3.1rem !important; }
  .services-grid, .benefits-grid, .why-shape-grid, .values-grid, .approach-grid, .service-features { grid-template-columns: 1fr !important; }
  .service-card { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
