:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-strong: #eef3f2;
  --ink: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --line: #d7dde3;
  --line-strong: #b8c2cc;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --blue: #1f5f8b;
  --amber: #b45309;
  --green-soft: #dff3ef;
  --blue-soft: #e3eef6;
  --amber-soft: #f8ead2;
  --shadow: 0 18px 50px rgb(17 24 39 / 10%);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  font-size: 54px;
  font-weight: 740;
}

h2 {
  font-size: 34px;
  font-weight: 720;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(246 247 248 / 92%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 248px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 800;
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 108px max(24px, calc((100vw - var(--max)) / 2)) 76px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(246 247 248 / 98%) 0%, rgb(246 247 248 / 92%) 45%, rgb(246 247 248 / 64%) 100%),
    repeating-linear-gradient(0deg, rgb(17 24 39 / 4%) 0, rgb(17 24 39 / 4%) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(90deg, rgb(17 24 39 / 4%) 0, rgb(17 24 39 / 4%) 1px, transparent 1px, transparent 52px),
    var(--bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  max-width: 700px;
  font-size: 50px;
}

.hero-lead {
  max-width: 680px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 20px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 720;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-strong);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

.hero-board {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 76px;
  z-index: 1;
  display: grid;
  width: min(460px, 38vw);
  gap: 14px;
  opacity: 0.92;
}

.board-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 86%);
  box-shadow: var(--shadow);
}

.board-panel-main {
  padding: 16px;
}

.board-panel-side {
  width: 76%;
  margin-left: auto;
  padding: 14px;
}

.board-head,
.flow-row,
.signal-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.board-head {
  margin-bottom: 12px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.flow-row {
  grid-template-columns: 1fr auto auto;
  min-height: 45px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.flow-label {
  font-weight: 720;
}

.flow-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.flow-status {
  min-width: 118px;
  padding: 5px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 760;
}

.status-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-green {
  background: var(--green-soft);
  color: var(--accent);
}

.signal-line {
  min-height: 44px;
  border-top: 1px solid var(--line);
}

.signal-line:first-child {
  border-top: 0;
}

.signal-line span {
  color: var(--subtle);
  font-size: 12px;
  text-transform: uppercase;
}

.signal-line strong {
  font-size: 14px;
}

.section {
  padding: 88px max(24px, calc((100vw - var(--max)) / 2));
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.section-problem {
  background: var(--surface);
}

.section-signal {
  background: #102321;
  color: #ffffff;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.text-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

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

.section-heading h2,
.split h2 {
  margin-top: 10px;
}

.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.section-intro {
  max-width: 780px;
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

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

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

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

.service-card,
.case-card,
.signal-grid p {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card h3,
.case-card h3 {
  margin-top: 22px;
}

.service-card p,
.case-card p {
  margin-top: 13px;
  color: var(--muted);
}

.case-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 15px;
}

.card-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-link {
  color: var(--accent);
  font-weight: 760;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.process-list p {
  margin-top: 8px;
  color: var(--muted);
}

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

.check-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 16px;
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.signal-grid p {
  border-color: rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 7%);
  color: rgb(255 255 255 / 88%);
}

.section-signal .section-kicker {
  color: #7dd3c7;
}

.section-signal h2 {
  color: #ffffff;
}

.contact-section {
  background: var(--surface);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 46px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.contact-panel h2 {
  margin-top: 10px;
}

.contact-panel p {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.contact-actions {
  align-content: center;
  margin-top: 0;
}

.contact-note {
  color: var(--subtle) !important;
  font-size: 13px !important;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.subhero {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2)) 68px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(246 247 248 / 96%) 0%, rgb(246 247 248 / 88%) 100%),
    repeating-linear-gradient(0deg, rgb(17 24 39 / 4%) 0, rgb(17 24 39 / 4%) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(90deg, rgb(17 24 39 / 4%) 0, rgb(17 24 39 / 4%) 1px, transparent 1px, transparent 52px),
    var(--bg);
}

.subhero h1 {
  margin-top: 12px;
}

.subhero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
}

.subhero .button {
  margin-top: 28px;
}

.case-detail {
  display: grid;
  gap: 22px;
}

.case-detail-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-detail-block header {
  max-width: 860px;
}

.case-detail-block h2 {
  margin-top: 8px;
}

.case-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

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

.case-columns h3 {
  font-size: 16px;
}

.case-columns p {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 980px) {
  h1 {
    font-size: 42px;
  }

  .hero h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 76px;
  }

  .hero-content {
    order: 1;
  }

  .hero-board {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: 100%;
    margin-top: 42px;
  }

  .board-panel-side {
    width: 100%;
  }

  .split,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 640px) {
  h1 {
    font-size: 34px;
  }

  .hero h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .hero,
  .section,
  .subhero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-lead,
  .text-stack,
  .section-intro,
  .contact-panel p,
  .subhero p:not(.eyebrow) {
    font-size: 16px;
  }

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    min-width: 0;
  }

  .site-nav a {
    padding-left: 0;
    padding-right: 9px;
  }

  .service-grid,
  .case-grid,
  .signal-grid,
  .case-columns {
    grid-template-columns: 1fr;
  }

  .with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-list li {
    grid-template-columns: 46px 1fr;
  }

  .contact-panel,
  .case-detail-block {
    padding: 22px;
  }

  .flow-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px 0;
  }

  .flow-status {
    width: max-content;
    min-width: 0;
  }
}
