:root {
  color-scheme: dark;
  --black: #050706;
  --ink: #0b1110;
  --panel: #101614;
  --panel-strong: #151d19;
  --white: #f7faf6;
  --muted: #b8c4bd;
  --line: rgba(247, 250, 246, 0.14);
  --green: #28d17c;
  --green-deep: #087243;
  --blue: #78a8ff;
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(40, 209, 124, 0.35);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(247, 250, 246, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 6, 0.58);
  box-shadow: 0 16px 50px var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 6, 0.84);
  border-color: rgba(247, 250, 246, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-size: 1rem;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(247, 250, 246, 0.08);
  color: var(--white);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 250, 246, 0.06);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle__line,
.menu-toggle__line::before,
.menu-toggle__line::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 8px;
  background: currentColor;
  content: "";
}

.menu-toggle__line {
  position: relative;
}

.menu-toggle__line::before,
.menu-toggle__line::after {
  position: absolute;
  left: 0;
}

.menu-toggle__line::before {
  top: -6px;
}

.menu-toggle__line::after {
  top: 6px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(0.95) contrast(1.04);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.98) 0%, rgba(5, 7, 6, 0.78) 42%, rgba(5, 7, 6, 0.18) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(5, 7, 6, 0) 32%),
    radial-gradient(circle at 72% 54%, rgba(40, 209, 124, 0.18), rgba(40, 209, 124, 0) 34%);
}

.hero__content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 165px;
  padding-bottom: 108px;
  align-self: end;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: #dbe5df;
  font-size: 1.22rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--green);
  color: #02110a;
}

.button--secondary {
  border-color: rgba(247, 250, 246, 0.18);
  background: rgba(247, 250, 246, 0.08);
  color: var(--white);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section--intro {
  padding-top: 28px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.intro-grid article {
  min-height: 210px;
  padding: 28px;
  background: rgba(16, 22, 20, 0.86);
}

.metric {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.intro-grid h2,
.service-list h3,
.service-feature h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.intro-grid p,
.service-list p,
.service-feature p,
.philosophy p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.section__heading {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 38px;
}

.section__heading h2,
.philosophy h2,
.contact h2 {
  margin: 0;
  font-size: 2.34rem;
  line-height: 1.06;
  font-weight: 790;
  letter-spacing: 0;
}

.service-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 18px;
}

.service-feature,
.service-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-feature {
  min-height: 468px;
  padding: 28px;
}

.service-feature__map {
  position: relative;
  height: 260px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid rgba(247, 250, 246, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(247, 250, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 250, 246, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(40, 209, 124, 0.22), rgba(120, 168, 255, 0.07) 48%, rgba(5, 7, 6, 0.2));
  background-size:
    36px 36px,
    36px 36px,
    auto;
}

.service-feature__map::before {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(40, 209, 124, 0.34);
  border-radius: 50%;
  content: "";
  transform: rotate(-16deg) scaleX(1.28);
}

.service-feature__map::after {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
  content: "";
  transform: rotate(-18deg);
}

.service-feature__map span {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(40, 209, 124, 0.74);
}

.service-feature__map span:nth-child(1) {
  left: 16%;
  top: 64%;
}

.service-feature__map span:nth-child(2) {
  left: 42%;
  top: 43%;
}

.service-feature__map span:nth-child(3) {
  left: 69%;
  top: 28%;
}

.service-feature__map span:nth-child(4) {
  left: 82%;
  top: 58%;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(120, 168, 255, 0.64);
}

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

.service-list article {
  min-height: 225px;
  padding: 28px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.service-list article:hover {
  border-color: rgba(40, 209, 124, 0.45);
  background: var(--panel-strong);
  transform: translateY(-2px);
}

.section--split {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sector-grid,
.tech-grid {
  display: grid;
  gap: 10px;
}

.sector-grid {
  grid-template-columns: repeat(7, 1fr);
}

.sector-grid a,
.tech-grid span {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 250, 246, 0.045);
  color: #e9f0eb;
  font-weight: 720;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.sector-grid a:hover,
.sector-grid a:focus-visible,
.tech-grid span:hover {
  border-color: rgba(40, 209, 124, 0.46);
  background: rgba(40, 209, 124, 0.1);
  color: var(--white);
}

.tech-grid {
  grid-template-columns: repeat(5, 1fr);
}

.philosophy {
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: 60px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 96px;
  padding: 48px;
  border: 1px solid rgba(40, 209, 124, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 209, 124, 0.14), rgba(120, 168, 255, 0.08)),
    var(--panel);
}

.philosophy p {
  max-width: 560px;
  font-size: 1.1rem;
}

.contact {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 290px;
  padding: 52px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.88), rgba(5, 7, 6, 0.28)),
    url("assets/xtremapps-hero-geospatial.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(247, 250, 246, 0.16);
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  font-weight: 790;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.7rem;
  }

  .section__heading,
  .service-layout,
  .philosophy {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .sector-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 7, 6, 0.94);
    box-shadow: 0 18px 44px var(--shadow);
  }

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

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .hero {
    min-height: 760px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 7, 6, 0.86) 0%, rgba(5, 7, 6, 0.64) 42%, var(--black) 100%),
      linear-gradient(90deg, rgba(5, 7, 6, 0.86), rgba(5, 7, 6, 0.18));
  }

  .hero__image {
    object-position: 58% center;
  }

  .hero__content {
    width: calc(100% - 32px);
    padding-top: 138px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: 3.02rem;
    line-height: 1;
  }

  .hero__copy {
    font-size: 1.06rem;
  }

  .section,
  .philosophy,
  .contact,
  .site-footer {
    width: calc(100% - 32px);
  }

  .section {
    padding: 70px 0;
  }

  .section--intro {
    padding-top: 22px;
  }

  .intro-grid,
  .service-list,
  .sector-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .section__heading {
    gap: 20px;
  }

  .section__heading h2,
  .philosophy h2,
  .contact h2 {
    font-size: 2rem;
  }

  .intro-grid article,
  .service-list article,
  .service-feature,
  .philosophy,
  .contact__inner {
    padding: 24px;
  }

  .contact__inner,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__mail {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
