:root {
  --ink: #071114;
  --ink-2: #102126;
  --muted: #617177;
  --line: #dce8ea;
  --paper: #ffffff;
  --soft: #f3f8f8;
  --soft-2: #e8f4f6;
  --green: #42b949;
  --green-dark: #238f37;
  --blue: #168bd2;
  --blue-dark: #0a5f9b;
  --teal: #16a3a8;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(7, 17, 20, 0.12);
  --max: 1180px;
  --ui-text: clamp(1.05rem, 2vw, 1.35rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 20, 0.88);
  backdrop-filter: blur(18px);
}

.site-header.light {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  width: calc(100% - 32px);
  max-width: var(--max);
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: clamp(154px, 18vw, 230px);
  height: 52px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--ui-text);
  font-weight: 400;
  padding: 10px 13px;
  border-radius: 999px;
}

.home-page .site-header .brand {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.home-page.home-brand-docked .site-header .brand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-header.light .nav-links a {
  color: var(--ink-2);
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.light .nav-links a:not(.nav-cta):hover,
.site-header.light .nav-links a:not(.nav-cta).active {
  color: var(--blue-dark);
  background: var(--soft-2);
}

.nav-cta {
  color: #fff;
  background: var(--blue);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 400;
  box-shadow: 0 10px 24px rgba(22, 139, 210, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-header.light .menu-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: calc(92vh - 78px);
  overflow: hidden;
  background: #071114;
  color: #fff;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(7, 17, 20, 0.98) 0%, rgba(12, 38, 44, 0.86) 46%, rgba(4, 26, 43, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 90px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(66, 185, 73, 0.18), rgba(22, 139, 210, 0));
  transform: translateY(calc(var(--scroll-progress, 0) * -24px));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  z-index: -1;
}

.hero-inner {
  width: calc(100% - 32px);
  max-width: var(--max);
  min-height: calc(92vh - 78px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 56px 0 72px;
}

.hero-logo {
  width: min(430px, 72vw);
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #9ee6ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--green);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 6.3vw, 6.25rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.hero-copy {
  max-width: 700px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--ui-text);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--ui-text);
  font-weight: 400;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 38px rgba(22, 139, 210, 0.26);
}

.button.secondary {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.button.ghost {
  color: #fff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.button.dark {
  color: #fff;
  background: var(--ink);
}

.section {
  padding: clamp(66px, 8vw, 118px) 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 20, 0.98), rgba(12, 43, 51, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 84px);
}

.wrap {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
}

.dark .section-head p,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dark .kicker {
  color: #90def8;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(7, 17, 20, 0.02);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.card h3 {
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.dark .card p {
  color: rgba(255, 255, 255, 0.72);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.split .stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.stat {
  min-height: 132px;
  padding: 24px;
  background: #fff;
}

.stat strong {
  display: block;
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.product-card {
  scroll-snap-align: start;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(calc(var(--parallax, 0) * -1px));
}

.product-top {
  min-height: 128px;
  padding: 24px;
  color: #fff;
  background: #0f5b75;
  display: flex;
  align-items: flex-end;
}

.product-card:nth-child(2) .product-top {
  background: #128b6e;
}

.product-card:nth-child(3) .product-top {
  background: #166fb0;
}

.product-card:nth-child(4) .product-top {
  background: #1b8a9d;
}

.product-card:nth-child(5) .product-top {
  background: #2f8c3a;
}

.product-mark {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.product-body {
  padding: 24px;
}

.product-body p {
  min-height: 124px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue-dark);
  font-weight: 900;
}

.client-band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.client-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.client {
  display: grid;
  place-items: center;
  min-width: 210px;
  height: 92px;
  color: var(--ink-2);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: center;
}

.build-visual {
  position: relative;
  min-height: 510px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, #061114, #10333c),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 54px);
  box-shadow: var(--shadow);
}

.build-node {
  position: absolute;
  width: min(220px, 44vw);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.build-node strong {
  display: block;
  margin-bottom: 6px;
}

.build-node span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.build-node.one {
  top: 44px;
  left: 34px;
}

.build-node.two {
  top: 190px;
  right: 34px;
}

.build-node.three {
  bottom: 42px;
  left: 62px;
}

.build-line {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(25deg, transparent 23%, rgba(66, 185, 73, 0.34) 23.2%, transparent 24%),
    linear-gradient(145deg, transparent 38%, rgba(22, 139, 210, 0.38) 38.2%, transparent 39%);
}

.process {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.process-item::before {
  content: counter(step, decimal-leading-zero);
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.process-item p {
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 20, 0.98), rgba(4, 40, 62, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 92px);
}

.page-hero .wrap {
  min-height: 390px;
  display: grid;
  align-content: center;
  padding: 60px 0;
}

.page-hero p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.14rem;
}

.service-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) 1fr;
  gap: 30px;
  padding: 30px;
  background: #fff;
}

.service-item p {
  color: var(--muted);
}

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

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}

.person .role {
  margin: 10px 0 18px;
  color: var(--blue-dark);
  font-weight: 900;
}

.person p {
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) 1fr;
  gap: 28px;
  align-items: start;
}

.contact-aside {
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  background: linear-gradient(145deg, var(--ink), #0d4659);
}

.contact-aside a {
  display: block;
  margin-top: 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-2);
  font-weight: 900;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
}

textarea {
  min-height: 142px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.footer {
  color: #fff;
  background: var(--ink);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 34px;
  align-items: center;
}

.footer img {
  width: min(280px, 70vw);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 940px) {
  .site-header {
    position: relative;
    z-index: 201;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 78px 0 0;
    z-index: 199;
    background: #5c6d76;
  }

  .nav-links,
  body > .nav-links {
    position: fixed;
    inset: 78px 0 0;
    z-index: 200;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 16px 24px;
    background: #5c6d76;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .nav-open .nav-links,
  body.nav-open > .nav-links {
    display: flex;
  }

  .nav-links a {
    color: #fff;
    font-size: var(--ui-text);
    border-radius: var(--radius);
    padding: 14px;
  }

  .nav-links a:not(.nav-cta):hover,
  .nav-links a:not(.nav-cta).active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }

  .nav-links .nav-cta {
    margin-top: auto;
    text-align: center;
    font-size: var(--ui-text);
    border-radius: var(--radius);
    padding: 14px;
  }

  .section-head,
  .split,
  .service-item,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.two,
  .stat-row,
  .team {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: calc(92vh - 78px);
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 22px);
  }

  .brand {
    width: 160px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.5vw, 2.55rem);
    line-height: 1.08;
  }

  .hero-inner {
    width: 100%;
    max-width: none;
    padding-top: 36px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    width: 100%;
    max-width: 342px;
  }

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

  .hero-copy,
  .hero h1 {
    width: 100%;
    max-width: 342px;
  }

  .page-hero h1,
  .page-hero p {
    width: 100%;
    max-width: 342px;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 9vw, 2.7rem);
  }

  .hero-logo {
    width: min(300px, 74vw);
  }

  .card,
  .service-item,
  .person,
  .contact-aside,
  .form {
    padding: 22px;
  }

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

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

  .build-node {
    width: calc(100% - 42px);
    left: 21px !important;
    right: auto !important;
  }

  .build-node.one {
    top: 28px;
  }

  .build-node.two {
    top: 160px;
  }

  .build-node.three {
    bottom: 28px;
  }
}

@media (min-width: 520px) and (max-width: 640px) {
  .hero-copy,
  .hero h1,
  .hero-actions,
  .page-hero h1,
  .page-hero p {
    max-width: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::after,
  .product-card {
    transform: none !important;
  }
}
