:root {
  --ink: #17202a;
  --muted: #5f6f7a;
  --line: #d9e1e5;
  --surface: #ffffff;
  --wash: #f4f7f8;
  --teal: #18a8c5;
  --teal-dark: #0b6d82;
  --gold: #c58a1c;
  --red: #a43c31;
  --navy: #1f2a36;
  --shadow: 0 18px 40px rgba(23, 32, 42, 0.13);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header > .button {
  justify-self: end;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav[hidden] {
  display: none;
}

.nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #e8f6f8;
  color: var(--teal-dark);
}

.nav-contact {
  display: none;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--teal-dark);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--teal-dark);
}

.hero {
  min-height: min(640px, 68vh);
  display: grid;
  align-items: end;
  padding: 88px 26px 58px;
  background:
    linear-gradient(90deg, rgba(12, 19, 27, 0.88), rgba(12, 19, 27, 0.63), rgba(12, 19, 27, 0.24)),
    url("brochure-image.png") center right / min(780px, 72vw) no-repeat,
    #17202a;
}

.page-hero {
  min-height: 360px;
  padding-top: 74px;
}

.hero-content {
  max-width: 820px;
  min-width: 0;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b9f2fb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #edf7f8;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.section {
  padding: 64px 26px;
}

.section.alt {
  background: #ffffff;
}

.section-inner {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

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

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 22px;
  align-items: start;
}

.card {
  min-height: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  overflow-wrap: break-word;
}

.card p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: break-word;
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.card ul,
.text-block ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.mini-label {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #b7dfe6;
  background: #e9f7f9;
}

.callout h3 {
  margin-top: 0;
}

.artifact-list {
  display: grid;
  gap: 10px;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-list.compact {
  gap: 8px;
}

.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step b {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 7px;
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
}

.step span {
  color: var(--muted);
  font-weight: 700;
}

.signal-map {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: center;
}

.signal-row span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
}

.bar.short {
  width: 68%;
}

.bar.mid {
  width: 82%;
}

.bar.long {
  width: 100%;
}

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

.profile {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: start;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--navy);
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.site-footer {
  padding: 28px 26px;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #dce8ec;
}

.footer-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #ffffff;
}

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

  .site-header > .button {
    justify-self: start;
  }

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

  .grid,
  .demo-grid,
  .two-col,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(12, 19, 27, 0.9), rgba(12, 19, 27, 0.72)),
      url("brochure-image.png") center right / 520px no-repeat,
      #17202a;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    min-height: 34px;
    padding: 7px 10px;
    border-color: var(--line);
    background: #ffffff;
    color: var(--teal-dark);
    font-size: 13px;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 32, 42, 0.1);
  }

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

  .nav a {
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.25;
  }

  .nav-contact {
    display: block;
  }

  .site-header > .button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 56px 16px 42px;
  }

  .page-hero {
    padding-top: 52px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: auto;
    padding: 56px 16px 42px;
  }

  .signal-row,
  .profile,
  .step {
    grid-template-columns: 1fr;
  }

  .demo-card .button {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
  }

  header.site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    background: #ffffff;
    z-index: 100;
  }

  header.site-header .brand {
    grid-column: 1;
  }

  header.site-header .menu-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
    white-space: nowrap;
  }

  header.site-header nav.nav {
    display: none;
    grid-column: 1 / -1;
    max-width: 100%;
    background: #ffffff;
  }

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

  header.site-header > a.button {
    display: none;
  }

  header.site-header nav.nav .nav-contact {
    display: block;
  }
}
