:root {
  --ink: #08111f;
  --navy: #031832;
  --navy-2: #06244a;
  --blue: #0a65b7;
  --cyan: #35c7e9;
  --green: #31d08b;
  --paper: #f6f9fc;
  --white: #ffffff;
  --muted: #5a6b7e;
  --line: rgba(8, 17, 31, 0.12);
  --shadow: 0 24px 70px rgba(2, 15, 31, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(3, 24, 50, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms ease;
}

.nav-link:hover {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button svg,
.contact-card svg,
.service-card svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #031832;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 36px rgba(53, 199, 233, 0.25);
}

.button-primary:hover {
  box-shadow: 0 22px 48px rgba(49, 208, 139, 0.26);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/mmsystemlab.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 13, 28, 0.92) 0%, rgba(1, 13, 28, 0.72) 44%, rgba(1, 13, 28, 0.3) 100%),
    linear-gradient(180deg, rgba(3, 24, 50, 0.18), rgba(3, 24, 50, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 168px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 40px;
}

.hero-points span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.section,
.intro-section,
.process-section,
.contact-section {
  padding: 88px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  padding: 46px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 48px;
  align-items: center;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.process-copy p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(8, 17, 31, 0.06);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.service-card h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.process-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 24, 50, 0.96), rgba(6, 36, 74, 0.96)),
    url("assets/logo-mark.png") center / 520px no-repeat;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.process-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.process-item span {
  grid-row: span 2;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.process-item strong {
  font-size: 1.05rem;
}

.process-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
}

.contact-section h2 {
  margin-bottom: 22px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #f8fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 101, 183, 0.42);
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.1);
}

.contact-card > svg:first-child {
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--white);
  background: var(--navy-2);
  border-radius: 8px;
}

.contact-card > svg:last-child {
  color: var(--blue);
}

.contact-card span {
  min-width: 0;
  color: var(--muted);
}

.contact-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-footer {
  color: var(--white);
}

.brand-footer img {
  width: 34px;
  height: 34px;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 24px, 720px);
  }

  .nav-link {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-content {
    width: min(100% - 32px, 720px);
    padding-top: 138px;
  }

  .intro-grid,
  .section-heading,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section,
  .process-section,
  .contact-section {
    padding: 68px 0;
  }

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

@media (max-width: 620px) {
  .site-header {
    gap: 10px;
    margin-top: 10px;
  }

  .brand span {
    max-width: 142px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .button-small {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(1, 13, 28, 0.94), rgba(1, 13, 28, 0.7)),
      linear-gradient(180deg, rgba(3, 24, 50, 0.16), rgba(3, 24, 50, 0.92));
  }

  .hero-content,
  .section-inner {
    width: calc(100% - 28px);
  }

  .hero-actions {
    display: grid;
  }

  .hero-points span {
    font-size: 0.8rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact-card {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    padding: 15px;
  }

  .contact-card > svg:first-child {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
