.web-systems-page {
  overflow-x: clip;
}

.web-systems-page :focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

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

.websys-mobile-nav {
  display: none;
}

.websys-hero {
  position: relative;
  overflow: hidden;
  background-color: #071d20;
  background-image:
    radial-gradient(circle at 78% 30%, rgba(78, 199, 189, 0.24), rgba(78, 199, 189, 0) 27%),
    linear-gradient(90deg, rgba(7, 19, 22, 0.98) 0%, rgba(7, 25, 28, 0.94) 47%, rgba(7, 25, 28, 0.62) 76%, rgba(7, 25, 28, 0.38) 100%),
    url("hero-ai-conversion-1400.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  color: #f6fbfa;
}

.websys-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(215, 242, 232, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 242, 232, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

.websys-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 72px 78px;
}

.websys-hero .eyebrow {
  color: #9de4dc;
}

.websys-hero h1 {
  max-width: 900px;
  margin-bottom: 28px;
  color: #f6fbfa;
  font-size: clamp(44px, 5.7vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.websys-lead {
  max-width: 790px;
  margin-bottom: 34px;
  color: rgba(246, 251, 250, 0.8);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  text-wrap: pretty;
}

.websys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.websys-assurance {
  max-width: 760px;
  margin: 34px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--amber);
  color: rgba(246, 251, 250, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.web-systems-page section[id] {
  scroll-margin-top: 92px;
}

.websys-section {
  padding: clamp(72px, 8vw, 108px) 0;
}

.websys-heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.websys-heading h2 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

.websys-problem-grid article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(16, 32, 35, 0.06);
}

.websys-problem-grid span,
.websys-solution-list span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.websys-problem-grid h3 {
  margin-top: 36px;
  font-size: clamp(22px, 2.3vw, 29px);
}

.websys-problem-grid p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

.websys-solutions {
  background: var(--forest);
  color: #f6fbfa;
}

.websys-solutions .eyebrow {
  color: #9de4dc;
}

.websys-solutions h2 {
  color: #f6fbfa;
}

.websys-solution-list {
  border-top: 1px solid rgba(246, 251, 250, 0.18);
}

.websys-solution-list article {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 86px);
  padding: 30px 0;
  border-bottom: 1px solid rgba(246, 251, 250, 0.18);
}

.websys-solution-list article > div:first-child {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}

.websys-solution-list h3 {
  margin: 0;
  color: #f6fbfa;
  font-size: clamp(21px, 2.2vw, 28px);
}

.websys-solution-list p {
  max-width: 650px;
  margin: 0;
  color: rgba(246, 251, 250, 0.7);
}

.websys-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #ffd986;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.websys-text-link::after {
  content: "→";
  text-decoration: none;
}

.websys-related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 30px 0 0;
  color: rgba(246, 251, 250, 0.72);
}

.websys-related .websys-text-link {
  margin-top: 0;
}

.websys-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.websys-process li {
  min-height: 250px;
  border-top: 3px solid var(--teal);
  border-radius: 0 0 14px 14px;
  padding: 26px 22px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(16, 32, 35, 0.06);
}

.websys-process li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.websys-process h3 {
  margin-top: 42px;
}

.websys-process p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.websys-closing {
  padding-top: 20px;
}

.websys-closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(38px, 7vw, 90px);
  border-radius: 22px;
  padding: clamp(34px, 6vw, 68px);
  background: linear-gradient(145deg, var(--white), rgba(215, 242, 232, 0.44));
  box-shadow: var(--shadow);
}

.websys-closing-inner h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
}

.websys-closing-inner > div:first-child > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.websys-closing-action {
  align-self: center;
  border-left: 1px solid var(--line);
  padding-left: clamp(26px, 4vw, 52px);
}

.websys-closing-action h3 {
  margin-bottom: 24px;
  font-size: clamp(23px, 2.8vw, 31px);
}

.websys-closing-action span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .websys-nav-links {
    display: none;
  }

  .websys-mobile-nav {
    display: block;
    position: relative;
  }

  .websys-mobile-nav summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }

  .websys-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .websys-mobile-nav > div {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .websys-mobile-nav a {
    padding: 10px 12px;
  }

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

  .websys-closing-inner {
    grid-template-columns: 1fr;
  }

  .websys-closing-action {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 30px;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .websys-hero {
    background-image:
      radial-gradient(circle at 72% 24%, rgba(78, 199, 189, 0.2), rgba(78, 199, 189, 0) 32%),
      linear-gradient(180deg, rgba(7, 19, 22, 0.97) 0%, rgba(7, 25, 28, 0.91) 70%, rgba(7, 25, 28, 0.7) 100%),
      url("hero-ai-conversion-900.jpg");
  }

  .websys-shell {
    width: min(var(--max), calc(100% - 32px));
  }

  .websys-hero-inner {
    min-height: 0;
    padding-block: 46px 52px;
  }

  .websys-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.04;
  }

  .websys-lead {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.55;
  }

  .websys-actions {
    align-items: stretch;
  }

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

  .websys-assurance {
    margin-top: 26px;
    font-size: 13px;
  }

  .websys-section {
    padding: 66px 0;
  }

  .websys-heading {
    margin-bottom: 32px;
  }

  .websys-heading h2 {
    font-size: 34px;
  }

  .websys-problem-grid,
  .websys-process {
    grid-template-columns: 1fr;
  }

  .websys-problem-grid article,
  .websys-process li {
    min-height: 0;
  }

  .websys-solution-list article {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 0;
  }

  .websys-closing {
    padding-top: 8px;
  }

  .websys-closing-inner {
    width: calc(100% - 24px);
    padding: 30px 22px;
  }

  .websys-closing-action .button {
    width: 100%;
  }
}
