:root {
  --ink: #121820;
  --muted: #5d6976;
  --line: #dce3e8;
  --paper: #f6f8f9;
  --panel: #ffffff;
  --teal: #0a8f96;
  --teal-dark: #076870;
  --amber: #d9942b;
  --steel: #23313c;
  --shadow: 0 18px 55px rgba(20, 31, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 70px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--amber);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111820;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 26, 0.92) 0%, rgba(10, 18, 26, 0.72) 42%, rgba(10, 18, 26, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 18, 26, 0.20) 0%, rgba(10, 18, 26, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 86px);
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

.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-radius: 7px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 116px;
  padding: 24px;
  background: #fff;
}

.metrics strong {
  display: block;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.section-copy p:not(.eyebrow),
.section-heading + p {
  color: var(--muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.problem-grid article,
.service-list article,
.insight-grid article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.problem-grid span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.problem-grid p,
.service-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.process-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: stretch;
}

#signalCanvas {
  width: 100%;
  min-height: 360px;
  border-radius: 8px;
  background: #13202a;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 18px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

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

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.insight-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  background: var(--steel);
  color: #fff;
}

.insight-grid p {
  margin: 0;
  color: #8fd6d9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta {
  width: min(1180px, calc(100% - 40px));
  margin: 110px auto 0;
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  background: #101923;
  border-radius: 8px;
}

.cta div {
  max-width: 720px;
}

.cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.page-shell {
  padding-top: 92px;
}

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 44px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 68px);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.content-section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.content-section h2 {
  margin-top: 0;
  font-size: clamp(26px, 3vw, 40px);
}

.content-section p,
.content-section li {
  color: var(--muted);
  font-size: 17px;
}

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

.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-card p {
  margin-bottom: 0;
}

.link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
}

.link-list a::after {
  content: "Open";
  color: var(--teal);
  font-size: 13px;
}

.page-callout {
  width: min(980px, calc(100% - 40px));
  margin: 56px auto 0;
  padding: 28px;
  border-left: 5px solid var(--amber);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.page-callout p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1500px) {
  .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .nav-toggle {
    display: block;
  }

  .metrics,
  .split,
  .process-board,
  .service-list,
  .insight-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .metrics,
  .cta,
  .site-footer {
    display: grid;
  }

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

  .cta {
    align-items: start;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    min-height: 780px;
    align-items: flex-start;
  }

  .hero-content {
    margin: 0;
    width: 100%;
    padding: 132px 20px 0;
  }

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

  .metrics {
    margin-top: 0;
    width: 100%;
  }

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

  .section {
    padding-top: 72px;
  }
}
