:root {
  --ink: #1b2328;
  --muted: #59656d;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #d9ded8;
  --teal: #116a70;
  --teal-dark: #0a3f43;
  --brass: #a1782b;
  --soft: #edf4f1;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 242, 0.94);
  border-bottom: 1px solid rgba(27, 35, 40, 0.1);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.96rem;
}

.nav-links a {
  color: #314047;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 19, 22, 0.86) 0%, rgba(10, 19, 22, 0.72) 38%, rgba(10, 19, 22, 0.18) 76%),
    url("/assets/hero-software-workspace.png") center / cover no-repeat;
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d8c189;
  font-size: 0.86rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.65rem, 8vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #eef4f1;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-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;
  text-decoration: none;
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.section {
  padding: 76px 0;
}

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

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(260px, 0.56fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.page-hero p,
.text-block p,
.item p {
  color: var(--muted);
  line-height: 1.7;
}

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

.item {
  min-height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.item p {
  margin: 0;
}

.band {
  background: var(--teal-dark);
  color: #fff;
}

.band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.5fr);
  gap: 42px;
  align-items: center;
}

.band p {
  color: #d9e9e5;
  line-height: 1.7;
}

.address {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-style: normal;
  line-height: 1.7;
}

.page-hero {
  padding: 72px 0 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  max-width: 900px;
}

.content {
  padding: 56px 0 76px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 40px;
}

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

.text-block + .text-block {
  margin-top: 18px;
}

.text-block h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.text-block h3 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
}

.text-block p,
.text-block li {
  line-height: 1.75;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.aside {
  align-self: start;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.aside h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.aside p {
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  padding: 34px 0;
  background: #151b1f;
  color: #dbe3df;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #dbe3df;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 72vh;
    background:
      linear-gradient(90deg, rgba(10, 19, 22, 0.9) 0%, rgba(10, 19, 22, 0.72) 100%),
      url("/assets/hero-software-workspace.png") center / cover no-repeat;
  }

  .section-head,
  .band .wrap,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 58px 0 64px;
  }

  .section,
  .content {
    padding: 48px 0;
  }

  .text-block,
  .item,
  .aside {
    padding: 22px;
  }
}
