:root {
  color-scheme: light;
  --ink: #15171c;
  --muted: #626b78;
  --line: #d9dee6;
  --page: #f0f2f5;
  --white: #ffffff;
  --black: #111318;
  --red: #c91828;
  --red-dark: #8f111b;
  --gold: #c38a2b;
  --shadow: 0 22px 60px rgba(17, 19, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem max(1rem, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: block;
  width: 3.15rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.brand-mark i {
  position: absolute;
  left: 0.35rem;
  display: block;
  width: 2.5rem;
  height: 0.55rem;
  background: linear-gradient(135deg, #22c6d6, #5b238a);
  transform: skewY(31deg);
}

.brand-mark i:nth-child(1) {
  top: 0.6rem;
}

.brand-mark i:nth-child(2) {
  top: 1.35rem;
}

.brand-mark i:nth-child(3) {
  top: 2.1rem;
  width: 1.8rem;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.6vw, 2rem);
  font-size: 0.9rem;
  font-weight: 850;
}

.phone {
  display: inline-flex;
  justify-content: center;
  min-width: max-content;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 950;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0.35rem 0.6rem;
  background: var(--black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  gap: 3rem;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.4rem 0 2.2rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy > p:not(.kicker),
.cards p,
.quote-copy > p {
  color: var(--muted);
}

.hero-copy > p:not(.kicker) {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 5px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  font-weight: 950;
}

.button.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
}

.hero-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 31rem;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 20, 26, 0.96), rgba(42, 48, 58, 0.9)),
    radial-gradient(circle at 75% 12%, rgba(34, 198, 214, 0.32), transparent 16rem);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
}

.panel-top,
.panel-grid,
.panel-labels {
  position: relative;
  z-index: 1;
}

.panel-top {
  display: flex;
  gap: 0.45rem;
}

.panel-top span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #cbd3df;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.device {
  position: relative;
  min-height: 9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.device b {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.6rem;
  height: 3.6rem;
  border: 4px solid #22c6d6;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.device.alarm b {
  border-radius: 8px;
  border-color: #c91828;
}

.device.access b {
  width: 2.3rem;
  border-radius: 6px;
  border-color: #c38a2b;
}

.device.fire b {
  border-color: #fff;
  box-shadow: 0 0 0 0.9rem rgba(201, 24, 40, 0.35);
}

.panel-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.panel-labels span {
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.service-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #fff;
}

.service-summary article {
  min-height: 8rem;
  border-right: 1px solid var(--line);
  padding: 1.2rem;
}

.service-summary article:last-child {
  border-right: 0;
}

.service-summary strong,
.service-summary span {
  display: block;
}

.service-summary span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section,
.systems,
.quote-section,
.why-dgi {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.why-dgi {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0 0;
}

.why-list {
  display: grid;
  gap: 0.75rem;
}

.why-list article {
  border-left: 5px solid var(--red);
  border-radius: 5px;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.07);
}

.why-list strong,
.why-list span {
  display: block;
}

.why-list span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cards article {
  min-height: 13.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.07);
}

.cards .scope {
  background: var(--black);
  color: #fff;
}

.cards .scope p {
  color: #dfe5ee;
}

.systems {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem;
  background: var(--black);
  color: #fff;
}

.system-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.system-list span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
  color: #e2e8f0;
  font-weight: 850;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.industry-grid span {
  display: grid;
  min-height: 5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 0.8rem;
  text-align: center;
  font-weight: 900;
}

.quote-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  padding-bottom: 4rem;
}

.quote-copy,
.quote-form {
  border-radius: 6px;
  background: #fff;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.quote-copy {
  background: linear-gradient(135deg, #2b3039, var(--black));
  color: #fff;
}

.quote-copy > p {
  color: #e1e7ef;
}

.contact-lines {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.contact-lines a,
.contact-lines span {
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.82rem 0.9rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  color: #2b3039;
  font-size: 0.9rem;
  font-weight: 850;
}

.quote-form label:nth-of-type(5),
.quote-form label:nth-of-type(6),
.quote-form button,
.form-message {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd2dc;
  border-radius: 5px;
  background: #f8f9fb;
  color: var(--ink);
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

.form-message {
  min-height: 1.3rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem max(1rem, calc((100vw - 1180px) / 2));
  background: var(--black);
  color: #fff;
}

.footer .brand-mark {
  width: 3.2rem;
  height: 3.2rem;
}

.footer span {
  color: #d3dae4;
}

@media (max-width: 980px) {
  .header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav,
  .phone {
    display: none;
  }

  .header.menu-open .nav,
  .header.menu-open .phone {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero,
  .section-title,
  .systems,
  .quote-section,
  .why-dgi {
    grid-template-columns: 1fr;
  }

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

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

  .service-summary,
  .cards,
  .industry-grid,
  .quote-form,
  .footer {
    grid-template-columns: 1fr;
  }

  .service-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-summary article:last-child {
    border-bottom: 0;
  }
}
