:root {
  color-scheme: dark;
  --ink: #edf4ff;
  --muted: #9aa8bd;
  --bg: #08111f;
  --paper: #101b2e;
  --line: rgba(163, 177, 203, 0.18);
  --soft: #0c1728;
  --red: #e5383b;
  --red-2: #b51f2c;
  --shadow: 0 22px 72px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.58;
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(8, 17, 31, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 10px max(24px, calc((100vw - 1200px) / 2 + 24px));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  line-height: 0;
}

.brand img {
  display: block;
  height: 48px;
  object-fit: contain;
  width: auto;
}

.nav-links {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #d6e1f1;
  display: flex;
  flex: 1;
  font-size: 1.02rem;
  gap: 6px;
  justify-content: center;
  padding: 6px;
}

.nav-links a {
  border-radius: 7px;
  padding: 8px 11px;
}

.nav-links a:hover {
  background: rgba(229, 56, 59, 0.18);
  color: #ffffff;
}

.nav-cta,
.button,
.contact-form button,
.cookie-banner button,
.menu-toggle {
  border-radius: 7px;
  font: inherit;
  font-weight: 400;
}

.nav-cta {
  background: var(--red);
  color: #ffffff;
  padding: 11px 16px;
  white-space: nowrap;
}

.menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  display: none;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
}

.menu-toggle span {
  background: currentColor;
  display: block;
  height: 1px;
  width: 18px;
}

.hero {
  background: var(--bg);
  color: #ffffff;
  min-height: 92vh;
  overflow: hidden;
  padding: 128px 0 96px;
  position: relative;
}

.hero-bg,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(4, 10, 21, 0.95) 0%, rgba(8, 17, 31, 0.82) 35%, rgba(8, 17, 31, 0.38) 68%, rgba(8, 17, 31, 0.12) 100%),
    url("assets/optimized/monit-bot3.webp") center / cover no-repeat;
}

.hero-shade {
  background:
    radial-gradient(circle at 24% 32%, rgba(229, 56, 59, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.08), rgba(8, 17, 31, 0.94));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  color: #ff6063;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(6rem, 16vw, 16rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 980px;
}

.hero-tagline {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2.55rem);
  line-height: 1.18;
  margin: -4px 0 24px;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.06;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
}

strong {
  font-weight: 400;
}

.lead {
  color: #ffffff;
  font-size: clamp(1.42rem, 2.1vw, 2rem);
  line-height: 1.3;
  max-width: 760px;
}

.hero-copy p:not(.eyebrow):not(.lead) {
  color: #cbd6e6;
  max-width: 720px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  font-size: 1.06rem;
}

.button.primary {
  background: var(--red);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.section {
  padding: 78px 0;
}

.muted {
  background: var(--soft);
}

.section-heading {
  margin: 0 auto 38px;
  max-width: 860px;
  text-align: center;
}

.two-column,
.media-layout,
.map-layout,
.cta-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr);
}

.feature-list,
.event-list,
.capability-grid,
.alert-cards {
  display: grid;
  gap: 12px;
}

.feature-list div,
.event-list div,
.steps article,
.product-grid article,
.capability-grid div,
.module-card,
.use-grid article,
.alert-cards article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(31, 41, 35, 0.08);
}

.feature-list div,
.capability-grid div {
  color: #dce7f6;
  padding: 17px 18px;
}

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

.module-card {
  overflow: hidden;
}

.module-card img,
.use-grid img,
.section-photo,
.live-map-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.module-card div {
  padding: 22px;
}

.module-card p,
.use-grid p,
.product-grid p {
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.module-card p:last-child,
.use-grid p:last-child,
.product-grid p:last-child {
  margin-bottom: 0;
}

.section-photo {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.alert-section {
  background: linear-gradient(135deg, #111d31, #08111f);
}

.alert-cards {
  margin-top: 26px;
}

.alert-cards article {
  border-left: 5px solid var(--red);
  padding: 20px;
}

.alert-cards span {
  color: #ffffff;
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.alert-cards p {
  margin-bottom: 0;
}

.map-section {
  background: #091321;
}

.event-list {
  margin-top: 26px;
}

.event-list div {
  border-left: 5px solid var(--red);
  display: grid;
  gap: 2px;
  padding: 14px 16px;
}

.event-list strong {
  color: #ffffff;
}

.event-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.live-map-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.live-pin {
  background: rgba(8, 17, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 8px solid var(--red);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.84rem;
  padding: 7px 10px;
  position: absolute;
}

.pin-a {
  left: 14%;
  top: 62%;
}

.pin-b {
  bottom: 12%;
  left: 39%;
}

.pin-c {
  right: 22%;
  top: 37%;
}

.pin-d {
  left: 34%;
  top: 23%;
}

.steps,
.product-grid,
.use-grid,
.capability-grid {
  display: grid;
  gap: 16px;
}

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

.steps article,
.product-grid article {
  padding: 22px;
}

.steps span {
  color: var(--red);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 22px;
}

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

.use-grid article {
  overflow: hidden;
}

.use-grid article h3,
.use-grid article p {
  padding-left: 20px;
  padding-right: 20px;
}

.use-grid article h3 {
  padding-top: 20px;
}

.use-grid article p {
  padding-bottom: 22px;
}

.product-section {
  background: #060d19;
  color: #fff9ec;
}

.product-section .eyebrow {
  color: #ff6063;
}

.product-section p {
  color: rgba(255, 249, 236, 0.76);
}

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

.product-grid article {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

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

.final-cta {
  background: #0b1526;
  padding: 80px 0;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 15px;
  padding: 24px;
}

.contact-form label {
  color: #ffffff;
  display: grid;
  font-size: 0.9rem;
  gap: 7px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #0b1526;
  border: 1px solid rgba(226, 233, 244, 0.2);
  border-radius: 7px;
  color: #ffffff;
  font: inherit;
  min-height: 44px;
  padding: 11px 12px;
  resize: vertical;
}

.contact-form button {
  background: var(--red);
  border: 0;
  color: #fff9ec;
  cursor: pointer;
  min-height: 50px;
  padding: 13px 18px;
}

.site-footer {
  background: #050a13;
  color: rgba(255, 249, 236, 0.74);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.25fr 1fr 1.2fr 1.2fr;
}

.footer-grid h2 {
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.footer-grid p {
  color: rgba(237, 244, 255, 0.72);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.footer-grid a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(229, 56, 59, 0.75);
  text-underline-offset: 4px;
}

.footer-logo {
  display: block;
  height: 48px;
  margin-bottom: 18px;
  object-fit: contain;
  width: auto;
}

.cookie-banner {
  align-items: center;
  background: rgba(8, 17, 31, 0.96);
  border: 1px solid rgba(237, 244, 255, 0.16);
  border-radius: 10px;
  bottom: 18px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.42);
  display: none;
  gap: 18px;
  left: 50%;
  max-width: 920px;
  padding: 16px 18px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  z-index: 30;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  color: #dbe6f6;
  flex: 1;
  font-size: 0.94rem;
  margin: 0;
}

.cookie-banner button {
  background: var(--red);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 18px;
}

@media (max-width: 1120px) {
  .module-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .brand img {
    height: 38px;
  }

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

  .nav-cta {
    display: none;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(8, 17, 31, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 8px;
    left: 18px;
    padding: 16px;
    position: fixed;
    right: 18px;
    top: 76px;
    z-index: 40;
  }

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

  .nav-links a {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.08rem;
    padding: 13px 14px;
  }

  .two-column,
  .media-layout,
  .map-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .section,
  .final-cta {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(3.7rem, 22vw, 6.8rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    align-items: center;
  }

  .module-grid,
  .steps,
  .use-grid,
  .product-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .live-pin {
    font-size: 0.7rem;
    padding: 5px 7px;
  }

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

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }
}

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