:root {
  --ink: #151a20;
  --muted: #66717f;
  --line: #dfe5ea;
  --paper: #f7f8f5;
  --white: #ffffff;
  --blue: #2860d8;
  --teal: #0f9f8f;
  --amber: #b7811b;
  --red: #c94d45;
  --green: #268b5a;
  --shadow: 0 24px 70px rgba(21, 26, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(247, 248, 245, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 800;
  text-transform: lowercase;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #46515f;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 56px;
  align-items: center;
  padding: 46px 0 70px;
}

.hero-copy,
.market-visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: min(100%, 760px);
  margin-bottom: 24px;
  font-size: 72px;
  line-height: 1.04;
  font-weight: 800;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #4b5664;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

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

.signal-row div {
  min-height: 96px;
  padding: 18px;
  border-top: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.signal-row dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.signal-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.market-visual {
  overflow: hidden;
  min-height: 510px;
  margin: 0;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #10161d;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #d7e2ec;
  font-size: 12px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--teal);
}

.terminal-bar strong {
  margin-left: 10px;
  font-weight: 700;
}

#marketCanvas {
  display: block;
  width: 100%;
  height: 430px;
}

.market-visual figcaption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e6ef;
  font-size: 12px;
  font-weight: 700;
}

.market-visual figcaption span {
  padding: 16px;
  background: #151d25;
}

.section {
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.section-heading p:not(.eyebrow),
.data-copy p,
.contact p {
  color: #4f5c69;
}

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

.service-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-index {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-card p,
.industry-card p,
.process-list p {
  margin-bottom: 0;
  color: #596675;
}

.industries {
  padding-top: 48px;
}

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

.industry-card {
  min-height: 285px;
  padding: 24px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #ffffff;
}

.industry-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 54px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #415062;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.industry-card:nth-child(1) {
  background: linear-gradient(145deg, #ffffff 0%, #eef5f4 100%);
}

.industry-card:nth-child(2) {
  background: linear-gradient(145deg, #ffffff 0%, #f6f1e8 100%);
}

.industry-card:nth-child(3) {
  background: linear-gradient(145deg, #ffffff 0%, #eef3fb 100%);
}

.data-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
  padding-top: 40px;
}

.data-copy {
  max-width: 570px;
}

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

.data-matrix div {
  min-height: 170px;
  padding: 22px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f6f4 100%);
}

.data-matrix div:nth-child(2) {
  background: linear-gradient(145deg, #ffffff 0%, #f7f2e8 100%);
}

.data-matrix div:nth-child(3) {
  background: linear-gradient(145deg, #ffffff 0%, #eef3fb 100%);
}

.data-matrix div:nth-child(4) {
  background: linear-gradient(145deg, #ffffff 0%, #f7efee 100%);
}

.data-matrix span {
  display: block;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-matrix strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.process {
  padding-top: 62px;
}

.section-heading.compact {
  display: block;
  max-width: 700px;
}

.section-heading.compact .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.data-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
}

.contact .eyebrow {
  color: var(--blue);
}

.data-copy h2 {
  color: var(--ink);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
}

.process-list span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
  margin-top: 44px;
  margin-bottom: 26px;
  padding: 52px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.contact h2 {
  max-width: 760px;
}

.contact p {
  max-width: 720px;
  margin-bottom: 0;
  color: #d3dbe2;
}

.contact-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-panel p {
  margin-bottom: 8px;
  color: #aebac5;
  font-size: 13px;
  font-weight: 800;
}

.contact-panel a {
  display: block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-panel span {
  color: #b8c3cd;
  font-size: 13px;
}

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

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

  .main-nav {
    display: none;
  }

  .hero,
  .data-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 34px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .market-visual {
    min-height: 440px;
  }

  #marketCanvas {
    height: 360px;
  }

  .section-heading,
  .service-grid,
  .industry-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .service-card,
  .industry-card,
  .process-list li {
    min-height: 240px;
  }

  .contact {
    padding: 36px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-band,
  .section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    gap: 12px;
    padding: 14px 0;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 32px;
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: normal;
  }

  h2 {
    font-size: 30px;
    line-height: 1.18;
  }

  .hero-lead {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .button {
    padding: 0 16px;
    font-size: 15px;
  }

  .signal-row,
  .section-heading,
  .service-grid,
  .industry-grid,
  .data-matrix,
  .process-list,
  .market-visual figcaption {
    grid-template-columns: 1fr;
  }

  .market-visual {
    min-height: 385px;
  }

  #marketCanvas {
    height: 285px;
  }

  .section {
    padding: 58px 0;
  }

  .service-card {
    min-height: 230px;
  }

  .industry-card {
    min-height: 245px;
  }

  .industry-card span {
    margin-bottom: 34px;
  }

  .data-matrix div {
    min-height: 142px;
  }

  .data-matrix span {
    margin-bottom: 28px;
  }

  .contact {
    padding: 28px 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
