:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-alt: #eaf1f6;
  --ink: #11212e;
  --muted: #576878;
  --brand: #0c4f81;
  --brand-strong: #08395d;
  --accent: #26c3e6;
  --accent-soft: rgba(38, 195, 230, 0.18);
  --border: rgba(12, 79, 129, 0.12);
  --shadow-lg: 0 28px 60px rgba(9, 35, 55, 0.16);
  --shadow-md: 0 18px 40px rgba(9, 35, 55, 0.12);
  --radius-xl: 40px;
  --radius-lg: 26px;
  --container: min(1280px, calc(100vw - 64px));
  --title-font: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(38, 195, 230, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.platform-grid,
.about-shell,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(17, 33, 46, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 220px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 52px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #22384c;
}

.site-nav a,
.footer-nav a {
  position: relative;
}

.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #08263d;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(7, 32, 52, 0.82), rgba(8, 39, 63, 0.26)),
    url("./assets/hero.png") center top/cover no-repeat;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-media::before {
  background:
    radial-gradient(circle at 15% 32%, rgba(255, 255, 255, 0.14), transparent 18%),
    radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.08), transparent 16%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.18), transparent 8%);
  filter: blur(8px);
}

.hero-media::after {
  background-image:
    linear-gradient(rgba(63, 199, 229, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 199, 229, 0.22) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(135deg, transparent 15%, rgba(0, 0, 0, 0.9) 80%);
  opacity: 0.2;
}

/* .hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 30, 48, 0.8) 0%, rgba(8, 30, 48, 0.25) 48%, rgba(8, 30, 48, 0.52) 100%),
    radial-gradient(circle at 75% 70%, rgba(38, 195, 230, 0.24), transparent 20%);
} */

.hero-content {
  position: relative;
  z-index: 1;
  padding: 114px 0 98px;
  padding-left: 20px;
  color: #fff;
}

.hero-content > * {
  max-width: 780px;
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(4.2rem, 6vw, 3.9rem);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--surface-alt);
}

.hero-subtitle {
  margin: 18px 0 0;
  font-family: var(--title-font);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 200!important;
  line-height: 1.08;
  letter-spacing: 2px;
  color: var(--surface-alt);
}

.hero-copy {
  max-width: 740px;
  margin: 30px 0 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 1px;
  font-weight: 500;
  color: #ffffff;
}

section {
  padding: 110px 0;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading-centered {
  text-align: center;
}

.section-kicker {
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2.6rem, 4vw, 2rem);
  line-height: 0.96;
  color: var(--brand);
}

.section-heading p:last-child {
  max-width: 780px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.services {
  background:
    linear-gradient(180deg, rgba(12, 79, 129, 0.04), transparent 28%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand) 58%, transparent 58%);
  padding-top: 60px;
  padding-bottom: 0;
}

.services .section-heading h2,
.services .section-kicker {
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 470px));
  justify-content: space-between;
  margin-top: 60px;
}

.service-card {
  max-width: 470px;
  min-height: 420px;
  margin: 0 auto;
  padding: 54px 44px 42px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(12, 79, 129, 0.1);
  text-align: center;
}

.service-icon {
  display: inline-flex;
  width: 102px;
  height: 102px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.service-card h3 {
  margin: 30px 0 22px;
  font-family: var(--title-font);
  font-size: 1.65rem;
  color: var(--brand);
  text-transform: uppercase;
}

.service-card p,
.platform-copy p,
.about-copy p,
.footer-copy {
  margin: 0;
  /* color: var(--muted); */
  font-size: 1rem;
  line-height: 1.48;
}

.platform-grid {
  gap: 32px;
  align-items: center;
  padding-top: 26px;
}

.platform-copy {
  grid-column: 1 / span 5;
}

.platform-visual {
  grid-column: 7 / span 6;
  position: relative;
}

.platform-copy h2 {
  margin: 0 0 24px;
  font-family: var(--title-font);
  font-size: clamp(2.5rem, 4.4vw, 2.5rem);
  /* line-height: 0.92; */
  color: var(--brand);
}

.platform-copy p + p {
  margin-top: 20px;
}

.device-panel {
  position: relative;
  min-height: 640px;
  padding: 0;
  border-radius: 40px;
  overflow: visible;
}

.device-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -18% 8%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 66%);
}

.laptop-image {
  position: relative;
  z-index: 1;
  width: min(1040px, 148%);
  max-width: none;
  margin: 146px calc((100vw - var(--container)) / -2) -126px -30%;
  filter: drop-shadow(0 30px 48px rgba(5, 25, 40, 0.28));
}

.about {
  min-height: 640px;
  padding: 0;
  background: #dfe8ee;
}

.about-shell {
  align-items: stretch;
}

.about-media {
  grid-column: 1 / span 6;
  position: relative;
  width: calc(100% + max(0px, (100vw - var(--container)) / 2));
  min-height: 640px;
  margin-left: calc((100vw - var(--container)) / -2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(3, 28, 51, 0.16)),
    url("./assets/about.png") center/cover no-repeat;
}

.about-copy {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px min(7vw, 96px);
  background: #dde8f0;
}

.about-copy .section-heading {
  margin-bottom: 28px;
}

.about-copy .section-heading h2 {
  font-size: clamp(2.5rem, 4vw, 2.5rem);
}

.about-copy p {
  max-width: 620px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.about-copy p + p {
  margin-top: 12px;
}

.group {
  background: #fff;
  padding-top: 92px;
  padding-bottom: 88px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 46px;
  align-items: center;
}

.logo-tile {
  min-height: 188px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.group-logo {
  width: min(210px, 62%);
  height: auto;
  object-fit: contain;
}

#m87-logo {
  height: 150px;
}

.site-footer {
  padding: 84px 0;
  background: #2b2b2b;
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  gap: 56px;
  align-items: start;
}

.footer-grid > :first-child {
  grid-column: 1 / span 7;
}

.footer-grid > :last-child {
  grid-column: 10 / span 3;
}

.brand-footer .brand-text {
  color: #fff;
}

.brand-logo-footer {
  width: 210px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  max-width: 640px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.footer-nav {
  display: grid;
  justify-content: end;
  gap: 26px;
  font-size: 0.98rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 700ms ease forwards;
}

.service-card:nth-child(2),
.platform-visual,
.logo-grid .logo-tile:nth-child(2) {
  animation-delay: 120ms;
}

.logo-grid .logo-tile:nth-child(3) {
  animation-delay: 220ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100vw - 32px, 100%);
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
  }

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

  .hero {
    min-height: 620px;
  }

  .service-grid,
  .platform-grid,
  .logo-grid,
  .footer-grid,
  .about-shell {
    grid-template-columns: 1fr;
  }

  .about {
    min-height: 0;
  }

  .about-media {
    width: auto;
    margin-left: 0;
    grid-column: auto;
    min-height: 360px;
  }

  .platform-copy {
    grid-column: auto;
    order: 1;
  }

  .platform-visual {
    grid-column: auto;
    order: 2;
  }

  .device-panel {
    overflow: hidden;
  }

  .laptop-image {
    width: 100%;
    max-width: 100%;
    margin: 42px 0 -34px;
  }

  .about-copy,
  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: auto;
  }

  .platform-copy h2 {
    max-width: none;
  }

  .service-card {
    max-width: none;
    min-height: 0;
  }

  .footer-nav {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 32px, 1280px);
  }

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

  .brand-logo {
    width: 180px;
  }

  .hero-content {
    padding: 96px 0 72px;
    padding-left: 0;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(3.4rem, 14vw, 4.8rem);
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-copy {
    margin-top: 30px;
    font-size: 1.2rem;
  }

  section {
    padding: 82px 0;
  }

  .service-card,
  .device-panel {
    border-radius: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    transform: translateY(42px);
  }

  .device-panel {
    min-height: auto;
    padding: 0;
  }

  .about-copy {
    padding: 56px 20px;
  }

  .logo-tile {
    min-height: 132px;
  }
}
