:root {
  --bg: #08090c;
  --panel: #11141b;
  --panel-2: #161a22;
  --text: #f3f4f6;
  --muted: #c9ced8;
  --blue: #355cc9;
  --red: #e51f26;
  --line: #282d39;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #141923 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}

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

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(840px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(8,9,12,.88);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand img {
  height: 86px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

nav a:hover,
.site-footer a:hover,
.contact-box a:hover {
  color: #fff;
}

.header-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(53,92,201,.18), rgba(229,31,38,.12));
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(5,7,12,.55), rgba(5,7,12,.78)),
    radial-gradient(circle at right, rgba(53,92,201,.22), transparent 35%),
    radial-gradient(circle at left bottom, rgba(229,31,38,.14), transparent 25%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 110px 0 90px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(229,31,38,.24);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}

.section { padding: 68px 0; }

.alt {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 { font-weight: 800; }

h2 {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 26px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.five { grid-template-columns: repeat(5, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.tile,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.tile { display: block; }

.tile h3,
.card h3 {
  margin: 0;
  padding: 18px 18px 6px;
  font-size: 24px;
}

.tile p,
.card p {
  padding: 0 18px 20px;
  margin: 0;
  color: var(--muted);
}

.placeholder {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  color: #dbe2ff;
  background: linear-gradient(135deg, rgba(53,92,201,.35), rgba(229,31,38,.18));
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.placeholder.tall { min-height: 220px; }

.split {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 22px;
  align-items: start;
}

.map-box,
.contact-box {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.map-box {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 220px;
  align-items: center;
  justify-content: center;
}

.state {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
}

.contact-box h2 {
  text-align: left;
  font-size: 32px;
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-wrap div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 88px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(53,92,201,.12), transparent);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 8px;
}

.page-content { padding: 32px 0 72px; }

.content-panel {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.content-panel ul { margin: 10px 0 0 20px; }

.tile .hover-video {
  position: relative;
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.tile .hover-video img,
.tile .hover-video video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.tile .hover-video video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity;
}

.tile .hover-video:hover video { opacity: 1; }
.tile .hover-video:hover img { opacity: 0; }

.card .tile-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0f1117;
}

.card .tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SG6 scaling fix */
.card .tile-image img[src*="SG6"] {
  object-fit: contain;
  background: #000;
}

/* Keep sections full-width so no centered background box appears behind grids */
.section {
  padding: 68px 0;
}

.container.narrow {
  text-align: center;
}

.container.narrow p {
  max-width: 700px;
  margin: 15px auto;
  line-height: 1.6;
}

.container.narrow ul {
  max-width: 500px;
  margin: 20px auto;
  text-align: left;
}

.container.narrow li { margin: 8px 0; }

/* Homepage solution tiles only */
.section .card-grid.five,
.section .card-grid.three {
  width: min(1320px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.section .card-grid.five {
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 20px;
}

.section .card-grid.three {
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 24px;
}

.card-grid.five .tile h3 {
  padding: 18px 20px 10px;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}

.card-grid.five .placeholder {
  min-height: 170px;
  padding: 18px;
}

@media (max-width: 980px) {
  .card-grid.five { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three,
  .split { grid-template-columns: 1fr; }

  .nav-wrap { flex-wrap: wrap; }

  .section .card-grid.five,
  .section .card-grid.three {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .section .card-grid.five { grid-template-columns: repeat(2, 1fr); }
  .section .card-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-contact {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand { margin: 0 auto; }
  .card-grid.five { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }

  .section .card-grid.five { grid-template-columns: 1fr; }
}


.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 22px;
}

.comparison-caption {
  margin: 30px 0 18px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
}

.visual-comparison-grid {
  margin-top: 0;
}

.visual-comparison-tile .hover-video {
  min-height: 640px;
  background: #000;
}

.visual-comparison-tile .hover-video img,
.visual-comparison-tile .hover-video video {
  height: 640px;
  object-fit: contain;
  background: #000;
}

.visual-comparison-tile h3 {
  text-align: center;
}

.visual-comparison-tile p {
  min-height: 20px;
}

@media (max-width: 980px) {
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .visual-comparison-tile .hover-video {
    min-height: 560px;
  }

  .visual-comparison-tile .hover-video img,
  .visual-comparison-tile .hover-video video {
    height: 560px;
  }
}
/* Zoom specific homepage tiles to reduce blur */
.tile .hover-video img[src*="TREE1"] {
  transform: scale(1.5);
}

.tile .hover-video img[src*="GIS"] {
  transform: scale(1.3);
}
