:root {
  color-scheme: light;
  --ink: #173137;
  --muted: #66767a;
  --line: #d8dfdc;
  --surface: #fbfaf5;
  --surface-alt: #eef3f1;
  --brand-teal: #2d5960;
  --brand-teal-dark: #183b42;
  --brand-teal-deep: #102a30;
  --brand-teal-soft: #dfe9e6;
  --brand-cream: #f7f5ed;
  --brand-sage: #8fa8a1;
  --shadow: 0 18px 55px rgba(16, 42, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.icon-sprite {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand-teal-dark);
}

.brand:focus-visible,
.nav a:focus-visible {
  color: var(--brand-teal-dark);
  outline: 3px solid rgba(45, 89, 96, 0.28);
  outline-offset: 5px;
  border-radius: 6px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 82% 42%, rgba(45, 89, 96, 0.12), transparent 30%),
    linear-gradient(115deg, rgba(223, 233, 230, 0.98), rgba(251, 250, 245, 0.92) 48%, rgba(143, 168, 161, 0.16)),
    var(--surface-alt);
}

.hero::before {
  position: absolute;
  inset: 34px clamp(18px, 4vw, 56px);
  pointer-events: none;
  content: "";
  border: 1px solid rgba(24, 59, 66, 0.08);
  border-radius: 34px;
}

.hero::after {
  position: absolute;
  right: clamp(18px, 5vw, 88px);
  bottom: -9vw;
  width: min(46vw, 700px);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  background: rgba(45, 89, 96, 0.1);
  border-radius: 50%;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.05rem, 7.4vw, 7.05rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #395055;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 24px;
  border: 1px solid var(--brand-teal-dark);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button.primary {
  color: var(--brand-cream);
  background: var(--brand-teal-dark);
  box-shadow: 0 12px 30px rgba(16, 42, 48, 0.18);
}

.button.secondary {
  color: var(--brand-teal-dark);
  background: rgba(251, 250, 245, 0.68);
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-teal);
  box-shadow: 0 14px 36px rgba(16, 42, 48, 0.24);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--brand-cream);
  box-shadow: 0 0 0 4px rgba(45, 89, 96, 0.12);
}

.hero-visual {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  filter: drop-shadow(0 34px 46px rgba(16, 42, 48, 0.16));
}

.hero-visual img {
  display: block;
  width: min(100%, 900px);
  margin-left: auto;
  aspect-ratio: 1.55;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(36px, 8vw, 104px);
  row-gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.split-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.split p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
}

.steps,
.tool-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding-left: 22px;
}

.steps {
  position: relative;
  gap: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: delivery-step;
}

.steps::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--brand-teal-soft), rgba(45, 89, 96, 0.1));
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 56px;
  padding: 0 0 18px;
  counter-increment: delivery-step;
}

.steps li::before {
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--brand-cream);
  content: counter(delivery-step);
  background: var(--brand-teal-dark);
  border: 2px solid var(--surface);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 42, 48, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
}

.steps li:last-child {
  padding-bottom: 0;
}

.tool-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 0;
  list-style: none;
}

.tool-list li {
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cases-section {
  background:
    linear-gradient(135deg, rgba(247, 245, 237, 0.08), transparent 34%),
    radial-gradient(circle at 18% 15%, rgba(247, 245, 237, 0.13), transparent 26%),
    linear-gradient(145deg, var(--brand-teal) 0%, var(--brand-teal-dark) 54%, var(--brand-teal-deep) 100%);
  color: var(--brand-cream);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 1050px;
}

.cases-section .eyebrow {
  color: var(--brand-cream);
}

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

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 248px;
  min-width: 0;
  padding: 28px 26px;
  background: rgba(16, 42, 48, 0.5);
  border: 1px solid rgba(247, 245, 237, 0.3);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.case-card:hover,
.case-card:focus-visible {
  background: rgba(34, 74, 82, 0.72);
  border-color: rgba(247, 245, 237, 0.68);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.case-card:nth-child(4n + 1) {
  background: linear-gradient(135deg, rgba(54, 103, 111, 0.58), rgba(16, 42, 48, 0.6));
}

.case-card:nth-child(4n + 2) {
  background: linear-gradient(135deg, rgba(45, 89, 96, 0.66), rgba(16, 42, 48, 0.62));
}

.case-card:nth-child(4n + 3) {
  background: linear-gradient(135deg, rgba(39, 93, 80, 0.48), rgba(16, 42, 48, 0.64));
}

.case-card:nth-child(4n + 4) {
  background: linear-gradient(135deg, rgba(20, 55, 63, 0.72), rgba(16, 42, 48, 0.76));
}

.case-icon {
  order: 0;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: var(--brand-cream);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.case-card h3 {
  order: 1;
  margin: 0;
  color: var(--brand-cream);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.18;
  font-weight: 500;
}

.case-card h4,
.case-card p,
.case-card ul {
  display: none;
}

.modal-body h4 {
  margin: 22px 0 6px;
  color: var(--brand-teal);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-body p,
.modal-body li {
  margin: 0 0 10px;
  color: #4c5d61;
  font-size: 1rem;
}

.modal-body ul {
  margin: 0;
  padding-left: 18px;
}

.tags {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tags span {
  padding: 4px 8px;
  color: var(--brand-cream);
  background: rgba(247, 245, 237, 0.08);
  border: 1px solid rgba(247, 245, 237, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
}

.case-cta {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--brand-cream);
  font-weight: 800;
}

.contact-section {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 560px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 89, 96, 0.18), transparent 24%),
    radial-gradient(circle at 4% 96%, rgba(143, 168, 161, 0.18), transparent 28%),
    linear-gradient(125deg, rgba(223, 233, 230, 0.96), rgba(251, 250, 245, 0.62) 48%, rgba(45, 89, 96, 0.1)),
    var(--surface-alt);
}

.contact-section::before {
  position: absolute;
  inset: 34px clamp(18px, 4vw, 56px);
  pointer-events: none;
  content: "";
  border: 1px solid rgba(24, 59, 66, 0.08);
  border-radius: 34px;
}

.contact-section::after {
  position: absolute;
  right: -11vw;
  bottom: -18vw;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  background: rgba(45, 89, 96, 0.14);
  border-radius: 50%;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1180px, 100%);
  gap: 12px;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.contact-inner > p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  justify-content: center;
  width: min(760px, 100%);
  margin-top: 46px;
}

.contact-method {
  position: relative;
  min-height: 188px;
  padding: 58px clamp(22px, 3vw, 34px) 28px;
  background: rgba(223, 233, 230, 0.78);
  border: 1px solid rgba(24, 59, 66, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(16, 42, 48, 0.1);
}

.contact-icon {
  position: absolute;
  top: -28px;
  left: clamp(22px, 3vw, 34px);
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--brand-cream);
  background: var(--brand-teal-dark);
  border: 4px solid var(--surface-alt);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 42, 48, 0.18);
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.contact-method h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.2rem;
}

.contact-method a {
  color: var(--brand-teal-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.contact-method a:hover,
.contact-method a:focus-visible {
  color: var(--brand-teal);
  outline: none;
}

.contact-method a:focus-visible {
  outline: 3px solid rgba(45, 89, 96, 0.28);
  outline-offset: 5px;
  border-radius: 4px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: clamp(18px, 4vw, 48px);
}

.modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 48, 0.72);
}

.modal-window {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(24px, 5vw, 44px);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.modal-window:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--brand-teal-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #d2e0dc;
  outline: none;
}

.modal-tags {
  max-width: calc(100% - 44px);
  margin-top: 0;
  margin-bottom: 18px;
}

.modal-tags span {
  color: var(--brand-teal-dark);
  background: var(--brand-teal-soft);
  border-color: #c9dad5;
}

.modal-window h2 {
  margin-right: 42px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem);
}

.modal-body {
  margin-top: 24px;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 22px clamp(18px, 4vw, 56px);
  }

  .hero-visual {
    max-width: 760px;
  }

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

}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero::before,
  .hero::after,
  .contact-section::before {
    display: none;
  }

  .contact-section {
    min-height: auto;
  }

  .contact-section::after {
    display: none;
  }

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

  .contact-method {
    min-height: 168px;
  }

  .hero-visual {
    filter: drop-shadow(0 18px 28px rgba(16, 42, 48, 0.12));
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .tool-list,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 220px;
    border-radius: 24px;
  }

  .section-heading {
    display: block;
  }
}
