:root {
  --ink: #0b1f33;
  --ink-soft: #16324a;
  --paper: #f6f7f5;
  --surface: #ffffff;
  --muted: #5e6b76;
  --line: #dce2e3;
  --accent: #29c7b8;
  --accent-dark: #087f78;
  --max-width: 1180px;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 226, 227, 0.9);
  background: rgba(246, 247, 245, 0.94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  overflow: hidden;
  border: 1px solid rgba(41, 199, 184, 0.22);
  background: #020d23;
}

.brand-symbol-image {
  position: absolute;
  top: -55px;
  left: -22px;
  display: block;
  width: 238px;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  max-width: 282px;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.brand-copy > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314556;
  font-size: 14px;
  font-weight: 650;
}

.site-nav > a:not(.button) {
  transition: color 160ms ease;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible {
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(41, 199, 184, 0.4);
  outline-offset: 3px;
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
}

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

.button-primary:hover {
  background: var(--ink-soft);
}

.button-secondary {
  border-color: #aab7bd;
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: white;
}

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

.button-accent:hover {
  background: #46d8ca;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 112px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -14%;
  bottom: -62%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(11, 31, 51, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(11, 31, 51, 0.018), 0 0 0 140px rgba(11, 31, 51, 0.012);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 80px;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--accent-dark);
}

.hero-lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: #263f52;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}

.hero-detail {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
}

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

.control-panel {
  padding: 28px;
  border: 1px solid rgba(220, 226, 227, 0.8);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  color: var(--accent-dark);
}

.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(41, 199, 184, 0.15);
}

.flow {
  padding: 14px 0 8px;
}

.flow-node {
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 14px 16px;
  border: 1px solid transparent;
}

.flow-node.active {
  border-color: rgba(41, 199, 184, 0.36);
  background: rgba(41, 199, 184, 0.06);
}

.flow-node > span {
  grid-row: 1 / 3;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.flow-node strong {
  font-size: 14px;
}

.flow-node small {
  color: var(--muted);
}

.flow-line {
  width: 1px;
  height: 16px;
  margin-left: 33px;
  background: var(--line);
}

.panel-result {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  background: var(--ink);
  color: white;
}

.panel-result p {
  margin: 0;
  line-height: 1.35;
}

.panel-result small {
  color: #b8c6cf;
}

.result-icon {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
}

.problem-strip {
  padding: 72px 0 76px;
  background: var(--ink);
  color: white;
}

.heading-light .eyebrow {
  color: var(--accent);
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.problem-list li {
  position: relative;
  padding: 22px 20px 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #dce6eb;
}

.problem-list li::before {
  position: absolute;
  top: 30px;
  left: 4px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.section {
  padding: 112px 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 60px;
}

.split-heading > p,
.method-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 56px;
}

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

.service-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.service-card.featured {
  border-top: 4px solid var(--accent);
  background: var(--ink);
  color: white;
}

.card-number {
  display: block;
  margin-bottom: 54px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.featured .card-number {
  color: var(--accent);
}

.service-card h3,
.case-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.service-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.featured p {
  color: #bdc9d0;
}

.cases-section {
  background: #edf0ef;
}

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

.case-card {
  padding: 32px;
  border-top: 3px solid var(--ink);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(11, 31, 51, 0.045);
}

.case-tag {
  margin-bottom: 46px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-tag span {
  margin-right: 8px;
  font-size: 17px;
}

.case-card ul {
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.case-card li {
  position: relative;
  margin-top: 8px;
  padding-left: 18px;
  color: #344957;
  font-size: 13px;
}

.case-card li::before {
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  content: "✓";
  font-weight: 800;
}

.cases-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
  gap: 100px;
}

.method-copy {
  align-self: start;
  position: sticky;
  top: 130px;
}

.method-copy > p:last-child {
  max-width: 480px;
  margin-top: 24px;
}

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

.steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.steps > li > span {
  padding-top: 3px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

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

.steps strong {
  font-size: 18px;
}

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

.contact-section {
  padding: 40px 0 80px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 80px;
  padding: 66px;
  background: var(--ink);
  color: white;
}

.contact-card h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.contact-card > div > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: #b8c6cf;
}

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

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.contact-email {
  margin-top: 18px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 5px;
}

.contact-note {
  margin: 18px 0 0;
  color: #9fb0ba;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
}

.footer-wrap > div {
  display: flex;
  flex-direction: column;
}

.footer-wrap strong {
  color: var(--ink);
  letter-spacing: 0.14em;
}

.footer-wrap span {
  font-size: 9px;
}

.footer-wrap p {
  margin: 0;
  text-align: center;
}

.footer-wrap > a {
  justify-self: end;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1020px) {
  .nav-wrap {
    gap: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-symbol {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .brand-symbol-image {
    top: -49px;
    left: -20px;
    width: 210px;
  }

  .brand-copy {
    max-width: 236px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy > span {
    font-size: 9px;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .control-panel {
    width: min(100%, 650px);
  }

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

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

  .method-grid {
    gap: 56px;
  }

  .contact-card {
    gap: 48px;
    padding: 52px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 92px;
    right: 0;
    left: 0;
    display: grid;
    padding: 22px 24px 30px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 30px rgba(11, 31, 51, 0.09);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a:not(.button) {
    padding: 8px 0;
    font-size: 17px;
  }

  .problem-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading,
  .method-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .method-copy {
    position: static;
  }

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

  .case-card {
    min-height: auto;
  }

  .contact-actions {
    max-width: 460px;
  }

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

  .footer-wrap p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .brand-symbol {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .brand-symbol-image {
    top: -44px;
    left: -18px;
    width: 190px;
  }

  .brand-copy {
    max-width: 190px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy > span {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.22;
  }

  .nav-wrap {
    min-height: 82px;
    gap: 10px;
  }

  .site-nav {
    top: 82px;
  }

  .hero {
    padding: 70px 0 76px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

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

  .control-panel {
    padding: 18px;
  }

  .panel-header {
    align-items: flex-start;
    gap: 12px;
  }

  .problem-strip,
  .section {
    padding: 76px 0;
  }

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

  .service-card {
    min-height: auto;
  }

  .card-number,
  .case-tag {
    margin-bottom: 34px;
  }

  .split-heading {
    gap: 28px;
  }

  .card-grid {
    margin-top: 38px;
  }

  .steps li {
    grid-template-columns: 44px 1fr;
  }

  .contact-section {
    padding: 16px 0 48px;
  }

  .contact-card {
    width: 100%;
    gap: 40px;
    padding: 52px 24px;
  }

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

  .footer-wrap p,
  .footer-wrap > a {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .brand-copy {
    max-width: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
